From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAE85C47083 for ; Wed, 2 Jun 2021 18:29:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B3093610A1 for ; Wed, 2 Jun 2021 18:29:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbhFBSba (ORCPT ); Wed, 2 Jun 2021 14:31:30 -0400 Received: from mga03.intel.com ([134.134.136.65]:58461 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbhFBSb0 (ORCPT ); Wed, 2 Jun 2021 14:31:26 -0400 IronPort-SDR: kFcdakKeau532rztDjSxBvZyIvUP7qb1+5evylMeRnHqjr25kyNznJik/e0xGVFD8K4I5Cc2M6 GcTH6d7ahj4Q== X-IronPort-AV: E=McAfee;i="6200,9189,10003"; a="203891441" X-IronPort-AV: E=Sophos;i="5.83,242,1616482800"; d="scan'208";a="203891441" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2021 11:29:41 -0700 IronPort-SDR: i9m/QbcLHDxrW89s6s1fLktuv3KRHbORImGBjayuq3ycuGpoVJGsZI/+wJaStFJmDsLD3vHKSL LpXNE56TzOYQ== X-IronPort-AV: E=Sophos;i="5.83,242,1616482800"; d="scan'208";a="416997241" Received: from sboinap-mobl1.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.209.150.149]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2021 11:29:40 -0700 Subject: Re: [RFC v2-fix-v2 1/1] x86: Introduce generic protected guest abstraction To: Tom Lendacky , Peter Zijlstra , Andy Lutomirski , Dave Hansen , Tony Luck , Borislav Petkov Cc: Andi Kleen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Dan Williams , Raj Ashok , Sean Christopherson , linux-kernel@vger.kernel.org References: <20210527042356.3983284-2-sathyanarayanan.kuppuswamy@linux.intel.com> <20210601211417.2177598-1-sathyanarayanan.kuppuswamy@linux.intel.com> From: "Kuppuswamy, Sathyanarayanan" Message-ID: <9852f974-6fb0-d7d6-326c-f92ba3b52af3@linux.intel.com> Date: Wed, 2 Jun 2021 11:29:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: 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 6/2/21 11:19 AM, Tom Lendacky wrote: > This certainly doesn't capture all of the situations where true would need > to be returned. For example, SEV, but not SEV-ES, requires that string I/O > be unrolled, etc. For AMD following cases should be true right? I can fix it in next version. case VM_UNROLL_STRING_IO: case VM_HOST_MEM_ENCRYPT: -- Sathyanarayanan Kuppuswamy Linux Kernel Developer