Skip to contentSkip to conversation

VMX: print Pause Loop Exiting disabled message just once

PATCH In review Jan Beulich 2 participants 2 messages Jan 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VMX: print Pause Loop Exiting disabled message just once

... rather than per booting CPU.

xen/arch/x86/hvm/vmx/vmcs.c +2 -1
@@ -249,7 +249,8 @@ static int vmx_init_vmcs_config(void)
     if ( (_vmx_secondary_exec_control & SECONDARY_EXEC_PAUSE_LOOP_EXITING) &&
           ple_gap == 0 )
     {
-        printk("Disable Pause-Loop Exiting.\n");
+        if ( !vmx_pin_based_exec_control )
+            printk(XENLOG_INFO "Disable Pause-Loop Exiting.\n");
         _vmx_secondary_exec_control &= ~ SECONDARY_EXEC_PAUSE_LOOP_EXITING;
     }
 

VMX: print Pause Loop Exiting disabled message just once

... rather than per booting CPU.

xen/arch/x86/hvm/vmx/vmcs.c +2 -1
@@ -249,7 +249,8 @@ static int vmx_init_vmcs_config(void)
     if ( (_vmx_secondary_exec_control & SECONDARY_EXEC_PAUSE_LOOP_EXITING) &&
           ple_gap == 0 )
     {
-        printk("Disable Pause-Loop Exiting.\n");
+        if ( !vmx_pin_based_exec_control )
+            printk(XENLOG_INFO "Disable Pause-Loop Exiting.\n");
         _vmx_secondary_exec_control &= ~ SECONDARY_EXEC_PAUSE_LOOP_EXITING;
     }
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Jan Beulich

... rather than per booting CPU.

Quoted 19 lines
xen/arch/x86/hvm/vmx/vmcs.c +2 -1
@@ -249,7 +249,8 @@ static int vmx_init_vmcs_config(void)
     if ( (_vmx_secondary_exec_control & SECONDARY_EXEC_PAUSE_LOOP_EXITING) &&
           ple_gap == 0 )
     {
-        printk("Disable Pause-Loop Exiting.\n");
+        if ( !vmx_pin_based_exec_control )
+            printk(XENLOG_INFO "Disable Pause-Loop Exiting.\n");
         _vmx_secondary_exec_control &= ~ SECONDARY_EXEC_PAUSE_LOOP_EXITING;
     }
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel