diff options
author | Wei Liu <wei.liu@kernel.org> | 2025-04-29 06:24:51 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-02 17:38:24 +0200 |
commit | 785f945bd5ace415419d0fe4944fa5fce1bc1865 (patch) | |
tree | eec3c9322ef01e699b76c55f15638dd82e606a56 | |
parent | 7c93067fe7e44f89a720fa5f0faf180697d5ac7e (diff) | |
download | qemu-785f945bd5ace415419d0fe4944fa5fce1bc1865.zip qemu-785f945bd5ace415419d0fe4944fa5fce1bc1865.tar.gz qemu-785f945bd5ace415419d0fe4944fa5fce1bc1865.tar.bz2 |
target/i386/hvf: fix a compilation error
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>
-rw-r--r-- | target/i386/hvf/hvf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/hvf/hvf.c b/target/i386/hvf/hvf.c index 23ebf25..99e37a3 100644 --- a/target/i386/hvf/hvf.c +++ b/target/i386/hvf/hvf.c @@ -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; |