Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp562656pxf; Thu, 8 Apr 2021 08:33:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKQongG8xUFttBUmC+vJvZQgL64Eq1gcPs7saguc4XghRugvvNnmEAw/AT8RPfgU9Zg3En X-Received: by 2002:a63:eb50:: with SMTP id b16mr8402428pgk.270.1617896038737; Thu, 08 Apr 2021 08:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617896038; cv=none; d=google.com; s=arc-20160816; b=ASqx9LEOwd9ZWR96yRpYsimZaRJr4KVi1T1batMm2kF9FcrL7aiAOlrFWfdbQGxFDD sgSMhCUv+ZfQB3Vn0pmyg7p1oPVRyz6SSIhaB1ML3TjVnt/IGV+vW313QuXIFevcsj2G JZedJ72NrpUuQDlAl7eLaDvV/wm5cgqBA4uwV0J3tl44UUtGRtNI6CfHFTAQxivnsyBL WCszD9UgpKbk02WK8LQ0ef+J9G+TwqO2G9UsDsqklELwB5h6UnNUK/bVZKz7MDXtEi7d ndrZOakQbC6t6/RVZS2xTamQeolflMU454ONq27VXE11ksj/4gdoNOUatlxdDSBi8FIp s3CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=f7y+qV1QX6itWVJvsPTpvv4qB/DYjHt3u6N1WcKj9Bg=; b=CGsZxk3bzZex5W9AVQ9tIR2+atXHv8eYcNcMNl4VtnlBo+Odd/70t9Qwk8ja5tjYO2 Aol0cuERbkVhmitgjlgPhEI4P623RUg3tIpIOjS7dp9hQ3pWhi0P4sMsbw+qxprVwRpV WeoDNMKEPjNLaJEIy2FyGzwSg7cklUHOB28SWDsbq22t0oQ81Q7ZHk+/6h2Ie0noSn+A ddcx+aPCNaT/OeFIikdMVt4U7heM4vOeQzolzQgOM1fRXIx4l011OVfIJbslaFA+qaLz oFT9pLL5hA4Pjupu6bHG4SlXScYAqpUZy3PUN9AsQWjodVhzvYSSetTxOi4RfocQfJhT MLig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hwi1BbFk; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si2942746pfc.246.2021.04.08.08.33.46; Thu, 08 Apr 2021 08:33:58 -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=@redhat.com header.s=mimecast20190719 header.b=Hwi1BbFk; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232196AbhDHPb2 (ORCPT + 99 others); Thu, 8 Apr 2021 11:31:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38274 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231940AbhDHPax (ORCPT ); Thu, 8 Apr 2021 11:30:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617895840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f7y+qV1QX6itWVJvsPTpvv4qB/DYjHt3u6N1WcKj9Bg=; b=Hwi1BbFkEH57idIeebcQ49yiIgQ/CCCMBV3ZMrvOO2ANg531mL3S6qpTgmNSfHqmu6OAeu B9J3QNS5M0Egd5ipeaa+iFFNWtgZ3F1OfjZDdWWib7gcM4i7xCTs6jGHhRgiK64PKjjkPe UZCRif6YQjlHCev0rOmnkKmrPacNEVw= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-174-iti5jVB7PPW0XPPAN_V_HA-1; Thu, 08 Apr 2021 11:30:38 -0400 X-MC-Unique: iti5jVB7PPW0XPPAN_V_HA-1 Received: by mail-ed1-f71.google.com with SMTP id c6so1221138edf.4 for ; Thu, 08 Apr 2021 08:30:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=f7y+qV1QX6itWVJvsPTpvv4qB/DYjHt3u6N1WcKj9Bg=; b=E3rKGuzjBW5j8aswushsWmaeAYvoaINBmaVLMdKdY0uwimLzbKmECOddmpL7HxIobA Kh44ZFqtoCX70TltYMpASke597zVk0PWZCzrjSt6wZZy+ywLMNK5aFTnlW+O07Xf5Rij cLA96OyXaOByR/9E+7oGfb0zBUHnj3oiWJm5rbo4vS69JyYWIQ8SmHg4U/6uMN9cxmyi RICd+YMWOrgIbHmxCoeZFRfezru6xZ4s3Gml4PMajxGhJfSHoPfKJjVGdGaOf4rZQsOp eGsZmobTCciIX4JcYSMArw/qEyckr0nDWbU6V76vFJ1QBKeICcMpz1aOkcwSSQYa3L0E PeMg== X-Gm-Message-State: AOAM533iAh8FuG6+OUCSw77ZiU1QJwEZHmv66GRfCKLOnUSkOQa+wDlp VtOYY0uS9EEp7gxIs8GKuZK/PZEBlA2dAmZ8N7oIRTpw7nJoE0sC9vewzCjdBZ+cWuaclzMT3Mf BrOjZSDsrpRQHaL/3CwO+ezLN X-Received: by 2002:a17:906:f2c4:: with SMTP id gz4mr11221036ejb.369.1617895835600; Thu, 08 Apr 2021 08:30:35 -0700 (PDT) X-Received: by 2002:a17:906:f2c4:: with SMTP id gz4mr11220328ejb.369.1617895829796; Thu, 08 Apr 2021 08:30:29 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e? ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id h23sm6317924ejd.103.2021.04.08.08.30.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Apr 2021 08:30:28 -0700 (PDT) Subject: Re: [PATCH 0/4] Add support for XMM fast hypercalls To: Wei Liu , Siddharth Chandrasekaran Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.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 References: <20210407212926.3016-1-sidcha@amazon.de> <20210408152817.k4d4hjdqu7hsjllo@liuwe-devbox-debian-v2> From: Paolo Bonzini Message-ID: <033e7d77-d640-2c12-4918-da6b5b7f4e21@redhat.com> Date: Thu, 8 Apr 2021 17:30:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210408152817.k4d4hjdqu7hsjllo@liuwe-devbox-debian-v2> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/04/21 17:28, Wei Liu wrote: >> 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. Perhaps Siddharth should clarify this, but I read it as Hyper-V being buggy and using XMM arguments unconditionally. Paolo