Re: [PATCH] KVM: x86: init x2apic_enabled() once

2019-07-24 Thread Sean Christopherson
On Tue, Jul 23, 2019 at 09:06:08PM +0800, lufe...@163.com wrote: > From: luferry > > x2apic_eanbled() costs about 200 cycles > when guest trigger halt pretty high, pi ops in hotpath > > Signed-off-by: luferry > --- > arch/x86/kvm/vmx/vmx.c | 10 +++--- > 1 file changed, 7 insertions(+), 3

Re: [PATCH] KVM: x86: init x2apic_enabled() once

2019-07-23 Thread Krish Sadhukhan
On 07/23/2019 06:06 AM, lufe...@163.com wrote: From: luferry x2apic_eanbled() costs about 200 cycles when guest trigger halt pretty high, pi ops in hotpath Signed-off-by: luferry --- arch/x86/kvm/vmx/vmx.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git

[PATCH] KVM: x86: init x2apic_enabled() once

2019-07-23 Thread luferry
From: luferry x2apic_eanbled() costs about 200 cycles when guest trigger halt pretty high, pi ops in hotpath Signed-off-by: luferry --- arch/x86/kvm/vmx/vmx.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index