Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2740130pxb; Tue, 13 Apr 2021 09:04:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu5iY1FRFkt4Sby23w52piT7e+fqhxc3M1dmRKM/yK5Im3mp/83PUShplqltDoW6FWXqOm X-Received: by 2002:a17:906:f2c8:: with SMTP id gz8mr14572436ejb.242.1618329864694; Tue, 13 Apr 2021 09:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618329864; cv=none; d=google.com; s=arc-20160816; b=a/tlMetVu19+LPsUqgQnu11W+LaE029MYsOvOemwfq/TVcPJv4o2eaz6TEs+jhtiCb HIu2xyZEV+wOEWeKivMcmZDvX7Oy93oMvJ7Q5f06nD/ACNnFEavBLHl2z5r8kQRTGkRX 9g7LaS/1l6umZcG1+wXXfD8cVji0z95W8TEWpJBv3k++GLFXo6pX3np17gxZhvzS1nC1 x16UHHb9y0iQX+J9xMy+HLuz+aBOpPx2QlxqbPxeBIFQh/SAX7lDSf2FCqrQQSTPsPKV JigtSrnBWohey+qtPVQ/uQ1B0NLuoS/yqvmn4Hk29l6FFsb69frikzxR0lQ5JuZ9ZmhN bDFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:cc:to:from:date:subject :dkim-signature; bh=9OKBIxKddRO6dVokae9Nxqj8+3Oy9D13htA8hNvlxT0=; b=faJSTDheiW5kycBZu5dla2sbIgLNIk8RXPn1E4ncklK8oLrg2+jf4w+AUvHe7YMe1j xy8h/O/oizfI5L4cDbiDKYKuqfZTlkXy9hv94UQhNippW8MOtOf3ij2oKL626EYiBmGi 3bEfz948YY6Z5qQxbFMoqNQkeYEeBbxSYZfycktY8HYbOCiwlv4ekVZPiLrCOCAhfSkt 2mEPoALcWjQyOl6yeTMtm1vXbE/RGIuPpM1qwp2belM0fRtl1GFTqRc1oCTML2bLtoTL XTIQ0UYEf1mq7qWDOxFnklSJp24zj+8h21/YMaU55w5ZR9ImEF55E5LkSLK19rFQxdU+ N5UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=VLmfQlc4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id af16si2242185ejc.89.2021.04.13.09.04.01; Tue, 13 Apr 2021 09:04:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=VLmfQlc4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245280AbhDMJL7 (ORCPT + 99 others); Tue, 13 Apr 2021 05:11:59 -0400 Received: from smtp-fw-9103.amazon.com ([207.171.188.200]:33888 "EHLO smtp-fw-9103.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236520AbhDMJL5 (ORCPT ); Tue, 13 Apr 2021 05:11:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1618305098; x=1649841098; h=date:from:to:cc:message-id:references:mime-version: in-reply-to:subject; bh=9OKBIxKddRO6dVokae9Nxqj8+3Oy9D13htA8hNvlxT0=; b=VLmfQlc49UZUIOyLrsXwDwJARKHBAGr/q7BfUWlA9APc2CaMGFB4zHcu POTgsPZ6w5SxUMsWpK1pUrpo6YjTGUXAIws+8oePNm2UGlO20ErFxn4ZF vjw/1vVpWDEW0NpoTsNHLOo9QUPRj6014mMNLbK/dNWi7MxqwVSqOznIy A=; X-IronPort-AV: E=Sophos;i="5.82,219,1613433600"; d="scan'208";a="925562785" Subject: Re: [PATCH v2 4/4] KVM: hyper-v: Advertise support for fast XMM hypercalls Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-1a-67b371d8.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-out-9103.sea19.amazon.com with ESMTP; 13 Apr 2021 09:11:30 +0000 Received: from EX13D28EUC003.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1a-67b371d8.us-east-1.amazon.com (Postfix) with ESMTPS id 56F38A1D98; Tue, 13 Apr 2021 09:11:23 +0000 (UTC) Received: from u366d62d47e3651.ant.amazon.com (10.43.160.209) by EX13D28EUC003.ant.amazon.com (10.43.164.43) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Apr 2021 09:11:15 +0000 Date: Tue, 13 Apr 2021 11:11:11 +0200 From: Siddharth Chandrasekaran To: Wei Liu CC: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Thomas Gleixner" , Ingo Molnar , "Borislav Petkov" , , "H. Peter Anvin" , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , "Alexander Graf" , Evgeny Iakovlev , Liran Alon , Ioannis Aslanidis , , , Message-ID: <20210413091110.GB25751@u366d62d47e3651.ant.amazon.com> References: <5ec20918b06cad17cb43f04be212c5e21c18caea.1618244920.git.sidcha@amazon.de> <20210412201423.rfpykzfgpmjh6ydy@liuwe-devbox-debian-v2> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210412201423.rfpykzfgpmjh6ydy@liuwe-devbox-debian-v2> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.43.160.209] X-ClientProxiedBy: EX13D47UWC004.ant.amazon.com (10.43.162.74) To EX13D28EUC003.ant.amazon.com (10.43.164.43) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 08:14:23PM +0000, Wei Liu wrote: > On Mon, Apr 12, 2021 at 07:00:17PM +0200, Siddharth Chandrasekaran wrote: > > Now that all extant hypercalls that can use XMM registers (based on > > spec) for input/outputs are patched to support them, we can start > > advertising this feature to guests. > > > > Cc: Alexander Graf > > Cc: Evgeny Iakovlev > > Signed-off-by: Siddharth Chandrasekaran > > --- > > arch/x86/include/asm/hyperv-tlfs.h | 7 ++++++- > > arch/x86/kvm/hyperv.c | 2 ++ > > 2 files changed, 8 insertions(+), 1 deletion(-) > > > > diff --git a/arch/x86/include/asm/hyperv-tlfs.h b/arch/x86/include/asm/hyperv-tlfs.h > > index e6cd3fee562b..716f12be411e 100644 > > --- a/arch/x86/include/asm/hyperv-tlfs.h > > +++ b/arch/x86/include/asm/hyperv-tlfs.h > > @@ -52,7 +52,7 @@ > > * Support for passing hypercall input parameter block via XMM > > * registers is available > > */ > > -#define HV_X64_HYPERCALL_PARAMS_XMM_AVAILABLE BIT(4) > > +#define HV_X64_HYPERCALL_XMM_INPUT_AVAILABLE BIT(4) > > /* Support for a virtual guest idle state is available */ > > #define HV_X64_GUEST_IDLE_STATE_AVAILABLE BIT(5) > > /* Frequency MSRs available */ > > @@ -61,6 +61,11 @@ > > #define HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE BIT(10) > > /* Support for debug MSRs available */ > > #define HV_FEATURE_DEBUG_MSRS_AVAILABLE BIT(11) > > +/* > > + * Support for returning hypercall ouput block via XMM > > "output" Fixed. Thanks. ~ Sid. Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879