]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
include/exec: Introduce TARGET_PAGE_ENTRY_EXTRA
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 20 Aug 2022 00:02:36 +0000 (17:02 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Oct 2022 03:53:31 +0000 (20:53 -0700)
Allow the target to cache items from the guest page tables.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/exec/cpu-defs.h

index 5e12cc18543eed32b9974a64e5d3d302b80225ef..67239b4e5eab6d4be4747a91d9ce842ac817534b 100644 (file)
@@ -163,6 +163,15 @@ typedef struct CPUTLBEntryFull {
 
     /* @lg_page_size contains the log2 of the page size. */
     uint8_t lg_page_size;
+
+    /*
+     * Allow target-specific additions to this structure.
+     * This may be used to cache items from the guest cpu
+     * page tables for later use by the implementation.
+     */
+#ifdef TARGET_PAGE_ENTRY_EXTRA
+    TARGET_PAGE_ENTRY_EXTRA
+#endif
 } CPUTLBEntryFull;
 
 /*