[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] x86/pv: Rename hypercall_table_t to pv_hypercall_table_t


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 15 Apr 2021 14:21:38 +0100
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Thu, 15 Apr 2021 13:21:59 +0000
  • Ironport-hdrordr: A9a23:vYs7XqNWl1n2zsBcT9z255DYdL4zR+YMi2QD/0p6RQVJNumRkM 6zlPoWvCWE+Qo5cltIo6H4BICrR3TA+ZlppawYOrm/VAfr0VHYXL1Kx43k3jHmBmnC5vdQvJ 0QBJRWJf/RKRxBjcj86BSlCNpI+rS62Y2hmOu29QYRcShGbaVp7wBaBhbeKE15QwFaGYE0fa D32uNpvDylEE5nCfiTJn5AZOTbos2OqZSOW295OzcG8w+ItDWy9frBPiPw5Hgjehdu5Ztnzm TfiQz+4cyYwoeG4zvRzXXa4ZgTuPaJ8Ko+OOW2hsIYKirhh2+TDewLN8zhzVVFxN2H01oknM LBpB0tJa1ImgzsV1uoqhjg0RSI6kdX11beyESViXamgcv1SCNSMbs6uatlcwDU40dlgddk0K gj5RPji7NrC3r77ULAzumNfxVy0mW1pHZnrfcXiXRTXYZ2Us4zkaUvuGtQCdM6EDjn7Z1PKo lTJfCZxO1RdmqddG2cllYH+rLMYl0DWjO9BmkLoIi8ziVflnER9Tpq+OUv2lM7sK8bZ7YBze LeKahsnKxJVaYtHNBALdZEfvKSTkDra1b2HEyzBXiPLtBMB1v976HPxPEa38eXQdgp4fIJ6d /8eWIdilcXP2PJM/Dm5uwCzjn9BFqFeXDM8IV+17NDmpCUfsunDQSzDG8Wt4+FmdtaIuCzYY f7BLtGR/v4aWf+E4dA2APzH4RIIX4FScsPp5I1QFSLrsXXKpD7t+DSffrJTYCdZAoMSyf4GX sMXD/6OcVG4ASqQxbD8WzsZ08=
  • Ironport-sdr: lFHVpWXrjbG/Ta+PKY9FQM3aMVMHJtNs06F9MRVYoR1Uk6bEU/25RG8xtzJEIRRVOA68r7sY5+ vbYlrTecfVmJgyUwjtTiFIkvt6b8fFuBrkfFx/i4hvW+H7eFtmk5cvM0iafHZxwMhZ2zlRawlv e952uTQwhz3JQUBmVyHbKx8pkok8fRc64s7e+JkgCoEIPDgzSPMVEcE4qXizzRsU04vtmUORmM 91L8iGf8rEeLoKBrLNI7UQSeuRtjXm45O1TfqZy1b/O1iNxZNA/AvHWJWXJ9LGHzyNI6SE9OHF oDg=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

The type is no longer appropriate for anything other than PV, and therefore
should not retain its generic name.

Fixes: 527922008bc ("x86: slim down hypercall handling when !PV32")
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
CC: Jan Beulich <JBeulich@xxxxxxxx>
CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
CC: Wei Liu <wl@xxxxxxx>
---
 xen/arch/x86/pv/hypercall.c     | 2 +-
 xen/arch/x86/pv/shim.c          | 2 +-
 xen/include/asm-x86/hypercall.h | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/xen/arch/x86/pv/hypercall.c b/xen/arch/x86/pv/hypercall.c
index 5d02eebc8d..e30c59b628 100644
--- a/xen/arch/x86/pv/hypercall.c
+++ b/xen/arch/x86/pv/hypercall.c
@@ -40,7 +40,7 @@
 
 #define do_arch_1             paging_domctl_continuation
 
-const hypercall_table_t pv_hypercall_table[] = {
+const pv_hypercall_table_t pv_hypercall_table[] = {
     COMPAT_CALL(set_trap_table),
     HYPERCALL(mmu_update),
     COMPAT_CALL(set_gdt),
diff --git a/xen/arch/x86/pv/shim.c b/xen/arch/x86/pv/shim.c
index 92cb1adeed..62201ae182 100644
--- a/xen/arch/x86/pv/shim.c
+++ b/xen/arch/x86/pv/shim.c
@@ -204,7 +204,7 @@ void __init pv_shim_setup_dom(struct domain *d, 
l4_pgentry_t *l4start,
                               unsigned long console_va, unsigned long vphysmap,
                               start_info_t *si)
 {
-    hypercall_table_t *rw_pv_hypercall_table;
+    pv_hypercall_table_t *rw_pv_hypercall_table;
     uint64_t param = 0;
     long rc;
 
diff --git a/xen/include/asm-x86/hypercall.h b/xen/include/asm-x86/hypercall.h
index 39e7ab7022..0ae3b8b043 100644
--- a/xen/include/asm-x86/hypercall.h
+++ b/xen/include/asm-x86/hypercall.h
@@ -20,7 +20,7 @@ typedef struct {
 #ifdef CONFIG_PV32
     hypercall_fn_t *compat;
 #endif
-} hypercall_table_t;
+} pv_hypercall_table_t;
 
 typedef struct {
     uint8_t native;
@@ -32,7 +32,7 @@ typedef struct {
 extern const hypercall_args_t hypercall_args_table[NR_hypercalls];
 
 #ifdef CONFIG_PV
-extern const hypercall_table_t pv_hypercall_table[];
+extern const pv_hypercall_table_t pv_hypercall_table[];
 void pv_hypercall(struct cpu_user_regs *regs);
 #endif
 
-- 
2.11.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.