Message ID | 20230926122013.867391-11-paul@xen.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1969138vqu; Tue, 26 Sep 2023 07:44:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlMaTK22gKGmY3/mXFd0wGJs5MYmvK+C3wRfENch71ncw0xWg1SQdCBeRXjnsoEq/BOoOX X-Received: by 2002:a17:902:e889:b0:1c5:ecfc:2650 with SMTP id w9-20020a170902e88900b001c5ecfc2650mr4782978plg.14.1695739492478; Tue, 26 Sep 2023 07:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695739492; cv=none; d=google.com; s=arc-20160816; b=1JnEg+8TefRf3NxeVwgXvX5F9TThzxUXHlR9uzCrSyK7JWpCa1CaDJS8+5FEwrDeBW HzRx4ypC82np89mEaWauskk790Ts2Rn8nmqM2zXPubXMLaNrhwgW3wyZsNVPDahgc0Sh sathe0D9dV1p7wx2SrlfT8BoSPctzdOnKNT0f+wag60pC7oRBtG1PhNXtoHq2+g/P+H+ qi2QEimOtpW79a5ffznyAdq1lSZYzzzo7ypTzNh6qVVtepws9KNBWJe0BrGn326olsas DfQLacje28JT2Vv3ymK0VbE9C7kvOcARU8T3PJ7fMNDCimD1epX8SlNqyDaMHE9VbGNz ChBw== 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=Srws2JygYYEAIrDAvpEOldGFde10ajd/bWOIhjhi08YamBurmBXq4m9bjEAxqX3efg 45WxWKoSuEhWj5PoujImgN+fUhU4ICsQrONOxX4PbVRF5LVd+dhAH4umtM/ThszHU2qx DchkQot/gGrOrFqWkLr3K3DxudYYg9UsNIbPQDtDd1twZAzASQkHciLiiwVMdGK1CjLk kq59Hx00wjJAhxqvSgRRm0jE7P7JOtQeFpUmybKKaYhUjaGRJfxlzKj6T09tpphq8Jun qj1P3bbM47Nf2Vxdn5qGB9b6iShXkQn2emQbTu3RtuLp75QSVUisQ4+cDFYdIBr0wtMy EdGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=NO7VsyOv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id l4-20020a170903244400b001bf01c6bc1bsi13371343pls.551.2023.09.26.07.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 07:44:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=NO7VsyOv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 6BA668246E25; Tue, 26 Sep 2023 05:30:44 -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 S234651AbjIZMa2 (ORCPT <rfc822;pwkd43@gmail.com> + 28 others); Tue, 26 Sep 2023 08:30:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234560AbjIZMaZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 26 Sep 2023 08:30:25 -0400 Received: from mail.xenproject.org (mail.xenproject.org [104.130.215.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F176B101; Tue, 26 Sep 2023 05:30:18 -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=NO7VsyOvfTAlIh7GHthnujdm5L kAaFkMTmDsbbRC5gG1IjKjfcVFfdEu/eUQwXJFXHJff4s6Jxtpf4dgw85LtH+lpFVkYI/vDiW9+JJ 9CEBMibnM6ymFBUgwZJLY85TjVikhVHJLRNRv78vd+AAmUikAM9lmmIpyYpnXcsfhHE8=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from <paul@xen.org>) id 1ql7Ci-0000Tr-GG; Tue, 26 Sep 2023 12:30: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 1ql73J-0001mF-Ud; Tue, 26 Sep 2023 12:20:34 +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 v6 10/11] KVM: xen: advertize the KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA capability Date: Tue, 26 Sep 2023 12:20:12 +0000 Message-Id: <20230926122013.867391-11-paul@xen.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230926122013.867391-1-paul@xen.org> References: <20230926122013.867391-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]); Tue, 26 Sep 2023 05:30:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778111733960714616 X-GMAIL-MSGID: 1778111733960714616 |
Series |
KVM: xen: update shared_info and vcpu_info handling
|
|
Commit Message
Paul Durrant
Sept. 26, 2023, 12:20 p.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;