Files
Yaya48 cf256aa081 Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git

Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
2026-08-31 02:15:30 +02:00

37 lines
1.1 KiB
C

/*
* Accelerator CPUS Interface
*
* Copyright 2020 SUSE LLC
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
#ifndef SYSTEM_WHPX_ACCEL_OPS_H
#define SYSTEM_WHPX_ACCEL_OPS_H
#include "system/cpus.h"
int whpx_init_vcpu(CPUState *cpu);
int whpx_vcpu_exec(CPUState *cpu);
void whpx_destroy_vcpu(CPUState *cpu);
void whpx_vcpu_kick(CPUState *cpu);
void whpx_cpu_synchronize_state(CPUState *cpu);
void whpx_cpu_synchronize_post_reset(CPUState *cpu);
void whpx_cpu_synchronize_post_init(CPUState *cpu);
void whpx_cpu_synchronize_pre_loadvm(CPUState *cpu);
typedef enum WHPXStateLevel {
/* subset of runtime state for faster returns from vmexit */
WHPX_LEVEL_FAST_RUNTIME_STATE,
/* state subset only touched by the VCPU itself during runtime */
WHPX_LEVEL_RUNTIME_STATE,
/* state subset modified during VCPU reset */
WHPX_LEVEL_RESET_STATE,
/* full state set, modified during initialization or on vmload */
WHPX_LEVEL_FULL_STATE
} WHPXStateLevel;
#endif /* TARGET_I386_WHPX_ACCEL_OPS_H */