Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1692184pxj; Wed, 19 May 2021 11:35:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnBQkdX5E0fONrakeuWSxmq8AZU/gY/QThOuEm8tNc7SChLAwYrCS3hqF5v9gwrCajYMn/ X-Received: by 2002:a05:6638:344e:: with SMTP id q14mr387620jav.47.1621449322802; Wed, 19 May 2021 11:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621449322; cv=none; d=google.com; s=arc-20160816; b=Ds9gFdkgwmDqqHgTZZIEXKt3z2enOO7E8/jTl2+2gjIAeadDvF/dM6p/FW9NEIvG/E mzCmaGjTqe8w2SuqU4AVekct8Eq1y5wzbmoL7aPAjxoPnMSofvgTufmp/zAclEkgO5nF WBGcN/Uqiak/7DQfwfmlwUs6E16zUODWhnvS5svaSIUrNYNxuqY+35NT59oCmWSRBLdd 2STbItOidfGdvzi7cX1FomFiIqpAVGVtRo0EoqRwqzcnJGbs9ugNn3emirXsZ3il0ceZ ugGby44nNA4HjWDVlLp6vKJfIVHo0+pV6Hwcr7imQgKTlWRJHnCPpBtt3Syv0ChVOrVL lI7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=ofxzFnXwg6eMuXEi0x9btiqRpg+RQoOFgQbNW7uhYPU=; b=rU2edFIK4mpZy1rsDwTh4OUbHPtSfVwKFU5fPVL/gBDTbl/ojx6PB75lbEKEB00RsY gwSwhPVOEtesSW4ceNtcVttOqu4y5JMhBtJPCKfU0tRlQTI/SoASlZ4nMpKdLeHZVual OOcV//D+6gVqlH3rlsw3AfcnBkmUKJBtoI57b8MrS6Ua/xjdHsW/8LIDQMde+e5+Irs8 VDJvkt6FhDREIJW/JK1bt14yBn+GCIxkpesMhKxy43Nd6sCkaKku+FJaGJ5BQQT2mc/n GhWjY7vbz6DygYoyaw+tUCuY3p5EONzMEC7hz7ODUtb8k8Q7nk9HIqNeq8340n1UOXqb pG6A== 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 t10si299033ilj.54.2021.05.19.11.35.09; Wed, 19 May 2021 11:35:22 -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 S236526AbhERU52 (ORCPT + 99 others); Tue, 18 May 2021 16:57:28 -0400 Received: from mga04.intel.com ([192.55.52.120]:39808 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbhERU52 (ORCPT ); Tue, 18 May 2021 16:57:28 -0400 IronPort-SDR: JTE2RAx8cJ9PKv9e0HnTXoqrkP21rkFotI3mvCYrTFMKjXFNyPqfm6gVbxkJo3BGZPVWckd9N6 gnCbLhuTeJqA== X-IronPort-AV: E=McAfee;i="6200,9189,9988"; a="198866640" X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="198866640" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 13:56:08 -0700 IronPort-SDR: s06I5TTBHMH4bwu9CZzkd4l44Z+GxnDh/nQszhtHlUQKwHpbRccurmG6wlkaQwxdC2j3j4naGt kCaK/+LPFw6w== X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="439630881" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.65.183]) ([10.209.65.183]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 13:56:06 -0700 Subject: Re: [RFC v2-fix 1/1] x86/tdx: Handle in-kernel MMIO To: Sean Christopherson Cc: Dave Hansen , Kuppuswamy Sathyanarayanan , Peter Zijlstra , Andy Lutomirski , Tony Luck , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Dan Williams , Raj Ashok , linux-kernel@vger.kernel.org References: <3e9a26c3-8eee-88f5-f8e2-8a2dd2c028ea@intel.com> <20210518004807.258503-1-sathyanarayanan.kuppuswamy@linux.intel.com> <36cd2665-6d8b-9c0b-eec1-25152dcca2a3@intel.com> <43e583a3-ee2b-52d8-5275-e26a6609c126@linux.intel.com> <8fb0e52c-ed0a-2185-585a-27007c27ed56@linux.intel.com> <3a037a43-435b-fc28-63d0-48e543cddfdd@linux.intel.com> From: Andi Kleen Message-ID: <387d81b4-37d6-65ac-6bc6-f96980450d4d@linux.intel.com> Date: Tue, 18 May 2021 13:56:04 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > virtio-pci, which is going to used by pretty much all traditional VMs, uses iomap. > See vp_get(), vp_set(), and all the vp_io{read,write}*() wrappers. That's true. But there are still all the other users. So it doesn't solve the problem. In the end I'm fairly sure we would need to patch readl/writel and friends. -Andi