From: Alex Williamson Subject: Re: [RFC PATCH 8/8] svm: Allow AVIC with in-kernel irqchip mode Date: Tue, 5 Feb 2019 11:34:04 -0700 Message-ID: <20190205113404.5c5382e6@w520.home> References: <20190204144128.9489-1-suravee.suthikulpanit@amd.com> <20190204144128.9489-9-suravee.suthikulpanit@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Cc: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "x86@kernel.org" , "joro@8bytes.org" , "rkrcmar@redhat.com" , "pbonzini@redhat.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "jsteckli@amazon.de" , "sironi@amazon.de" , "wawei@amazon.de" To: "Suthikulpanit, Suravee" Return-path: In-Reply-To: <20190204144128.9489-9-suravee.suthikulpanit@amd.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, 4 Feb 2019 14:42:32 +0000 "Suthikulpanit, Suravee" wrote: > Once the IRQ ack notifier for in-kernel PIT is no longer required > and run-time AVIC activate/deactivate is supported, we can remove > the kernel irqchip split mode requirement for AVIC. > > Hence, remove the check for irqchip split mode when enabling AVIC. Yay! Could we also at this point make avic enabled by default or are there remaining incompatibilities? Thanks, Alex > Cc: Radim Krčmář > Cc: Paolo Bonzini > Signed-off-by: Suravee Suthikulpanit > --- > arch/x86/kvm/svm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > index 580ab40ba207..24dfa6a93711 100644 > --- a/arch/x86/kvm/svm.c > +++ b/arch/x86/kvm/svm.c > @@ -5157,7 +5157,7 @@ static void svm_set_virtual_apic_mode(struct kvm_vcpu *vcpu) > > static bool svm_get_enable_apicv(struct kvm_vcpu *vcpu) > { > - return avic && irqchip_split(vcpu->kvm); > + return avic; > } > > static void svm_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr)