From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id CA38C740041 for ; Thu, 1 Feb 2024 23:04:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Sqwn2UL0q33Nt9UgwNxAATk/UySDkScTOaElVRetqag=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1706828697; v=1; b=xGwwxLLCGHqOo+KVsBJ6xAYAVMIb0u/Dbf7Wd5FwSeZtSh+f09YSRcqq1N6s7SsUrChF6Ni1 HDmxr9n3vGyTX49cUGAX7ZA1z8Fmnk3I8YeHXT1CpAkGWRYeJ/SZkGzG5xnMkEfUbStqAXCDWQe eYWjdHCqW5Ys4btY0SBIsBuU= X-Received: by 127.0.0.2 with SMTP id Oq8gYY7687511xpR3LRxmwlF; Thu, 01 Feb 2024 15:04:57 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.12163.1706780981204588004 for ; Thu, 01 Feb 2024 01:49:41 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="435019175" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="435019175" X-Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 01:49:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="30552469" X-Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 01 Feb 2024 01:49:41 -0800 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 1 Feb 2024 01:49:39 -0800 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 1 Feb 2024 01:49:38 -0800 X-Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 1 Feb 2024 01:49:38 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 1 Feb 2024 01:49:38 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fw51WGzbuob3zN9Kabs/wl6iBUiqj/C6Nmrc+kmxPKWnhpy/wrg3J+V62pg3qoGeXk5FzQP+/Hyr0+81PPXZjUoZ3sxX/KuCGoR2H6oKg+O7eZ08YAhiUanKdKrW+pybEesQ0KCq/QdKA2r8I+yEp8GqKo3jsEYfyRX//zgbB3p4m2V/8Usbjwrz+tcZKrfIEIyJx7qtuSAtoMndqUBs8LJFi0zybLRnTAJmBg+cSBSlabYfk9fF7w78nolC1TSB6NwNAIBjk/p4oRIsx2HU/5ll/qAw/G3HOjat6J2sm/Ppt4KNClyhK4rmk0JbYVqfQRC5p5WcFAxqeydgHr2kHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wR8dTmaMjKuBxHQkZKix14O+3D0kpPOpw7sBWQi9Wk0=; b=Xm4nYaOwzpIIsRfxAdE6hlc4qn5QEYvjTiqmYwStOmQkrfi38kY6KJdfUtswa02TmZE3V/HZtyFqQHhl7dZex5Yhc7sFEwwv8y0AYlA4vqVv60S7ND3Y1pNr0JtshceOdWgRUNjtOQJnoT1rCfkUtGbGT2LLnj91LwS9+70czgXcfNIZXwCNfqNU1gS1rO2n7iesxqaBkG4UMr6OpLm4GKbtnv5w/TYxVmUTdOOcdtNpZYEcsfdlXzd6wbe60UPps3jmOzud0WGI8KEYTpGHVeyO/RXf4ubsshW/9SH0r3PXo887WJLyGis4otTNdyBGZPepX9ldJItW9/asrf2hiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from DM4PR11MB5408.namprd11.prod.outlook.com (2603:10b6:5:397::19) by DS0PR11MB6518.namprd11.prod.outlook.com (2603:10b6:8:d2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.28; Thu, 1 Feb 2024 09:49:36 +0000 X-Received: from DM4PR11MB5408.namprd11.prod.outlook.com ([fe80::6ef1:8db6:3521:5821]) by DM4PR11MB5408.namprd11.prod.outlook.com ([fe80::6ef1:8db6:3521:5821%6]) with mapi id 15.20.7249.027; Thu, 1 Feb 2024 09:49:36 +0000 From: "Sun, Yi Y" To: Gerd Hoffmann CC: "Xu, Min M" , "devel@edk2.groups.io" , "lersek@redhat.com" , Michael Roth , Oliver Steffen , "Yao, Jiewen" , Tom Lendacky , "Ard Biesheuvel" , "Aktas, Erdem" , "Huang, Jiaqing" Subject: Re: [edk2-devel] [PATCH v3 1/4] OvmfPkg/Sec: Setup MTRR early in the boot process. Thread-Topic: RE: [edk2-devel] [PATCH v3 1/4] OvmfPkg/Sec: Setup MTRR early in the boot process. Thread-Index: AQHaU3zv63JBCzaKKUWAhMgPiyqfTLDyvGuAgAEYZ4CAAPKY8IAAOt4wgAA86ICAAAGi4A== Date: Thu, 1 Feb 2024 09:49:36 +0000 Message-ID: References: <20240130130441.772484-1-kraxel@redhat.com> <20240130130441.772484-2-kraxel@redhat.com> <7b3177f0-9696-07e1-ad0e-040d5392b067@redhat.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5408:EE_|DS0PR11MB6518:EE_ x-ms-office365-filtering-correlation-id: 8c089ef2-9682-4966-dddf-08dc230b19d8 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: AzqljloQcapqfC5fJtIAeqJUg0PZ62U6lKO0gMvmsusFHzBojbxvu+xXXHpDfRarcpgLBeLLOgsvogcxioBnsqx35N/Arv7SoDIRUDmXuvcP9atbwDMYy9FUdPOf4ih5vK7heX/bxAkpwVaCwmVNhvBNTuXCtVGINhOPpgN3a7v4sI8OlUJJR5Ym8fLyXYhix5DMA0AnLxbsAiFRs3XhfVNb8w6ovTd97U8WdMcYYmnMjfqiKB8lP8y1Ya8tjZu3LdTTbNv5wXry9CiIWM41S4OwPBoIpP91lhITAyP2hSIb4cSHEFckw6kozAUVpLwNt1tHkOyXr9PtDS9taEXUwd9/C44UB91uyAvWcpn79VpGDvUX9ZN6AaRoYvPpaAoHumbM98kVqjb0wYzo45hpXlBljGmSeJiIkNqwR0T/eC8TTNf8biPjcivXKOA0ri4F2a2S3cSwkBVmT1pa5I4VLIRR2+uCWfW9WqrhE0F9vDP8axKQG+RmTjXDh2y2JmgDmbln/CU+WCbrPi8WD7bhrV9haoAXJQZxVV04/CFbGY0FRsL23V7Keh7oax/1uNb3N8D4inp3dXiXHzy3MNa+pTTJbDdQ1molJwkDzHr09G1tAom3DS6uM/888Z4qeVE+ x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?tKdnlHkoBIH/eWU8Ex30SgN80OSh++/0t1LH49jd4p5ayAjzcp4jJpOnofXo?= =?us-ascii?Q?RvACKhTUxqBA0aJnIBKmjxHO9GYLE5NalvOWNi/Y1kk+i4K3Zzn2JI8KB0iw?= =?us-ascii?Q?g82vryEG6QOGvNct2jzNb+d6yI/lzIYgRloyRg65Jp5oMyrn1rZxZqcsJaUy?= =?us-ascii?Q?BEYu51NVjW2x/XsHhcOIhN0gF+elT4IEuCQSUZEil0Z70UVpA7iLGHSo9Gg8?= =?us-ascii?Q?DeKWP78WZufIuPNFpcQjRRTuyC2sZkMLn8R+Q+weSGHO7sul76jDTw7nV5Ue?= =?us-ascii?Q?CvEz4qZrCiNcHZOrShz+AUEXbxegM76LLHeVxUGE6Hqd4tIxHLwBiDNk71XT?= =?us-ascii?Q?6U4bE387SQJ1vPt3Av1varZCnYYaySYeHGnYYQ8Rwzd2UkEQB1mvv/5k34/q?= =?us-ascii?Q?H8gnjROnhDpf/64ZKAyJqCLc50BEHpSn/etV5zmWSH/3p1tQBRLgJLvqcWGI?= =?us-ascii?Q?GO7PMM5o6jP1NRuBB82fF52z8KrlN0E4E3v1fXzO0+kB+NpDF0sB5w3/SMUH?= =?us-ascii?Q?PVM6uIEkoyDWZAvxBabnLyGLL97tY0ftLliI/OMGhZSodegLdretF5liinqQ?= =?us-ascii?Q?Wdv/u5ePw0jSJDLs3cysFenDQY6OzPV4QCSwx6hFKfSeualIkVA7Aub4na6u?= =?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l6w0zeah5Ta6LXz5Qbw3xljBbmHBWYS3?= =?us-ascii?Q?KaNUAQfUnS+CT0rVKwsCZyWnstH9a9y2r+Iv1KKw?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5408.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c089ef2-9682-4966-dddf-08dc230b19d8 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2024 09:49:36.4830 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +GyYneQLppbNY6Q50din4fEqDdlKrTDpEEooYn1NBNmnJABQlk5C6pCi1CRVHx90VMd91DrQQ/FrF/pBnZFHjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB6518 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,yi.y.sun@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 4LLevNpS8IuUGqk90xtfufXox7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=xGwwxLLC; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") > -----Original Message----- > From: Gerd Hoffmann > Sent: Thursday, February 1, 2024 5:43 PM > To: Sun, Yi Y > Cc: Xu, Min M ; devel@edk2.groups.io; > lersek@redhat.com; Michael Roth ; Oliver Steffen > ; Yao, Jiewen ; Tom > Lendacky ; Ard Biesheuvel > ; Aktas, Erdem ; > Huang, Jiaqing > Subject: Re: RE: [edk2-devel] [PATCH v3 1/4] OvmfPkg/Sec: Setup MTRR earl= y > in the boot process. >=20 > On Thu, Feb 01, 2024 at 06:10:26AM +0000, Sun, Yi Y wrote: > > Hi, all, > > > > Per our test, this issue only happens when the mdev/vdev is assigned > > to VM. But PF(physical function)/VF(virtual function) assignment is > > good. Per Jiaqing's investigation, it is because that the mdev/vdev > > passthrough flow is different with PF/VF. For vdev/mdev passthrough to > > VM, the enforce_cache_coherency was enabled after device bound to > > iommufd. But it doesn't update the kvm coherency state after that. > > This makes the memory type be UNCACHABLE which causes the reading is > > very slow. > > > > So, what is your opinion to fix it? Which side to fix it is better, > > ovmf or vfio? Thanks! >=20 > Both? For OVMF it surely makes sense to properly setup MTRRs. And if th= e > cache coherency behavior of vfio is not correct that should be fixed too = of > course. >=20 Sounds good. Thanks! BRs, Yi Sun > take care, > Gerd -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114979): https://edk2.groups.io/g/devel/message/114979 Mute This Topic: https://groups.io/mt/104052591/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-