[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH 2/2] x86/iommu: avoid mapping the APIC configuration space for hwdom
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
- From: Jan Beulich <JBeulich@xxxxxxxx>
- Date: Wed, 24 Jul 2019 09:43:35 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none
- 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-SenderADCheck; bh=2WlF4y0XUQMZnMvwBrOMIErzp/p14I+WmsDdRmAa/bw=; b=MzirggDbi45jqxZ+miAFVUSr52Kd6xuySULLEppfUkjFAHjNWPt+YnSilIn4KI4QpwprE6lez0hzViAEGGcGL40qO7hPQ5iLv7HIzTAat798xwholwF4B5mWHuPGBttEf6epSoUoQv8x62RuykTmaHnsr1bOFqN7MI+9ugyjgeXkyoTiT7vD6QEqA7Ez5juwNP+DmfTJ9+HbDSJscxnXuvqGa6yU3Iq2ugtDPZT8vSseChnooIKxFVs8aHaOAUCFi1jx251eS0T7CXS25KzzxBFhjGXRhuCj4fCVSNhNvekhhK1N0f24wNoV3Kia5FrxL2FlxJf2PzGpUC+gwuNjeQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xz6NvvThcV9t3rWsuhSeOD+2whbYDE08yecIyvVt8/X6o6pli8rtIgIwX8RdjesF6XdETqTVNX9hHk1cc50ned+/5ZfRUjMOzQebvf5Q382f7Lwoz8W3Li9YrlOCG/GnO8X9qgaHVl6ngTXMaK6A92nAolTGtMSmAYhraXDBWluORop22C8d4/E/mM5DVNpqZU+i+UzJ1Ebf6UDVf3FdM8ROxhPnqxo6s7FZH2r7KzwD2TBWZ+A5IVHZfY9bY/SPHmFAfSfIa8WRLC0lMe8BeR+DPn0VZ+3CgU5vnEN4p2NAzI+SuP+x7WkMSv/EIZCKDcMTT4SM5Iqe6hVB2EWsXw==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Wed, 24 Jul 2019 09:45:13 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVQW4zrYUYVM3HpUS5nJG7cGq72KbYXymAgAAKL3CAARxMgA==
- Thread-topic: [PATCH 2/2] x86/iommu: avoid mapping the APIC configuration space for hwdom
On 23.07.2019 18:45, Andrew Cooper wrote:
> On 23/07/2019 17:09, Jan Beulich wrote:
>> On 23.07.2019 17:48, Roger Pau Monne wrote:
>>> Current code only prevents mapping the io-apic page into the guest
>>> physical memory map. Expand the range to be 0xFECx_xxxx as described
>>> in the Intel 3 Series Chipset Datasheet section 3.3.1 "APIC
>>> Configuration Space (FEC0_0000h–FECF_FFFFh)".
>>>
>>> AMD also lists this address range in the AMD SR5690 Databook, section
>>> 2.4.2 "Non-SB IOAPIC Support".
>> But that's chipset specific. I don't think we can blindly assume
>> this range.
>
> The IO-APIC has always lived in that region since its introduction, and
> the location isn't even configurable on newer chipsets (If I've read the
> SAD routing rules in Skylake correctly. All that can be configured is
> multiple IO-APICs being mapped adjacent to each other.)
I'm pretty sure I've seen IO-APICs outside that range.
I'm not entirely opposed to a change like this, but I think it wants to
come with better description (taking into account the chipset- rather
than architecture-defined-ness) and either retaining of the loop the
patch currently replaces, or an explanation why the loop is strictly
unnecessary.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|