Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2384022pxb; Tue, 13 Apr 2021 00:04:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmKYhCm1J2KnHT82OjJotOg11n6WO4BXsn/g6Gg1Yl7JGQBGyHhibfj+9Puk5Uqge2UTg2 X-Received: by 2002:a50:ed89:: with SMTP id h9mr33282742edr.17.1618297443576; Tue, 13 Apr 2021 00:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618297443; cv=none; d=google.com; s=arc-20160816; b=BgGex4yI/Ipl98IflIENV55FDd6QOya7BW4Cc+JnLYRYJsb+V45nP3vPoVlvufhUUf BAUB/zpaFG+N2PCIyh2uKyRdZiirIsCdy/s6QEdTdzQBYdciao7EsejxqG4NYYVAUEDy WeZGC7hipW1i7GRCGbKrIo1orbIf8FyNk53fLNlcEWxUjTUgYsl7bHS/hY5i1o4itcuY /QoTwsB1BTELA5wkGiG1LnLK8B5QY0tkMCUg3jVAUGFz40enMxBHaqnl+oyunQzsb8vs mR0Rz4WPLLpL58JBj5fj0398CFS4U6b+69dxKHeAQ43yf32rlI5VcGD9GIzqYVkbIya4 aPrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=z92rtPihB/PVDuKi0eES4Biw0NIjfY+hn1ygMacOhy8=; b=t83ICsRqgh75FON3CgDo72gSbyEAkgt3pkt61/96bdGIbKIvdzenx67YUPtQmincW9 2z/Wj4IP4qKZ0Ig0DWqQwjHJe4I0cBrX7ord+yAo6vEOInrgm77597KmcmG9uWZp3PKh Z3wUd3GQ/QHbOQ31UwslgLFGawdhive6NV8Ef8mJMuKto4qAmimBy0MqoAxcEeVH0XgN 1YbZUta9YWfxcvdXcL4luBGajdgIuGQ+CTkVrCqwHWj4Mv/wSEm65MdNb40uXbM7gIRk nr1i04KsG2+1KC+PFm1ua21pWqwDqD5K9AsDFXRiH+XiowW+itJg1osWoIze7qIXPJn8 +k+A== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si5317297eju.181.2021.04.13.00.03.37; Tue, 13 Apr 2021 00:04:03 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238175AbhDLUOp (ORCPT + 99 others); Mon, 12 Apr 2021 16:14:45 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:47035 "EHLO mail-wr1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237307AbhDLUOo (ORCPT ); Mon, 12 Apr 2021 16:14:44 -0400 Received: by mail-wr1-f44.google.com with SMTP id c15so5250848wro.13; Mon, 12 Apr 2021 13:14:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=z92rtPihB/PVDuKi0eES4Biw0NIjfY+hn1ygMacOhy8=; b=GBnPTsQXwe5XTcvDzF0OD0YE1/hvR9jXrtkxvf4CkoslBGskxF9bOBiTyjCRrpt0od kjKPN9zluevk5ZFOGeTyzADIYGc2osZsmT6gzV/q2+BNJvbscNMxAT34y9D3upWzuivh xftXAt8D+rOj62zf6loGSjKWoMd+4UfczvT0YQXtC2bGfrXQ/8fBU0tPiI3TBWiXNslG r3YAbxwgogZAN3bpX4BvduzpXt3YImug0RSH7TCvFIkRF93gFzHZG0s9iHBqTCa9gugu prLnu2F2kPo0xYP631r9PiaZA/xbQAb09qemK2+aBKko2o8qBX8kqWBJZp4wpFdwD41N sxVQ== X-Gm-Message-State: AOAM531IBOaQdwgnkF0a72E1la5du8rhRowbI/X4pzZaxtErspTj9yiO lGRWjpKNXng2movOIKKVB9Q= X-Received: by 2002:a05:6000:120b:: with SMTP id e11mr4630505wrx.299.1618258465495; Mon, 12 Apr 2021 13:14:25 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id e13sm19787044wrg.72.2021.04.12.13.14.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 13:14:25 -0700 (PDT) Date: Mon, 12 Apr 2021 20:14:23 +0000 From: Wei Liu To: Siddharth Chandrasekaran Cc: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Alexander Graf , Evgeny Iakovlev , Liran Alon , Ioannis Aslanidis , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v2 4/4] KVM: hyper-v: Advertise support for fast XMM hypercalls Message-ID: <20210412201423.rfpykzfgpmjh6ydy@liuwe-devbox-debian-v2> References: <5ec20918b06cad17cb43f04be212c5e21c18caea.1618244920.git.sidcha@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ec20918b06cad17cb43f04be212c5e21c18caea.1618244920.git.sidcha@amazon.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" Wei.