Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5394206ima; Tue, 5 Feb 2019 11:01:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IaiKz+FcZ+gXh0G90NKACsYX7+QBLA//pgwssoHnzQ6QsyuANql4ZMPPmbnN7HXqTCPE5Ry X-Received: by 2002:a63:d818:: with SMTP id b24mr5800362pgh.174.1549393277871; Tue, 05 Feb 2019 11:01:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549393277; cv=none; d=google.com; s=arc-20160816; b=T0Qv3Q7W+7ZTcTS4ESzLzDBY/8UXtHAve/gagNSZtNS9G0sG+CUSbzIc24s2JhD2I5 3DmPSF14LxgvK4WSU01Mkk2q0fqzH5YD4u+C81z57lSmWC31sCy1ZOmZhEADClnCP/PH WfN7OUn061ShxJU5TkuOdikkKHYdxsWvHk+PQtyp/ljpaflgtFarwQl/st0JnUWIYeWt j0Miiubry2dlJzAFezzBqpLBzBtDZlVaRZums6E0n/MNU0PHkOIeFc0LFJRTMHJO1AtG EIdoOiadkIAnIQGGmMhqOXn2ffddDwo2HoDQLgIekWt21zOEWl24wfTtQKDCTaiuUvdu 5heg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=NbPg5VaQw46VrRHCzpFataQmMhQR9wZNXGIYhxaHr64=; b=0+gVatsfikmJoRwTTLtMuf8khAnECaa1hDowOXi8C1FUudlRfpwlh42/RzUZQZDsMu w8TMSDmj9jDG9+ZiiAQbLn8BsFFs6bHDkuaLRvHHBvrpeLzhNblJvelG4atYzLjrJqKD 1HUhvd+m90ormMjawSCeKKRCmcCuJw6PA5aTkJaDJLkfOi+S1GTJGpajyqMuv0KlWnAD edb7puDo7FNBXA9q5RWh3AKnjg020Ooorj0ucPQqQcOz2OfkZuIrb6GAWObSbsXxErCd vWdyjwUX0P1fkXKy7faBXG/F1MRuVfBracYgpkIU8J7eeSaJfrgvnRHh5HDaaOgA1hNs c7Mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q17si1373352pgv.426.2019.02.05.11.01.01; Tue, 05 Feb 2019 11:01:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730248AbfBESeH convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Feb 2019 13:34:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35695 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727847AbfBESeG (ORCPT ); Tue, 5 Feb 2019 13:34:06 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7AD41811DB; Tue, 5 Feb 2019 18:34:06 +0000 (UTC) Received: from w520.home (ovpn-116-24.phx2.redhat.com [10.3.116.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5438560BE8; Tue, 5 Feb 2019 18:34:05 +0000 (UTC) Date: Tue, 5 Feb 2019 11:34:04 -0700 From: Alex Williamson To: "Suthikulpanit, Suravee" 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" Subject: Re: [RFC PATCH 8/8] svm: Allow AVIC with in-kernel irqchip mode Message-ID: <20190205113404.5c5382e6@w520.home> In-Reply-To: <20190204144128.9489-9-suravee.suthikulpanit@amd.com> 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 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 05 Feb 2019 18:34:06 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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)