Skip to contentSkip to conversation

x86/guest: rename probe_hypervisor to hypervisor_probe

PATCH In review Roger Pau Monne 2 participants 2 messages Sep 18, 2018 – Sep 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/guest: rename probe_hypervisor to hypervisor_probe

This matches the nomenclature used by the rest of the guest-related functions.

No functional change.

---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Wei Liu <[email protected]>

---
 xen/arch/x86/guest/pvh-boot.c   | 2 +-
 xen/arch/x86/guest/xen.c        | 2 +-
 xen/arch/x86/setup.c            | 2 +-
 xen/include/asm-x86/guest/xen.h | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)
xen/arch/x86/guest/pvh-boot.c +1 -1
index 0e9e5bfdf6..4ea4e8ad59 100644
@@ -92,7 +92,7 @@ multiboot_info_t *__init pvh_init(void)
 {
     convert_pvh_info();
 
-    probe_hypervisor();
+    hypervisor_probe();
     ASSERT(xen_guest);
 
     get_memory_map();
xen/arch/x86/guest/xen.c +1 -1
index cd4acbf70c..6355ff1c0b 100644
@@ -68,7 +68,7 @@ static void __init find_xen_leaves(void)
     }
 }
 
-void __init probe_hypervisor(void)
+void __init hypervisor_probe(void)
 {
     if ( xen_guest )
         return;
xen/arch/x86/setup.c +1 -1
index 2fbf7d574c..ec02bbcbd7 100644
@@ -740,7 +740,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)
      * allocing any xenheap structures wanted in lower memory. */
     kexec_early_calculations();
 
-    probe_hypervisor();
+    hypervisor_probe();
 
     parse_video_info();
 
xen/include/asm-x86/guest/xen.h +2 -2
index c0acf4c36e..a68ecc24e9 100644
@@ -31,7 +31,7 @@
 extern bool xen_guest;
 extern bool pv_console;
 
-void probe_hypervisor(void);
+void hypervisor_probe(void);
 void hypervisor_setup(void);
 void hypervisor_ap_setup(void);
 int hypervisor_alloc_unused_page(mfn_t *mfn);
@@ -49,7 +49,7 @@ DECLARE_PER_CPU(struct vcpu_info *, vcpu_info);
 #define xen_guest 0
 #define pv_console 0
 
-static inline void probe_hypervisor(void) {}
+static inline void hypervisor_probe(void) {}
 
 static inline void hypervisor_setup(void)
 {
Signature · 7 lines
2.19.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 18.09.18 at 16:00, <[email protected]> wrote:

This matches the nomenclature used by the rest of the guest-related functions.

I'm not convinced this match in naming is more relevant than the current name imo better describing what the function does. But I'm also not overly fussed, so if others think this is the better way round - so be it.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel