[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] x86/HVM+shim: fix build when !CONFIG_GRANT_TABLE
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 1 Dec 2022 16:57:37 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0T+aIDvS5TPiM5tZREN5xqLQ1uBTTm2ZrMznbOT05Vc=; b=GUvld+T07GddadXKqX2y6gYLUvmv/+zDHbHgTt+nYpG1vr5x7tkeN9zUyPTR0hOWgcWf24zxXXSn2guIlc4+hICjWtAjISgISJCp3OZolvpVRh8NJFMsmou3UcFc4gmAq+sZ2LCk+WxZvWXba2JyR0TvZ/ai+ekTn6NwCTFUOTeyKHf4PPhHoXfxEBgcmgJdD+OeNNuMrrUQoIaFSHq+OK2bROxbd2IjBtbgopc74MBBYleSQU5yURA+EXDyWP/gw42HTXwKfK1dvnUYivs8KIT2dM1oxmyxopaBdU2sRTri+V54N51PBPL4v17Hidq+3z1Nv8Zw7ixV6obC//0lIg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X/zgdoQDR+6lptKjkLeTlSq36Okl7dL5OamoC0VgV/52oXt5ahEDrCu5HI3r1mQImdKK5jdj2Py457rhdnTis13jQm41nCKRrm8V3Z7rHynFZ0rwN5p6ZqHc6d2W7SGgZXrUXzbL9EMZxrA68hUU1i6RxT/QJFTqm3tyKHHXnS+A/hEtawP9jxify+QZNLO2x04LwVkR9EoFz7NwnFq6IDXUtaIR61rJFoK65l+bdoXXmUvMg7wUYSrRcC+/QoLbB+wrsvCRmdKw8XuCIGuy0t9Cie/Z/pOFtOUfT9n+mpUIgYXjsQiT7X4dNKlMNJ3vqHixOGKLONRgkwD65QoTZQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Thu, 01 Dec 2022 15:57:50 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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")
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reported-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
--- a/xen/include/hypercall-defs.c
+++ b/xen/include/hypercall-defs.c
@@ -241,8 +241,10 @@ event_channel_op_compat do
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 - - -
|