Re: [PATCH] KVM: SVM: compile out AVIC if !CONFIG_X86_LOCAL_APIC

2016-06-14 Thread Suravee Suthikulanit
inux-kernel@vger.kernel.org, k...@vger.kernel.org >>> Cc: rkrc...@redhat.com >>> Sent: Tuesday, June 14, 2016 8:20:30 PM >>> Subject: Re: [PATCH] KVM: SVM: compile out AVIC if >>> !CONFIG_X86_LOCAL_APIC >>> >>> Hi Paolo, >>> >>>

Re: [PATCH] KVM: SVM: compile out AVIC if !CONFIG_X86_LOCAL_APIC

2016-06-14 Thread Paolo Bonzini
rg >>> Cc: rkrc...@redhat.com >>> Sent: Tuesday, June 14, 2016 8:20:30 PM >>> Subject: Re: [PATCH] KVM: SVM: compile out AVIC if >>> !CONFIG_X86_LOCAL_APIC >>> >>> Hi Paolo, >>> >>> On 6/14/2016 11:40 AM, Paolo Bonzini wrote:

Re: [PATCH] KVM: SVM: compile out AVIC if !CONFIG_X86_LOCAL_APIC

2016-06-14 Thread Suravee Suthikulanit
On 6/14/2016 4:22 PM, Paolo Bonzini wrote: - Original Message - From: "Suravee Suthikulanit" To: "Paolo Bonzini" , linux-kernel@vger.kernel.org, k...@vger.kernel.org Cc: rkrc...@redhat.com Sent: Tuesday, June 14, 2016 8:20:30 PM Subject: Re: [PATCH] KVM: SVM:

Re: [PATCH] KVM: SVM: compile out AVIC if !CONFIG_X86_LOCAL_APIC

2016-06-14 Thread Paolo Bonzini
- Original Message - > From: "Suravee Suthikulanit" > To: "Paolo Bonzini" , linux-kernel@vger.kernel.org, > k...@vger.kernel.org > Cc: rkrc...@redhat.com > Sent: Tuesday, June 14, 2016 8:20:30 PM > Subject: Re: [PATCH] KVM: SVM: compile out AVIC i

Re: [PATCH] KVM: SVM: compile out AVIC if !CONFIG_X86_LOCAL_APIC

2016-06-14 Thread Suravee Suthikulanit
Hi Paolo, On 6/14/2016 11:40 AM, Paolo Bonzini wrote: AVIC needs __default_cpu_present_to_apicid. Stub out all functions that use it, and disable the module parameter, if Linux is compiled without local APIC support. I think you are right that we should disable AVIC #ifndef CONFIG_X86_LOCAL_

[PATCH] KVM: SVM: compile out AVIC if !CONFIG_X86_LOCAL_APIC

2016-06-14 Thread Paolo Bonzini
AVIC needs __default_cpu_present_to_apicid. Stub out all functions that use it, and disable the module parameter, if Linux is compiled without local APIC support. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/x86/kvm/s