XS Boston 2008 VT-D PCI

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Event

    XS Boston 2008 VT-D PCI - Presentation Transcript

    1. Enhancing pass through device support with IOMMU Haitao Shan (haitao.shan@intel.com) Yunhong Jiang Allen M Kay Eddie (Yaozu) Dong
    2. Agenda • Current Status • Further enhancement – Hardening host – Improving functionality – Handling more corner cases • Call to action 2
    3. Current Status Pass through device support with IOMMU is enabled in Xen since 3.2.0 • Full functional • High throughput, minimal CPU utilization 3
    4. Further enhancement Further enhancements needed for error handling, more devices, hot add / removal etc. • Hardening host from device failure • Improving functionality • Handling more corner cases 4
    5. Hardening host from device failure A guest device error may be propagated to host • PCI SERR# from guest assigned device may result in host platform reset. – SERR# can generate an SMI or NMI and host BIOS/OS may reset the physical platform Proposed solution • Need PCIe AER to recover from device error – Turn on AER for underlying PCIe device. • Virtualize guest CMD access by pinning host SERR to 1 • AER support in Linux is only after 2.6.19 – Push for dom0 pv_ops!!! 5
    6. Improving functionality: Standardizing CFGS emulation Current CFGS emulation policy • Only support offset 0-256, 256-4096 are not in current Qemu • Pass thru CMD only, virtualize BAR/MSI/MSI-X, writes to the rest are ignored, but read from physical – Device may not fully function since if driver’s setting are ignored Proposed solution • Pass thru all registers except the ones with known behavior – Framework to provide additional filters (in QEMU) for certain capabilities • Standardized CFGS emulation policy helps device vendors to implement virtualization friendly solutions 6
    7. CFGS Emulation Summary Register (s) Current Policy Proposed Policy Pass-thru with SERR pin to CMD Pass-thru 1 BARs and Expansion Rom Virtualized Virtualized Base Address CardBUS CIS pointer Virtualized as RAM Pass-thru Interrupt Line (RW) Virtualized as RAM Virtualized as RAM (device does not use) Present base on virtual Interrupt Pin (RO) Virtualized as RAM platform Rest registers in PCI header Virtualized as RAM Pass-thru MSI/MSI-x Virtualized Virtualized Registers outside Write ignored, Pass-thru configuration space header Read from physical device 7
    8. Handling more corner cases: Device reconfiguration Xen uses initial BIOS PCI settings to build internal device list, and IOMMU page tables for dom0 • But PCIe devices can be reconfigured later on and even at rum-time – Dom0 may re-balance (pci=assign-busses) at its own initialization stage Bus # changed – Devices can be dynamically added (VFs in SR-IOV and hot-plugged devices) Proposed solution • Add new hypercalls to instruct Xen to update IOMMU mappings • Allow device list in Xen to be dynamically modified Should the device list and IOMMU table be constructed in Xen startup stage or later on after dom0 instructs Xen? 8
    9. Handling more corner cases: Qemu for PCIe Devices Virtual chipset (PIIX3) in Qemu doesn’t support PCIe • Guest see PCIe devices in PCI chipset without bridge • Qemu doesn’t support PCIe extended capabilities – Device may not work appropriately if its setting are not passed through Possible solution • Enable PCIe extended capabilities in virtual platform • Pushing Qemu/BIOS ahead to incorporate more advanced features and more recent chipset model 9
    10. Call to action Need community efforts • Pushing dom0 to latest Linux tree – Any update of pv_ops support for dom0 ? • AER enabling • Device power management 10
    11. Legal Information INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY RELATING TO SALE AND/OR USE OF INTEL PRODUCTS, INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT, OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel may make changes to specifications, product descriptions, and plans at any time, without notice. All dates provided are subject to change without notice. Intel is a trademark of Intel Corporation in the U.S. and other countries. *Other names and brands may be claimed as the property of others. Copyright © 2007, Intel Corporation. All rights are protected. 11
    12. 12
    SlideShare Zeitgeist 2009

    + Stephen SpectorStephen Spector Nominate

    custom

    251 views, 0 favs, 0 embeds more stats

    VT-d PCI Passthrough Enhancements

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 251
      • 251 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories