Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp569908pxf; Thu, 8 Apr 2021 08:41:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfP/RmN+zry7XwgXfjPV2fkdcgcLgVy+v/rEoZxkdOGv90kcqj9ol1SktJ17F0gncR2d4i X-Received: by 2002:a17:90a:cb12:: with SMTP id z18mr8601106pjt.132.1617896503957; Thu, 08 Apr 2021 08:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617896503; cv=none; d=google.com; s=arc-20160816; b=bfGpY7Gi5mfPll+ZkV0spoYEofIE3TNT0d0b2g5OolgGaUdzoqvS7XgZvjOnm8vxZA Vkq0YSEQwi56PZ7NWWRzLUtZis/PQDu1r+XRwdddUGW1N0RMA3CWOH/T9ONnQHF5J56P ktxGKtO/Mxz6EpkhLk8XkgaCZDB//axaAzzzm7jNpsFBf0FfrTvLySLgX/V/Ih+Sr2YW x76QOSQnAqEMLE1SSKTfAIfyt4VXd/mWwymWr8BochSz2EmDCkhaIJx2QAB3Y5mm0LfL j9ossKB37ShwxNT8XkQkCX84M7omON0Q8NaGL7R6qXUbiP7nSevZlWzAj19SzFiFYDCn irsA== 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=am8zyBMva1y/GwrwCj0qzUG43318Gu7tYQSpaspx+a0=; b=CB+v4q47WCaTXI6MzX5jQCC5WBLGK6TMpWDmKaT8qqlnsSHMY8/R1TDATh/HzQ4pwI EgfILVweDJKMj0TfxHBValctZRzEPGrNWATrS1sPttgv0gjHlsKAmkxs3XShtUtiXsVn 8uCfQAR1N/LvaGfdqsv6asvJU2haa06hUv+5M6up/WwcGVYGYOgXOc02ABxxsNIvlHXN jdDE0rqqH7QZ7kal0aMp0tfYvfUUAfKLd3oaG+eShj9tv9vbpzl/HwcH9CEkurM6r5fm 2xG6IpyrJL6V6trzQ1xfI07+lVV+U/VVo2pxK9eMNniNSqpCXbjta5lZNkdnawvHfZuZ 298w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=AYzLe3XK; 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 y10si10253570pjg.18.2021.04.08.08.41.31; Thu, 08 Apr 2021 08:41:43 -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=AYzLe3XK; 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 S231940AbhDHPkm (ORCPT + 99 others); Thu, 8 Apr 2021 11:40:42 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:8482 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231480AbhDHPkl (ORCPT ); Thu, 8 Apr 2021 11:40:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1617896430; x=1649432430; h=date:from:to:cc:message-id:references:mime-version: in-reply-to:subject; bh=am8zyBMva1y/GwrwCj0qzUG43318Gu7tYQSpaspx+a0=; b=AYzLe3XKg3PsT1ITTAQV5C2qAoc4A4QhTWlFUc/0yIBB5QYXobhENvj+ MFenZeQq1s5ZiR3cUhtUyFP2rp3TejqePf9mEmJY30xgaNFMDLgB/MCgm Gt8Dt8mILqGsQeHBsWN/kPqGIwviu+S0vxn4fZt9S5QTHmnSbVb0KvJwm M=; X-IronPort-AV: E=Sophos;i="5.82,206,1613433600"; d="scan'208";a="100454807" Subject: Re: [PATCH 0/4] Add support for XMM fast hypercalls Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2a-538b0bfb.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 08 Apr 2021 15:40:21 +0000 Received: from EX13D28EUC003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-538b0bfb.us-west-2.amazon.com (Postfix) with ESMTPS id BAAD8A1E3B; Thu, 8 Apr 2021 15:40:19 +0000 (UTC) Received: from u366d62d47e3651.ant.amazon.com (10.43.160.236) by EX13D28EUC003.ant.amazon.com (10.43.164.43) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Apr 2021 15:40:11 +0000 Date: Thu, 8 Apr 2021 17:40:07 +0200 From: Siddharth Chandrasekaran To: Paolo Bonzini CC: Wei Liu , , , , , , , , , , , , , , , , , , Message-ID: <20210408154006.GA32315@u366d62d47e3651.ant.amazon.com> References: <20210407212926.3016-1-sidcha@amazon.de> <20210408152817.k4d4hjdqu7hsjllo@liuwe-devbox-debian-v2> <033e7d77-d640-2c12-4918-da6b5b7f4e21@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <033e7d77-d640-2c12-4918-da6b5b7f4e21@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.43.160.236] X-ClientProxiedBy: EX13D24UWB003.ant.amazon.com (10.43.161.222) To EX13D28EUC003.ant.amazon.com (10.43.164.43) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 05:30:26PM +0200, Paolo Bonzini wrote: > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. > > > > 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. The guest is at fault here as it expects Hyper-V to consume arguments from XMM registers for certain hypercalls (that we are working) even if we didn't expose the feature via CPUID bits. ~ 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