Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp793814pxj; Wed, 2 Jun 2021 11:33:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdAYYZVV1pa7nBA5cYEnp5t8Won98Ay8yDNRhXO5tj3Nqz3Qv+e9Jp9RwPaMX8yxBSdu+s X-Received: by 2002:a17:906:22c7:: with SMTP id q7mr5866868eja.547.1622658832634; Wed, 02 Jun 2021 11:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622658832; cv=none; d=google.com; s=arc-20160816; b=GvAfuGEGa/KYCQzMm10XY6UzE3r8cMUewiXadTeo9ElRFQEzbRfVjQ79A6/pN7+tr0 0wisAHDPjyyjh2g84AwTDSFlM1zuLmD6jh9fjApkZt3IYpQRfwZCSD6E9hMF7b5H2NWv FqJXN0TEAWbbsORp0YYq6G/6/k3rh1aQGZCNoDKSkJl17peb3yLzUoYbK6JLOZhG5xe8 8isA2kDhYFVCo7A0tUSig3hm/IlR8j6DF51HIPIFI2GNaacEhBsozXM66uZevKpoz5gH y6pwi9uMIrz/K0g7soZOCT5v5vd5m8xY7mFTKpWYf6T8LfimIi1FUDPwRthRQyVYgTMh 4VRQ== 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:ironport-sdr:ironport-sdr; bh=WF/bQcQWTfVzfufwnfO607wwRypO1OoqLlp1wajCOuc=; b=mg4U2thnQbguhMOQMF5p1Q0WbKuz1b7PjSS8rTgu59atHHqXsiT/ncebOOnq3E9C2o 7iBAyKDAYucz9Ami+gKSg/EzLhKyNkrS40sisHhsSro5bg/i/pJ9Equo3fcQxe0lvTtg B/FXN8m5CIvEzHhw3NSYPk8zQFnvB9lS/WucWGpV1xmhdaJEgRYop+QbNl0ONMKc7fMG pviV391cW+lSBMhs4AeEQLdHyND1bIpa8ldhOyEWBuK7fYdDoY5NtdHJzHwU5GMpSgS1 gRJ4lMwvDCJaWzQdANCq3cZB+MGR7NHJKIzViax21Sxn5tbp1AI/E9ga/4RiB7rpmm/R VaMA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc38si550775ejc.456.2021.06.02.11.33.29; Wed, 02 Jun 2021 11:33:52 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbhFBSb2 (ORCPT + 99 others); Wed, 2 Jun 2021 14:31:28 -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