]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/i386/hvf: fix a compilation error
authorWei Liu <wei.liu@kernel.org>
Tue, 29 Apr 2025 06:24:51 +0000 (06:24 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 2 May 2025 15:38:24 +0000 (17:38 +0200)
Include exec/target_page.h to fix the following build error.

x86_64-softmmu.a.p/target_i386_hvf_hvf.c.o -c ../target/i386/hvf/hvf.c
../target/i386/hvf/hvf.c:139:49: error: use of undeclared identifier 'TARGET_PAGE_SIZE'
  139 |             uint64_t dirty_page_start = gpa & ~(TARGET_PAGE_SIZE - 1u);
      |                                                 ^
../target/i386/hvf/hvf.c:141:45: error: use of undeclared identifier 'TARGET_PAGE_SIZE'
  141 |             hv_vm_protect(dirty_page_start, TARGET_PAGE_SIZE,
      |                                             ^

Signed-off-by: Wei Liu <wei.liu@kernel.org>
Link: https://lore.kernel.org/r/aBBws1ikCDfyC0RI@liuwe-devbox-ubuntu-v2.tail21d00.ts.net
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/hvf/hvf.c

index 23ebf2550aca744396faccf53e1b140b6e617c64..99e37a33e5085793ead1fe3c54afbecbdd6044e6 100644 (file)
@@ -76,6 +76,7 @@
 #include "qemu/main-loop.h"
 #include "qemu/accel.h"
 #include "target/i386/cpu.h"
+#include "exec/target_page.h"
 
 static Error *invtsc_mig_blocker;