Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp36646rdb; Tue, 19 Dec 2023 08:44:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5uhAWTOmjcFhXTqckv2JuzJfRuWV0JB0ItsghWPffoXM33kPVAMogbfzvsSeKcgCUu9aP X-Received: by 2002:a17:906:ce33:b0:a23:701b:a160 with SMTP id sd19-20020a170906ce3300b00a23701ba160mr1349860ejb.38.1703004266128; Tue, 19 Dec 2023 08:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703004266; cv=none; d=google.com; s=arc-20160816; b=SEh0y8WdSI70SYZcemCk8UZXI5MoiIAKtUFK+U4jtAZLdfA6f4QcjId5pgDbV7ycPS K22R9FTFMjdbz1WcOW1HAcet1V1RDLfVtC5iS8sLL9BjbE/aXQWmbABTZT/pUsZvgI5Z 4mn3MR8/2my0qHK+3WKMCPg9aQkQdJ5aHg+6itTJWKYSI6VT6r/7b50/7C/SOpfNY45W cAfheyV5h7t+Sr8diooyq096H1r2vQXe/5MJYwyBlQCLf6KqVSmb+7Dc6e90lr4HfqMH abkiYRac4e84pQxZr3C+rPXKJM3iZjEa6jBpUCokIV9yfzOZtUeP5Jcl58Roa+6fMzf9 JWWA== ARC-Message-Signature: i=1; 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=9nVZwpn0XPaPE+ciJu4eP0/Qex+j8YZICActwz6UTno=; fh=aAPqvXm40pY9772UiBOljEePwtz/3Q0zIOpw238tj3M=; b=bdIe8vZwCN5A0t2x5OtX/SzCwZt1SK1li/wbBLIzdwEhuPCVC+sb5iq4S/4bNjFZtp nOeSbjpDSLZvLMwZCAm2fJbeu+3uExYP0DmhQZVlCr0JZumdBx7okSo8mGUL4kIFhKm1 LPSVFP6g3pf6CuB6GjNHcKqY8ydOeEGYcqSg61uLRuR62jTX4h+Qtnk+ujcmH340XS4R HO6/272SM1rAb1YGyDHJdJjkql4jsRwF1tA+5TozuKr+6AvfsfCPXG0gf+i+E7rWbkmq 3UgkvywlWZqNIIry2HSSx1J6wImatFgEHNrxk6wV+WJf5knBNPNM1MU4K+0eu8j+XJp9 EZ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=bElC4J1N; spf=pass (google.com: domain of linux-kernel+bounces-5583-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5583-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h13-20020a170906718d00b00a268858488csi161163ejk.342.2023.12.19.08.44.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 08:44:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5583-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=bElC4J1N; spf=pass (google.com: domain of linux-kernel+bounces-5583-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5583-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DB7941F25BB0 for ; Tue, 19 Dec 2023 16:44:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45E7E37D3B; Tue, 19 Dec 2023 16:41:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xen.org header.i=@xen.org header.b="bElC4J1N" X-Original-To: linux-kernel@vger.kernel.org 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 89E0D374CD; Tue, 19 Dec 2023 16:41:51 +0000 (UTC) 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=9nVZwpn0XPaPE+ciJu4eP0/Qex+j8YZICActwz6UTno=; b=bElC4J1NOX63rTHNm1/TlNhe7m pzytTPFTkyuRx1zWqmK5ywAe2GyLiqib4A3hvI9n0uKtvkKzgDUp8Zf8lnLMH0M4jxCUwSvEoKKqj gKP6llCF27EpbKRaiXEKRXI71mvg3UOrRyI5UnJKoU2SE6B8fCrIOTj+JRxlD/ccTCJ8=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rFd9y-000655-9S; Tue, 19 Dec 2023 16:41:34 +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 1rFckL-0005h9-4E; Tue, 19 Dec 2023 16:15:05 +0000 From: Paul Durrant To: Paolo Bonzini , Jonathan Corbet , 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-kselftest@vger.kernel.org Subject: [PATCH v11 15/19] KVM: xen: advertize the KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA capability Date: Tue, 19 Dec 2023 16:11:05 +0000 Message-Id: <20231219161109.1318-16-paul@xen.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231219161109.1318-1-paul@xen.org> References: <20231219161109.1318-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 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 19e6cc1dadfe..4864251dca41 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4678,7 +4678,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