|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC] [Draft Design v2] ACPI/IORT Support in Xen.
Hi Manish, On 08/11/17 14:38, Manish Jaggi wrote: ACPI/IORT Support in Xen. -------------------------- Draft 2 Revision History: Changes since v1- - Modified IORT Parsing data structures. - Added RID->StreamID and RID->DeviceID map as per Andre's suggestion. - Added reference code which can be read along with this document. - Removed domctl for DomU, it would be covered in PCI-PT design. Introduction: ------------- I had sent out patch series [0] to hide smmu from Dom0 IORT. This document is a rework of the series as it: (a) extends scope by adding parsing of IORT table once and storing it in in-memory data structures, which can then be used for querying. This would eliminate the need to parse complete iort table multiple times. (b) Generation of IORT for domains be independent using a set of helper routines. Index -------- 1. What is IORT. What are its components ? 2. Current Support in Xen 3. IORT for Dom0 4. IORT for DomU 5. Parsing of IORT in Xen 6. Generation of IORT 7. Implementation Phases 8. References 1. IORT Structure ? -------------------------------------------- IORT refers to Input Output remapping table. It is essentially used to findinformation about the IO topology (PCIRC-SMMU-ITS) and relationships betweendevices. A general structure of IORT [1]:It has nodes for PCI RC, SMMU, ITS and Platform devices. Using an IORT table I am not sure to understand "to setup SMMU's and platform devices...". With IORT, a software can discover list of SMMUs and the IDs to configure the ITS and SMMUs for each device (e.g PCI, integrated...) on the platform. You will not be able to discover the list of platform devices through it. Also, it is not really "proposed". It is the only way to get those information from ACPI. It is proposed in this document to parse iort once and use the information to translate RID without traversing IORT again and again. Also Xen prepares an IORT table for dom0 based on host IORT. For DomU IORT table proposed only in case of device passthrough. 3. IORT for Dom0 -----------------IORT for Dom0 is based on host iort. Few nodes could be removed or modified.For instance - Host SMMU nodes should not be present as Xen should only touch it. - platform nodes (named components) may be controlled by xen command line. I am not sure where does this example come from? As I said, there are no plan to support Platform Device passthrough with ACPI. A better example here would removing PMCG. 4. IORT for DomU ----------------- IORT for DomU should be generated by toolstack. IORT table is only present in case of device passthrough. At a minimum domU IORT should include a single PCIRC and ITS Group. Similar PCIRC can be added in DSDT. The exact structure of DomU IORT would be covered along with PCI PT design. 5. Parsing of IORT in Xen --------------------------IORT nodes can be saved in structures so that IORT table parsing can be done once and is reused by all xen subsystems like ITS / SMMU etc, domain creation. Which assumptions? I can't see any in the commit message. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |