]> xenbits.xensource.com Git - xen.git/commitdiff
xen/gnttab: Perform compat/native gnttab_query_size check
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 20 Feb 2024 19:58:08 +0000 (19:58 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 24 Jun 2024 15:22:59 +0000 (16:22 +0100)
This subop appears to have been missed from the compat checks.

Fixes: 5ce8fafa947c ("Dynamic grant-table sizing")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-Acked-By: Oleksii Kurochko <oleksii.kurochko@gmail.com>
xen/common/compat/grant_table.c
xen/include/xlat.lst

index c495c375eb2b25541a810ee7cc3d3c41b36e92fc..dd40c48b118e56f1b1b4784ae7677fe0f440f9e8 100644 (file)
@@ -30,6 +30,11 @@ CHECK_gnttab_unmap_grant_ref;
 CHECK_gnttab_unmap_and_replace;
 #undef xen_gnttab_unmap_and_replace
 
+#define xen_gnttab_query_size gnttab_query_size
+CHECK_gnttab_query_size;
+#undef xen_gnttab_query_size
+DEFINE_XEN_GUEST_HANDLE(gnttab_query_size_compat_t);
+
 DEFINE_XEN_GUEST_HANDLE(gnttab_setup_table_compat_t);
 DEFINE_XEN_GUEST_HANDLE(gnttab_transfer_compat_t);
 DEFINE_XEN_GUEST_HANDLE(gnttab_copy_compat_t);
@@ -106,6 +111,10 @@ int compat_grant_table_op(
     CASE(copy);
 #endif
 
+#ifndef CHECK_query_size
+    CASE(query_size);
+#endif
+
 #ifndef CHECK_gnttab_dump_table
     CASE(dump_table);
 #endif
index 0630530703ba5a73c573bdc7ac7acf07e780b96e..2046b36c0488a27f1a4468ae45cdc08e8dca01a9 100644 (file)
@@ -88,6 +88,7 @@
 !      gnttab_get_status_frames        grant_table.h
 ?      gnttab_get_version              grant_table.h
 ?      gnttab_map_grant_ref            grant_table.h
+?      gnttab_query_size               grant_table.h
 ?      gnttab_set_version              grant_table.h
 !      gnttab_setup_table              grant_table.h
 ?      gnttab_swap_grant_ref           grant_table.h