@samitouri / QOSamiQemu / commits / bea27e8264

system/kvm_xen: Include missing 'exec/target_page.h' header

The "exec/target_page.h" header is indirectly included. Include it explicitly otherwise we get when refactoring unrelated headers: include/system/kvm_xen.h:41:55: error: ‘TARGET_PAGE_BITS’ undeclared (first use in this function) 41 | #define XEN_SPECIAL_PFN(x) ((XEN_SPECIAL_AREA_ADDR >> TARGET_PAGE_BITS) + \ | ^~~~~~~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260313062055.2188-16-philmd@linaro.org>

Philippe Mathieu-Daudé committed Apr 2, 2025 at 23:49 UTC bea27e8264a74789c2dd2eec602dbd977e21854f
1 file changed +2
include/system/kvm_xen.h
+2
@@ -12,6 +12,8 @@
12 #ifndef QEMU_SYSTEM_KVM_XEN_H
13 #define QEMU_SYSTEM_KVM_XEN_H
14
15 +#include "exec/target_page.h"
16 +
17 /* The KVM API uses these to indicate "no GPA" or "no GFN" */
18 #define INVALID_GPA UINT64_MAX
19 #define INVALID_GFN UINT64_MAX