Message ID | 20231002095740.1472907-11-paul@xen.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1499727vqb; Mon, 2 Oct 2023 08:22:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGT1trNiFVfFqXmchb6Nqd74QzdXgvMKVECAe+C5JOI2NNDPjeAVHl2SsVvoKZLPg2740Qq X-Received: by 2002:a17:902:e544:b0:1c7:61a1:9688 with SMTP id n4-20020a170902e54400b001c761a19688mr3932728plf.7.1696260148768; Mon, 02 Oct 2023 08:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696260148; cv=none; d=google.com; s=arc-20160816; b=zo7vvJWclx1nMcLsNgkb9BVV337aUis3CxB2Ch15qCrxrd+S5GV0vRisp7BfusgG+2 M1mKgAy9MgRx4f1QT5mjKGgqr5EHVYElLLEeXdlr+sNpEggttZ7oJOAqh7YUIYcfXeAb GxAUjvuLqJ3dbdm1UyPCfXFehOxZtNf/3rN1duC3NmRdCQO3CvLlhj4wFICckTT4/jiz G2Uny/syEgdqaD8yxapQSM+RWiZNdFrG9kLG2i6R72euuOpuT5c/DGpAsQ4ePAjPoubY p+lofi2GUNpYfkl5g6M8Wqm3PzS5wiSIFmF1E0OXyG0YQ51UdfGyiWnCDSTT8tRq8RG9 dXKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Yx86vZBs7HZcWBbvoo5tY2OVXe5f+cPwzpmsB3avRzM=; fh=jcKAuV9sx5P88dpWYyXihS1UO5TLmUGd/2Iq3QREE4o=; b=uU7zK7vWJou+BUu1Ziqik5toxMS6j50YHLhNTRc7NeiiPu0twIU5Hfz+mptM8WoRJF liDIsk2IEU1dVdD1Qh2/Y78CVsmdFfAhAKxl6JhCyqykEXIFPjqtC9x+U//kN3t1/TP7 3CMkAcLnYVivJn7+2fnrB5rmhKjraWI0OcMZHf6jlUh1AlchAYa6jP2/4hVxiIsgrF9P Z48nnZIihWM0QbXfU/EDAuOXepzioeT/k5qJ+q9SMnolpkw6BcE3sXIYVMzmgH3RSI3o wVh9puWTShc2QYX39+wsVCBdJAnzinjr+Acrtw1O4QMCIqRt91e1bk1jE2peEYwAtBRz q40Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=m1QmWjOR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id j6-20020a170903024600b001c470c5906bsi28971993plh.221.2023.10.02.08.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 08:22:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=m1QmWjOR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6B62A8047D70; Mon, 2 Oct 2023 03:01:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236490AbjJBKAk (ORCPT <rfc822;pwkd43@gmail.com> + 16 others); Mon, 2 Oct 2023 06:00:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236351AbjJBKAW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 2 Oct 2023 06:00:22 -0400 Received: from mail.xenproject.org (mail.xenproject.org [104.130.215.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99E73BD; Mon, 2 Oct 2023 03:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=Yx86vZBs7HZcWBbvoo5tY2OVXe5f+cPwzpmsB3avRzM=; b=m1QmWjORSP6UgcpdMBl+J4P++b NYZVhLYf+qjCqCRoB9tmISLYh5uPLDbdRXKtBz3t0wLby3NTfLJ5FGR1HalTU6xEyC2mABgxpB3g1 rkMlHcoz/s4Gfcv2W50tD9i1dQ2pWhl7FpBKWN33oYYxwpiZCzhjAOl9Ubu+QKjKGTqo=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from <paul@xen.org>) id 1qnFiq-00017A-KC; Mon, 02 Oct 2023 10:00:16 +0000 Received: from ec2-63-33-11-17.eu-west-1.compute.amazonaws.com ([63.33.11.17] helo=REM-PW02S00X.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <paul@xen.org>) id 1qnFgg-0000Ft-7i; Mon, 02 Oct 2023 09:58:02 +0000 From: Paul Durrant <paul@xen.org> To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Paul Durrant <pdurrant@amazon.com>, David Woodhouse <dwmw@amazon.co.uk>, Sean Christopherson <seanjc@google.com>, Paolo Bonzini <pbonzini@redhat.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, David Woodhouse <dwmw2@infradead.org>, x86@kernel.org Subject: [PATCH v7 10/11] KVM: xen: advertize the KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA capability Date: Mon, 2 Oct 2023 09:57:39 +0000 Message-Id: <20231002095740.1472907-11-paul@xen.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231002095740.1472907-1-paul@xen.org> References: <20231002095740.1472907-1-paul@xen.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 03:01:13 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778657682043015444 X-GMAIL-MSGID: 1778657682043015444 |
Series |
KVM: xen: update shared_info and vcpu_info handling
|
|
Commit Message
Paul Durrant
Oct. 2, 2023, 9:57 a.m. UTC
From: Paul Durrant <pdurrant@amazon.com> Now that all relevant kernel changes and selftests are in place, enable the new capability. Signed-off-by: Paul Durrant <pdurrant@amazon.com> Reviewed-by: David Woodhouse <dwmw@amazon.co.uk> --- Cc: Sean Christopherson <seanjc@google.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: x86@kernel.org v2: - New in this version. --- arch/x86/kvm/x86.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index eee252a0afef..1487b679ae45 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4531,7 +4531,8 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) KVM_XEN_HVM_CONFIG_INTERCEPT_HCALL | KVM_XEN_HVM_CONFIG_SHARED_INFO | KVM_XEN_HVM_CONFIG_EVTCHN_2LEVEL | - KVM_XEN_HVM_CONFIG_EVTCHN_SEND; + KVM_XEN_HVM_CONFIG_EVTCHN_SEND | + KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA; if (sched_info_on()) r |= KVM_XEN_HVM_CONFIG_RUNSTATE | KVM_XEN_HVM_CONFIG_RUNSTATE_UPDATE_FLAG;