Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6992124pxv; Fri, 30 Jul 2021 07:31:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHyStW+FA4WJKo7w76cN99lUFi0AsE+YbsnIKEFYOb3YYpuy/1Eyj7juZ5p4/gx/DmE4zB X-Received: by 2002:a92:bf11:: with SMTP id z17mr1212368ilh.3.1627655486913; Fri, 30 Jul 2021 07:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627655486; cv=none; d=google.com; s=arc-20160816; b=BYz7nizmklOJA0NRpo4iRQuLnSd+Zk1C7ea9MQZORebzalYTk/Byc6PhzVSr1DL1VH ODcM/3PQvGrRtczsD6mUPd5d0DYhV8pkWwa4hCpUXFwDH/g2kCRu8tIl0iHrj0PWRCdQ HJRE2eIXiwomxyP6T6dTMz+KNQcAt8r7c4eRHPFa3TdRe3F3qFpq/Krr3xGGCIsKShwq ptZaXn6qUxuAtzkikd8ZyJ241pc54UbNoFRpN/qzCkU42rmldn9Dr/woAU8j0CKhKpfG x2GueCGXqNkfcQqvrk/c+qoLDbxfhVoPCNM972dP/HltNVSqN5IRZdH9Kxx9cqvQvfRZ aVow== 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=4ugGiWQLoikc/lxB+XFb2AusVBQMiZ2U9lIaxumsem8=; b=JzUpGVX4NBZqzBlTqVS+Q3l9AMoGcu64aq3gs7cOp9XgzdYuhuEP1qzXvavjIuUMQt lLjVVW36dgL+1eX5n2MXVS40VytzRR9kBE2hUS0davUI1hHRDW4iW9/yat4x/ACrBzVH NPxKm+IoeoUpwKmGrD92i7f9N3QXmrAWUnuIDb6sgYPEeiW8IhsT7M1zY1qZEPXvVmNn zCOC4/TJ+p7Bdd0nbjjGFaL8uK+2y7TbwxZCNwKGMSC2OjDD9ebNRQU9wwH0G3nlapPe 2Dr4KjJr8vVJ//9/ZjiStN0J4hQjOF0Z22l7YUIl54FanPMzXlhRQbHvKJnDDVduMp+X IZFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=UBa70MqB; 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 d21si1888955jam.9.2021.07.30.07.31.13; Fri, 30 Jul 2021 07:31:26 -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=UBa70MqB; 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 S239119AbhG3O34 (ORCPT + 99 others); Fri, 30 Jul 2021 10:29:56 -0400 Received: from smtp-fw-9103.amazon.com ([207.171.188.200]:10765 "EHLO smtp-fw-9103.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbhG3O3z (ORCPT ); Fri, 30 Jul 2021 10:29:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1627655391; x=1659191391; h=date:from:to:cc:message-id:references:mime-version: in-reply-to:subject; bh=4ugGiWQLoikc/lxB+XFb2AusVBQMiZ2U9lIaxumsem8=; b=UBa70MqBX7NOlP4fYWMWG7nAdfG1RD+awih3V3tJoKgaguzUKxCZ03W7 Xm7rDXA8WMAVcP4TqN+KxtNoYi1TBWphmD8Ozmu48A4qeVrvmMAIvV0RR Z0TGGMbEgoCoAFoRWBqIfBqJv1O1o1Ewf1M0Wot2QUKBLh0683u7FfyLA A=; X-IronPort-AV: E=Sophos;i="5.84,282,1620691200"; d="scan'208";a="947326459" Subject: Re: [PATCH 1/4] KVM: x86: hyper-v: Check access to hypercall before reading XMM registers Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP; 30 Jul 2021 14:29:43 +0000 Received: from EX13D28EUC003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com (Postfix) with ESMTPS id 97D37A232E; Fri, 30 Jul 2021 14:29:42 +0000 (UTC) Received: from u366d62d47e3651.ant.amazon.com (10.43.160.41) by EX13D28EUC003.ant.amazon.com (10.43.164.43) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 30 Jul 2021 14:29:38 +0000 Date: Fri, 30 Jul 2021 16:29:34 +0200 From: Siddharth Chandrasekaran To: Vitaly Kuznetsov CC: , Paolo Bonzini , Sean Christopherson , Wanpeng Li , Jim Mattson , Message-ID: <20210730142933.GA20232@u366d62d47e3651.ant.amazon.com> References: <20210730122625.112848-1-vkuznets@redhat.com> <20210730122625.112848-2-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210730122625.112848-2-vkuznets@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.43.160.41] X-ClientProxiedBy: EX13D10UWB001.ant.amazon.com (10.43.161.111) To EX13D28EUC003.ant.amazon.com (10.43.164.43) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 02:26:22PM +0200, Vitaly Kuznetsov wrote: > In case guest doesn't have access to the particular hypercall we can avoid > reading XMM registers. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Siddharth Chandrasekaran 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