Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp558798pxf; Thu, 8 Apr 2021 08:29:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKrFHxjbkouM4ZwAOLU+MzjOb1WQuTOL/W5h9HVs+39Y9YSv/4TAPuAl/KpNf8PF7fsjVA X-Received: by 2002:a63:d80f:: with SMTP id b15mr8565394pgh.432.1617895793670; Thu, 08 Apr 2021 08:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617895793; cv=none; d=google.com; s=arc-20160816; b=G/l8JFUVXF6C+a3ujhv7xoqmguGNXMbHyxITrB8JVNFFF9tv4x+mvhqUG8/JhVv9oK 0iKJtf92U/9NyJOisez0a7dyQWiLrikYap2ZTU0rQ4ikUCmjIET3Dsq2+B+LjYdNGm9q 7XKfl3aLmuazT8/svf9fBvplFNn9UsM2+/yxlFK4nmLyqFtBc3xLynQfimw+dcNFif+s l6rVPqfzE2ju90L/54wjGrJ0+150ZJ9aDAsaRIyPBJ2MKZ3RaiTsuFUhWZ5V2rPDr88u c5mVkUbkXpUPaOJSQrijjJxNf22O/fZ/VnMjQdwWO6u/Qo3XqzjTwMXPAm0WldRi98t2 tJiQ== 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=gK85oRtgx22IENeRH1/21Bbnbfi+BK9NhFcMbnn61dg=; b=V2ry59MQHZQXMK0VzNg6bdK1cfzh19nthbUd3DfW9NCBMgVfs0OhKWVmoE7oz5vLTc Rkd0c/GVa9tQPd+hsif19fukmPDShPLCMrzUS2J956LvUDweZR1+PBNJWLdGnFBxs7ui KlfR++Y27Y/Ul49WAZHQDXhL6JjWEzuNC0W59yHKROaxiYqRYmY9nNrNynFbBT/hr5gJ 5hZkNil1Z4+Yt54gx9spUZJ9FeaiwjVXFYvn7C0RTBtSzGLG3GDLEu51ZwteibcyxfJU X2yZxBX/WZtYLzk9erDOf0GfDy/p8FNfgREzuLyQaWmaiXYvRDStXap648BRhcj2ZDVD HgAg== 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 d18si27434996plg.180.2021.04.08.08.29.40; Thu, 08 Apr 2021 08:29:53 -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 S232001AbhDHP2c (ORCPT + 99 others); Thu, 8 Apr 2021 11:28:32 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:37549 "EHLO mail-wr1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231630AbhDHP2b (ORCPT ); Thu, 8 Apr 2021 11:28:31 -0400 Received: by mail-wr1-f41.google.com with SMTP id j5so1611179wrn.4; Thu, 08 Apr 2021 08:28:19 -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=gK85oRtgx22IENeRH1/21Bbnbfi+BK9NhFcMbnn61dg=; b=fDBTCIKXvDVx+ASiRuSWzYdHbaSjoMWL5SGpNzd9E4zYgBlC99ycq6EjzOTNjS9wbr YWqlNVUHwexkz7/AsLYWIWXm8yMu6XiELq/RFN61OqaEWqzNsWmZrolmsInfFAMVWTZE caYrurGsU1Roq7KHdDJrfnTihiKggGzWKqyu1LJvyuyVRXJ/7g1xDOLnSMf9Q9+ybehl m6icQWA1bndByxUU3G/753qdCGi5kCoHmMNq/ljF05TUcq9AINfPpUaSlbUsnyUoslQZ QW1ztSmK7xyR4urHBxXJCqhFR+L5ulcaKS6eEdlYRBMoG/UuUkWIz0d80YnG/RD2vr6y 1r8w== X-Gm-Message-State: AOAM530DlcG5b+HIIthlLbgH8EplRSK4+3ZS6umVIJ6qVmmjZ6+m2IRI 5TChaSuCL823wL4c0TrfiNE= X-Received: by 2002:adf:ea8b:: with SMTP id s11mr10744907wrm.282.1617895699363; Thu, 08 Apr 2021 08:28:19 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id h2sm3589854wmc.24.2021.04.08.08.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 08:28:18 -0700 (PDT) Date: Thu, 8 Apr 2021 15:28:17 +0000 From: Wei Liu To: Siddharth Chandrasekaran Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, pbonzini@redhat.com, seanjc@google.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, graf@amazon.com, eyakovl@amazon.de, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 0/4] Add support for XMM fast hypercalls Message-ID: <20210408152817.k4d4hjdqu7hsjllo@liuwe-devbox-debian-v2> References: <20210407212926.3016-1-sidcha@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210407212926.3016-1-sidcha@amazon.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 11:29:26PM +0200, Siddharth Chandrasekaran wrote: > Hyper-V supports the use of XMM registers to perform fast hypercalls. > This allows guests to take advantage of the improved performance of the > fast hypercall interface even though a hypercall may require more than > (the current maximum of) two general purpose registers. > > The XMM fast hypercall interface uses an additional six XMM registers > (XMM0 to XMM5) to allow the caller to pass an input parameter block of > up to 112 bytes. Hyper-V can also return data back to the guest in the > remaining XMM registers that are not used by the current hypercall. > > Although the Hyper-v TLFS mentions that a guest cannot use this feature > unless the hypervisor advertises support for it, some hypercalls which > we plan on upstreaming in future uses them anyway. No, please don't do this. Check the feature bit(s) before you issue hypercalls which rely on the extended interface. Wei.