Jan Beulich
2012-Jan-09 13:15 UTC
[PATCH] VMX: print Pause Loop Exiting disabled message just once
... rather than per booting CPU. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -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 Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2012-Jan-09 13:24 UTC
Re: [PATCH] VMX: print Pause Loop Exiting disabled message just once
On 09/01/2012 13:15, "Jan Beulich" <JBeulich@suse.com> wrote:> ... rather than per booting CPU. > > Signed-off-by: Jan Beulich <jbeulich@suse.com>Acked-by: Keir Fraser <keir@xen.org>> --- a/xen/arch/x86/hvm/vmx/vmcs.c > +++ b/xen/arch/x86/hvm/vmx/vmcs.c > @@ -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 > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel