]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86/HVM+shim: fix build when !CONFIG_GRANT_TABLE
authorJan Beulich <jbeulich@suse.com>
Fri, 2 Dec 2022 09:40:11 +0000 (10:40 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Dec 2022 09:40:11 +0000 (10:40 +0100)
The HVM flavor of the hypercall handlers exists only when GRANT_TABLE is
enabled, while surrogate shim variants exist only for the purpose of PV.
(Also scratch out the Arm variant in that case; what exactly is used in
that cell of the new table row doesn't really matter.)

Fixes: 8523851dbc49 ("xen/x86: call hypercall handlers via generated macro")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/hypercall-defs.c

index 45b6f969d2abd5e4c77dbd1b13a92b4940a16412..189612107402c1786f050d41f87d7cb9622cebc7 100644 (file)
@@ -241,8 +241,10 @@ event_channel_op_compat            do       do       -        -        dep
 xen_version                        compat   do       compat   do       do
 console_io                         do       do       do       do       do
 physdev_op_compat                  compat   do       -        -        dep
-#if defined(CONFIG_GRANT_TABLE) || defined(CONFIG_PV_SHIM)
+#if defined(CONFIG_GRANT_TABLE)
 grant_table_op                     compat   do       hvm      hvm      do
+#elif defined(CONFIG_PV_SHIM)
+grant_table_op                     compat   do       -        -        -
 #endif
 vm_assist                          do       do       do       do       do
 update_va_mapping_otherdomain      compat   do       -        -        -