Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp545086rdb; Thu, 15 Feb 2024 07:55:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7AOkME3lz0XO9rQQde4UGEsPYhp3B/hrdbvm5MKVNYs4NkhexNuoIrUXDgStC36ekxpdnJqQRSs8nWa+kLvq+KneAGfe1YOdvKspRXQ== X-Google-Smtp-Source: AGHT+IFxelOvx0hobWStS4s2k2IOp+W691F0RzwWhznbenFj8l9T3bITjRQE9n1gwBmb4JsHrfPl X-Received: by 2002:a17:902:da87:b0:1d9:2158:1308 with SMTP id j7-20020a170902da8700b001d921581308mr2610349plx.28.1708012523026; Thu, 15 Feb 2024 07:55:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708012523; cv=pass; d=google.com; s=arc-20160816; b=H8dcFuPFOUbNB4yYx7OmmS6F3wTJpwsvj5uJHzh2QPqALu41udSJxeFVgDEaUM4FlM gxli5elNqKQnAHulnWGLiZRZPekGHN4/utmI7SZGTuLxZ3UD0SZZsv1C8FXdLLNfj4NT 3DoK9+mfA6Y227N+kZBlsOvHXDaAaJ0GwuX51p/4P5AvBEyZswO6DtR546cAqr05+0tY v87Kkt+SCXeSj0lkY1VjDlDf6VJNZWKDYFsofHLYXiYByRZQR0fva7am12p+LPDKxTmz 0moBQuieaJCVuR+YKHpnd3pvLml6dsRR3cAa4GQ1oyiNexylCgafB3hJBdjEkBHcnESS 3ccg== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67228-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u12-20020a170903124c00b001db719a8412si1332041plh.311.2024.02.15.07.55.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:55:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67228-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 58B4128E6B7 for ; Thu, 15 Feb 2024 15:46:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35A0F13540F; Thu, 15 Feb 2024 15:44:37 +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 ) 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 ) id 1radhQ-00089r-M1; Thu, 15 Feb 2024 15:30:56 +0000 From: Paul Durrant To: Paolo Bonzini , Jonathan Corbet , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , Sean Christopherson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , David Woodhouse , Paul Durrant , Shuah Khan , 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Paul Durrant Now that all relevant kernel changes and selftests are in place, enable the new capability. Signed-off-by: Paul Durrant Reviewed-by: David Woodhouse --- Cc: Sean Christopherson Cc: Paolo Bonzini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: David Woodhouse 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; -- 2.39.2