x86/pv: Rename hypercall_table_t to pv_hypercall_table_t
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 15 Apr 2021 12:27:45 +0000 (13:27 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Apr 2021 13:52:06 +0000 (14:52 +0100)
The type is no longer appropriate for anything other than PV, and therefore
should not retain its generic name.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/hypercall.c
xen/arch/x86/pv/shim.c
xen/include/asm-x86/hypercall.h

index 5d02eebc8d8b4e7961ac255f0f33a0e5d4fb03c8..e30c59b6286949099b6f2436f4d2c34a64d30d9e 100644 (file)
@@ -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),
index 1b86fc247eebe6663d696a6b87631e0256817eb7..d16c0048c0f57f22da90eb12294ee5fd4e8fefe4 100644 (file)
@@ -205,7 +205,7 @@ void __init pv_shim_setup_dom(struct domain *d, l4_pgentry_t *l4start,
                               start_info_t *si)
 {
     bool compat = is_pv_32bit_domain(d);
-    hypercall_table_t *rw_pv_hypercall_table;
+    pv_hypercall_table_t *rw_pv_hypercall_table;
     uint64_t param = 0;
     long rc;
 
index 39e7ab7022828704d7294def307725a2a7b388c2..0ae3b8b043b24f0f4238698602eb4d6c814e41c3 100644 (file)
@@ -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