Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3377355iob; Sun, 1 May 2022 15:42:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9DylRMUXXi5K3MyvEO8BMWheKtCQYACg1En7XrBGSXAbtSaO7tjduc2tBUsgb8YuDNgcV X-Received: by 2002:a2e:9c02:0:b0:24d:bcbd:1c77 with SMTP id s2-20020a2e9c02000000b0024dbcbd1c77mr6394200lji.19.1651444972561; Sun, 01 May 2022 15:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651444972; cv=none; d=google.com; s=arc-20160816; b=b30Zk/l/a9IUucL6V6tTujAVN2dta8E6RZBW10xJQDnROf8+MiR8V7xX82NDUXwEtX M0Y1v7FpLl9uBlfDatWMbdmr/adRFL4Dl19fuVdezTRAiQDdGkIYkY7eLcv8lfmMei9E uizr5RgITzVPVd2To3oAhlxMAR3HKUMXquZwZnNI/1FTs7mEmmM2Tv5w5lGPaeOeW133 ye6ptuK0lvtWIQ+EBB5p1pqEjUUUcJRJ9/tOD0diduNDDJ+DAweMNWM4oLFCdmpkDkv0 AJWzlhKAhlDlz0zgpz8hP7iHkLn97b1ENw9zvIkD6a91Ryaxh+M9WfA9JY2u2U85qOUf I7BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=b96MT1hG5cpVOg1wWSiufMjyeDFu4ngQ9rfn/oyjcbM=; b=rInoKoQ7ETM0D7AmPcWjIIbF3Gb5YiVGK2GM7JFtnrnFQ9lOupYx/tpk9jlrh0Sb3W cJoGxM/2arlXqrwqp+f8CONCq0euMw1urGF97xXdFcru5rT65x3KRMF9ZTUKeFZTTzrr S4BBCbeKFDRmxEDcxHvzDTyFAioVTp35WdOLF1EmEt/75SrZKYfeKj5LuuWT0ZaKp6FF xXF6t8gyTgIUXxENIp1nOaCRYc3ZYpcQhmWpOIfchmGn/5KQL/pJG0Un6KGYr7m1K4/k +9c9hUmew89O9mNLrY17jdJYyEn00pg6XluRvuT29f/oIXJ1ImoQcJ4WRfK5TqQTJIsn kqnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yqjq1jjp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020ac242c9000000b0047163c4d795si12002356lfl.438.2022.05.01.15.42.23; Sun, 01 May 2022 15:42:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yqjq1jjp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236878AbiD2Vam (ORCPT + 99 others); Fri, 29 Apr 2022 17:30:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232449AbiD2Vai (ORCPT ); Fri, 29 Apr 2022 17:30:38 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05A6C9F398; Fri, 29 Apr 2022 14:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651267639; x=1682803639; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=iBDXurEoX+VAKyel977MnypOTEgCCqkREVmIpcHL3L8=; b=Yqjq1jjpBpBJCHOStlm51fzUd2zor/2geNZLJXdtcmg2gcX7F0Wig7MK c3V856oua/NY4tWhvndXL6ffYZhPOmHOSp2moKSSBzk+ZkjUSmA0vSU1g WSdlFLD3LeLOQGBtbVRudwkrnR1gYKGpAwK/voPC+Yqq90vl/BsrGtj5+ 8S8+M+U1Yw6LT1ajORiUAec6J+bLVAmYbWBvtRvJWA1tJgX/tt8+P9Rp7 Ee8Ud40jG8U71abrhs1QIrH/lu/fU8sDOPrCwITiGLVfeZ5DH91wK9XS3 2gj1tvzlOZP865CmtYzITIJsWtnrGBjX2XxPcakiolBelox7iLCn6SywV Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10332"; a="247333950" X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="247333950" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 14:27:00 -0700 X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="582407851" Received: from jinggu-mobl1.amr.corp.intel.com (HELO [10.212.30.227]) ([10.212.30.227]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 14:26:59 -0700 Message-ID: <915ed339-f5e6-c31f-ffe1-a80402ce78dd@intel.com> Date: Fri, 29 Apr 2022 14:27:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v3 00/21] TDX host kernel support Content-Language: en-US To: Dan Williams Cc: Kai Huang , Linux Kernel Mailing List , KVM list , Sean Christopherson , Paolo Bonzini , "Brown, Len" , "Luck, Tony" , Rafael J Wysocki , Reinette Chatre , Peter Zijlstra , Andi Kleen , "Kirill A. Shutemov" , Kuppuswamy Sathyanarayanan , Isaku Yamahata References: <522e37eb-68fc-35db-44d5-479d0088e43f@intel.com> <92af7b22-fa8a-5d42-ae15-8526abfd2622@intel.com> <4a5143cc-3102-5e30-08b4-c07e44f1a2fc@intel.com> <4d0c7316-3564-ef27-1113-042019d583dc@intel.com> <73ed1e55-7e7c-2995-b411-8e26b711cc22@intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/29/22 14:20, Dan Williams wrote: > Is there something already like this today for people that, for > example, attempt to use PCI BAR mappings as memory? Or does KVM simply > allow for garbage-in garbage-out? I'm just guessing, but I _assume_ those garbage PCI BAR mappings are how KVM does device passthrough. I know that some KVM users even use mem= to chop down the kernel-owned 'struct page'-backed memory, then have a kind of /dev/mem driver to let the memory get mapped back into userspace. KVM is happy to pass through those mappings.