On 26/11/25 14:44, Philippe Mathieu-Daudé wrote:
From: Nguyen Dinh Phi <[email protected]>

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: 2ad756383e1b (“accel/hvf: Restrict ARM-specific fields of AccelCPUState”)
Fixes: 2a21c9244740 (“target/i386/hvf: Factor hvf_handle_vmexit() out”)

Signed-off-by: Nguyen Dinh Phi <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
[PMD: Keep setting vcpu_dirty on AArch64]
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>

Per https://lore.kernel.org/qemu-devel/[email protected]/:

Tested-by: Nguyen Dinh Phi <[email protected]>

---
Superseeded: <[email protected]>

Untested. Once tested, worth to apply as buildfix before tagging?
---
  accel/hvf/hvf-accel-ops.c | 5 ++---
  target/i386/hvf/hvf.c     | 6 ++----
  2 files changed, 4 insertions(+), 7 deletions(-)


Reply via email to