mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
accel: Rename HAX 'struct hax_vcpu_state' -> AccelCPUState
We want all accelerators to share the same opaque pointer in CPUState. Start with the HAX context, renaming its forward declarated structure 'hax_vcpu_state' as 'AccelCPUState'. Document the CPUState field. Directly use the typedef. Remove the amusing but now unnecessary casts in NVMM / WHPX. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230624174121.11508-8-philmd@linaro.org>
This commit is contained in:
parent
6ecd2cd0dc
commit
f861b3f390
8 changed files with 22 additions and 21 deletions
|
@ -2258,7 +2258,7 @@ int whpx_init_vcpu(CPUState *cpu)
|
|||
|
||||
vcpu->interruptable = true;
|
||||
cpu->vcpu_dirty = true;
|
||||
cpu->accel = (struct hax_vcpu_state *)vcpu;
|
||||
cpu->accel = vcpu;
|
||||
max_vcpu_index = max(max_vcpu_index, cpu->cpu_index);
|
||||
qemu_add_vm_change_state_handler(whpx_cpu_update_state, cpu->env_ptr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue