You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/target/i386/hvf
Nguyen Dinh Phi 3bee93b9ab accel/hvf: Fix i386 HVF compilation failures
Recent changes introduced build errors in the i386 HVF backend:

 - ../accel/hvf/hvf-accel-ops.c:163:17: error: no member named 'guest_debug_enabled' in 'struct AccelCPUState'
   163 |     cpu->accel->guest_debug_enabled = false;

 - ../accel/hvf/hvf-accel-ops.c:151:51
   error: no member named 'unblock_ipi_mask' in 'struct AccelCPUState'

 - ../target/i386/hvf/hvf.c:736:5
   error: use of undeclared identifier 'rip'

 - ../target/i386/hvf/hvf.c:737:5
   error: use of undeclared identifier 'env'

This patch corrects the field usage and move identifier to correct
function ensuring successful compilation of the i386 HVF backend.

These issues were caused by:

Fixes: 2ad756383e (“accel/hvf: Restrict ARM-specific fields of AccelCPUState”)
Fixes: 2a21c92447 (“target/i386/hvf: Factor hvf_handle_vmexit() out”)

Signed-off-by: Nguyen Dinh Phi <phind.uet@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20251126094601.56403-1-phind.uet@gmail.com>
[PMD: Keep setting vcpu_dirty on AArch64]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Nguyen Dinh Phi <phind.uet@gmail.com>
Message-Id: <20251128085854.53539-1-phind.uet@gmail.com>
2 weeks ago
..
README.md system/cpus: rename qemu_mutex_lock_iothread() to bql_lock() 2 years ago
hvf-cpu.c target/i386: merge host_cpu_instance_init() and host_cpu_max_instance_init() 5 months ago
hvf-i386.h target/i386/hvf: provide and use simulate_{wrmsr, rdmsr} in emul_ops 8 months ago
hvf.c accel/hvf: Fix i386 HVF compilation failures 2 weeks ago
meson.build target/i386: move x86 instruction emulator out of hvf 8 months ago
panic.h x86 hvf cpus: Fix Lesser GPL version number 5 years ago
vmcs.h hvf: Enable RDTSCP support 3 years ago
vmx.h exec/cpu-all: remove system/memory include 8 months ago
x86.c target/i386: move x86 instruction emulator out of hvf 8 months ago
x86_cpuid.c i386/hvf: Make CPUID_HT supported 7 months ago
x86_descr.c target/i386/hvf: fix a typo in a type name 10 months ago
x86_descr.h target/i386: move x86 instruction emulator out of hvf 8 months ago
x86_mmu.c target/i386: move x86 instruction emulator out of hvf 8 months ago
x86_mmu.h target/i386/hvf: Use CPUState typedef 2 years ago
x86_task.c target/i386: move x86 instruction emulator out of hvf 8 months ago
x86_task.h target/i386/hvf: fix a typo in a type name 10 months ago
x86hvf.c accel/hvf: Rename hvf_put|get_registers -> hvf_arch_put|get_registers 2 months ago
x86hvf.h target/i386/hvf: move and rename {load, store}_regs 10 months ago

README.md

OS X Hypervisor.framework support in QEMU

These sources (and ../hvf-all.c) are adapted from Veertu Inc's vdhh (Veertu Desktop Hosted Hypervisor) (last known location: https://github.com/veertuinc/vdhh) with some minor changes, the most significant of which were:

  1. Adapt to our current QEMU's CPUState structure and address_space_rw API; many struct members have been moved around (emulated x86 state, xsave_buf) due to historical differences + QEMU needing to handle more emulation targets.
  2. Removal of apic_page and hyperv-related functionality.
  3. More relaxed use of bql_lock.