Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp596330rdf; Tue, 21 Nov 2023 10:40:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWeQ4XckLRIeX/miQQrMAmnUC2LEGLVavFPnY2SX2qvlgUpCfZvc4kgyjjTfjc5BihyDP7 X-Received: by 2002:a05:6a20:1607:b0:172:6771:d766 with SMTP id l7-20020a056a20160700b001726771d766mr11368381pzj.51.1700592022479; Tue, 21 Nov 2023 10:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700592022; cv=none; d=google.com; s=arc-20160816; b=SPjFQ4LYkHfVNzZwXWk2WztRorbtnw/gHb13rrB62aOkV/SMMwkIkZtKL1IrcQjq5g E1skbD0F1E1dtaPJ3Y09oKtFB7CU72WmJ/ukWtzkm+yYSddNXby2WOsdjQh82KBk5FLj JOfGEYSQQLv6zfwozX7d0E1mW2fXLEo2KS4WEKkFHfaTTMaFyiI9ejsOUjCJWLbkqmMf apHHKYL1yLfKzBw4PIXhVUkZKSnMKkgp5PhzC2YIPOzL1kRAXtQhE/WMw8wcae90jV3/ A/PAtRM6xwnLXa3VHIDVxG6QvzXIFiYp+56PuYy02m3eOLEdvKnisZ1Q4UMr/PNfarue 7fXQ== 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 Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id g14-20020a056a0023ce00b006c6a6287fb5si11069392pfc.62.2023.11.21.10.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:40:22 -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 B039580239E3; Tue, 21 Nov 2023 10:30:51 -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 + 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 ); 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 ) 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 ) id 1r5V5q-0004Z3-Mt; Tue, 21 Nov 2023 18:03:26 +0000 From: Paul Durrant To: David Woodhouse , Paul Durrant , Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , 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: 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:51 -0800 (PST) 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 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; -- 2.39.2