[v13,16/21] KVM: x86/xen: advertize the KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA capability
Message ID | 20240215152916.1158-17-paul@xen.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67228-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp488670dyb; Thu, 15 Feb 2024 07:47:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV9uDV4ZTEIe/IFtICGPk2oYlLYqRcfgbG0J3FfwBc4LVX3QMKkgCpH/oOnMU34QYIstRJWo8aVXkSoWUpms3gHFlgDzA== X-Google-Smtp-Source: AGHT+IHn8WO4a7oscixYs00TpEofgI4fXasQwD1xL9D44sgc1k/SPV4ctxbZmheKyuZaaUUJuQJ8 X-Received: by 2002:a9d:4b05:0:b0:6e1:2e98:e5d9 with SMTP id q5-20020a9d4b05000000b006e12e98e5d9mr2482801otf.18.1708012077789; Thu, 15 Feb 2024 07:47:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708012077; cv=pass; d=google.com; s=arc-20160816; b=Ccv2GFKCP/N78/44lJRSVRbZ4lo9vOoKTtBXxLo8s6TIhJjCbPkodGi6E1LrrJwpdr uJpaBRJxPR6gR7aemNQVE8R+EAEV/vameUlRzOIfZeXChCjFf81evXq9xmWoViQbvQDI OIl30X8vOph1r0ZMStr/FB2lGF9jSIkEx1eP1b4v72VG+ndZJTvwbj7IDeCGV6UaeXsL rhrLtEFSC5DFX3jZuzejaZJv0qfzvgd4L1Ajgt71RyOc1QUJex+kKdx1vlOE38AjXtg7 KWCtWCXtPd+xFygeMpO6YScyNGspi/c3Uk3U4MPZm0ygXKeHa9eWC14ASHSuxhOtDBin Xrow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=w0IMfkwDRcUALjTNcpBQinShCHJq/t16b2aLsdRf4Ls=; fh=NrOggL3VZvuSFh5W9Wj2+kLgS4v0nogfnAWvBJoouXQ=; b=ThMZb3W2hdlI2Mw+NpDzDvS1N1moIuoynNVYJAEnNOPjfPZG+MJUK9ESVXOopVvetI VzolxDd1AE/4/EOFZ2aCVGgPiMj8LsRUkHVLZDIDCeYi08lIU5x3ALFWq3ddBSjgFVA6 b8PN65bjj/0hJmAf5GFY1iUprT5M8LXKFWkgOnQcQ/SmFbdY0jGYjuVxo3q3fJrLmzU8 KV9itmRoFtZn9dAPqayb5NIU+Oarme6+9O3PRHTeWKK/3S4iru0nrzvL+H9qKUo/xXto 5PkYinTmf4SHm7iMFgxlLy9p01QFlsc4MtSaMi1R0F7Ej+zZQSLuOo9Pa1w/RbB+Z332 49yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=wgb4qL0E; arc=pass (i=1 spf=pass spfdomain=xen.org dkim=pass dkdomain=xen.org); spf=pass (google.com: domain of linux-kernel+bounces-67228-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67228-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b22-20020a05620a271600b00787268097dbsi1887691qkp.637.2024.02.15.07.47.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:47:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67228-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=wgb4qL0E; arc=pass (i=1 spf=pass spfdomain=xen.org dkim=pass dkdomain=xen.org); spf=pass (google.com: domain of linux-kernel+bounces-67228-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67228-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F7AB1C22D98 for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 15:47:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AAF21369B2; Thu, 15 Feb 2024 15:44:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xen.org header.i=@xen.org header.b="wgb4qL0E" Received: from mail.xenproject.org (mail.xenproject.org [104.130.215.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 870121339BD; Thu, 15 Feb 2024 15:44:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=104.130.215.37 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708011876; cv=none; b=Jh5TeUjCNMrIHciaaVezhZiC0QnFc8kQ8ht1NX0DDLFp+EWcs5AcYvv3COvHezbMbnsnCSdnl3KSyW8/V20u3v+p4Hzh+NEdhXHHO7ecXQ9IJJmzOURGbxHjHs35msHEHBHo4olLOmfqPuIosn1QZHDLtolXJOScdylR5/PnMoU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708011876; c=relaxed/simple; bh=JLTFPO4km9t6WgVDF7QUbKbf0ie6nq3sTq43ni7ffp8=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jzjQ1a86usn7lYtq6AAj/3oD0e6enCn7a5g6aDke8Ae6GZ76lYE3RRVU+3jBbGuKqi/C2sWM1wrHNT1LVOFnWeIO07QcjVa/ZxWOwF+7X984sAASEzJO1wHo++ArtMdA8YRReJySYjywDqG6wRwfX4cC9xfwCr1623P9t65pN7M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org; spf=pass smtp.mailfrom=xen.org; dkim=pass (1024-bit key) header.d=xen.org header.i=@xen.org header.b=wgb4qL0E; arc=none smtp.client-ip=104.130.215.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xen.org 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=w0IMfkwDRcUALjTNcpBQinShCHJq/t16b2aLsdRf4Ls=; b=wgb4qL0EEr4Ygago0j4nJTNSA6 yHbImGVQPNUzvKsiEmpBmsO8yvAh4khvPqhE/sP+fM+C1pHWE2YJ18/c+QOoSoS3fdRCnMXlYw7vn +usDd9T030T0ZLxDPbVNoo8/QEPVGkFGZBf1nndIv94bFuypayGlIubpbzs4gieQgjGg=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from <paul@xen.org>) id 1raduM-0001WW-8V; Thu, 15 Feb 2024 15:44:18 +0000 Received: from 54-240-197-226.amazon.com ([54.240.197.226] 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 1radhQ-00089r-M1; Thu, 15 Feb 2024 15:30:56 +0000 From: Paul Durrant <paul@xen.org> To: Paolo Bonzini <pbonzini@redhat.com>, Jonathan Corbet <corbet@lwn.net>, Christian Borntraeger <borntraeger@linux.ibm.com>, Janosch Frank <frankja@linux.ibm.com>, Claudio Imbrenda <imbrenda@linux.ibm.com>, David Hildenbrand <david@redhat.com>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, Sean Christopherson <seanjc@google.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>, David Woodhouse <dwmw2@infradead.org>, Paul Durrant <paul@xen.org>, Shuah Khan <shuah@kernel.org>, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v13 16/21] KVM: x86/xen: advertize the KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA capability Date: Thu, 15 Feb 2024 15:29:11 +0000 Message-Id: <20240215152916.1158-17-paul@xen.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240215152916.1158-1-paul@xen.org> References: <20240215152916.1158-1-paul@xen.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790980472283026519 X-GMAIL-MSGID: 1790980472283026519 |
Series |
KVM: xen: update shared_info and vcpu_info handling
|
|
Commit Message
Paul Durrant
Feb. 15, 2024, 3:29 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 v13: - Patch title change. 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 31cd5d803dae..9f98c5075629 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4673,7 +4673,8 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) KVM_XEN_HVM_CONFIG_SHARED_INFO | KVM_XEN_HVM_CONFIG_EVTCHN_2LEVEL | KVM_XEN_HVM_CONFIG_EVTCHN_SEND | - KVM_XEN_HVM_CONFIG_PVCLOCK_TSC_UNSTABLE; + KVM_XEN_HVM_CONFIG_PVCLOCK_TSC_UNSTABLE | + KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA; if (sched_info_on()) r |= KVM_XEN_HVM_CONFIG_RUNSTATE | KVM_XEN_HVM_CONFIG_RUNSTATE_UPDATE_FLAG;