Message ID | 20231121180223.12484-14-paul@xen.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp837986vqb; Tue, 21 Nov 2023 10:40:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHU9Avvx/l9HkfMwupmdGoyWZ5Rq2ICDjwtahNKjXWaUcOIzDlI6BGCCabghCwHwRFKMRIF X-Received: by 2002:a17:903:2307:b0:1ce:89a7:440b with SMTP id d7-20020a170903230700b001ce89a7440bmr10719284plh.2.1700592042679; Tue, 21 Nov 2023 10:40:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700592042; cv=none; d=google.com; s=arc-20160816; b=OviML8OL17tmfxbVVshrefwBeQd34c5NicpgAR9xJMZJYfFjwEgeL92uQ3FFIXaf8c /85K2BEHJyMfZELPP/O6K4kZmq8OxKm67ibC50yv1o2ftqCSNB2DPS2KGWf4LrPtzSOr OZG2ImKq5i0f7VtT9oUIY6hPz1sUYIGbmmyZ/FSRKoIpR8iZP5ZJBe39jMii7yiWTML1 p1hPeXIPGosMuwPGUZXrZi8ndLHh3Hab8yXdkvUknBcX0SJGwdRKnx7xEQ2mohFwZ+VA Mzk1QXvdF5ep2Vbu550qEMh/31KE2tKQPTJe193GzJ8Gd0g2P4Qw+Cu3J3b4fT5g/Lkq gG+g== 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:to:from :dkim-signature; bh=sy3Iq8ck++uRsQC+BbzwlVq1Fqi2MFGRPa2yPUfB5uM=; fh=Cum1qOF0YrAzH/5yQjcCBfU63B+V0l01YtzsDBRUOAc=; b=YzvFzpyEpgbjqOPb82y/xBDxcR5Rzige5UBGj6baPHXzM5f3YsYOSrAuLPdJ87Wd4f rMpx6Vs479N0VJTWm+CP9E45ZzqTloas9LfTb98OXfd6gCH4VuWh43ewcR2V9Ce/DBFE e6QMd/hxLxHVh9VFQNs67tBqOa4+xKZ/weALcrTpGdx76SRdLMxdkGAZlqGEZAZagW7a 0XIsTD/KOWKyfcKo0ITckWA1tggUZwTAGdiHRe2OMEZRJdLJt+RYGDKwKZMfKXlK0BMC 14hW7Lp8hWaLaKtIwUPjeGhOO/3LoCOF3WQj2HdnsWX9us0E2RZIwtjfvfeBA/pgbpR1 GUvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=a2VEtKpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q13-20020a170902dacd00b001cf65739fd9si3961144plx.431.2023.11.21.10.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:40:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=a2VEtKpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 6F5F1808F003; Tue, 21 Nov 2023 10:30:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234240AbjKUSaf (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Tue, 21 Nov 2023 13:30:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230331AbjKUSad (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Nov 2023 13:30:33 -0500 Received: from mail.xenproject.org (mail.xenproject.org [104.130.215.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CA0E18C; Tue, 21 Nov 2023 10:30:29 -0800 (PST) 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:To:From; bh=sy3Iq8ck++uRsQC+BbzwlVq1Fqi2MFGRPa2yPUfB5uM=; b=a2VEtKperwchV5z05Oa2/7Clji QKelvSs5rAgVcjaAwl7hhfFiuWJZTEgN1kREYGgQs+Rgs4Fqj19YKvpA3K5nsSaUeH04Pw9RZq3IC iVHNUSuwGWcTSepvDTRTKe0DajLH09xF1Ys8P+VoHLxy+FRrSzT6HCeTR+iLHrWyXPE0=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from <paul@xen.org>) id 1r5VVq-0000Bg-0w; Tue, 21 Nov 2023 18:30:18 +0000 Received: from 54-240-197-231.amazon.com ([54.240.197.231] 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 1r5V5q-0004Z3-Mt; Tue, 21 Nov 2023 18:03:26 +0000 From: Paul Durrant <paul@xen.org> To: David Woodhouse <dwmw2@infradead.org>, Paul Durrant <paul@xen.org>, 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>, x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 13/15] KVM: xen: advertize the KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA capability Date: Tue, 21 Nov 2023 18:02:21 +0000 Message-Id: <20231121180223.12484-14-paul@xen.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121180223.12484-1-paul@xen.org> References: <20231121180223.12484-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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 21 Nov 2023 10:30:35 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783200002064598424 X-GMAIL-MSGID: 1783200002064598424 |
Series |
KVM: xen: update shared_info and vcpu_info handling
|
|
Commit Message
Paul Durrant
Nov. 21, 2023, 6:02 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 4afe9e447ba4..270018cf9ce0 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4638,7 +4638,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;