mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
88ef73e13c
Start discovering the mediated devices on the host system and format the attributes for the mediated device into the XML. Compared to the parent device which reports generic information about the abstract mediated devices types, a child device only reports the type name it has been instantiated from and the IOMMU group number, since that's device specific compared to the rest of the info that can be gathered about mediated devices at the moment. This patch introduces both the formatting and parsing routines, updates nodedev.rng schema, adding a testcase as well. The resulting mdev child device XML: <device> <name>mdev_4b20d080_1b54_4048_85b3_a6a62d165c01</name> <path>/sys/devices/.../4b20d080-1b54-4048-85b3-a6a62d165c01</path> <parent>pci_0000_06_00_0</parent> <driver> <name>vfio_mdev</name> </driver> <capability type='mdev'> <type id='vendor_supplied_type_id'/> <iommuGroup number='NUM'/> <capability/> <device/> https://bugzilla.redhat.com/show_bug.cgi?id=1452072 Signed-off-by: Erik Skultety <eskultet@redhat.com> |
||
---|---|---|
.. | ||
computer.xml | ||
drm_renderD129.xml | ||
DVD_GCC_4247N.xml | ||
DVD_with_media.xml | ||
mdev_3627463d_b7f0_4fea_b468_f1da537d301b.xml | ||
net_00_13_02_b9_f9_d3.xml | ||
net_00_15_58_2f_e9_55.xml | ||
pci_0000_00_1c_0_header_type.xml | ||
pci_0000_00_02_0_header_type.xml | ||
pci_0000_02_10_7_mdev_types.xml | ||
pci_0000_02_10_7_sriov_pf_vfs_all_header_type.xml | ||
pci_0000_02_10_7_sriov_pf_vfs_all.xml | ||
pci_0000_02_10_7_sriov_vfs.xml | ||
pci_0000_02_10_7_sriov_zero_vfs_max_count.xml | ||
pci_0000_02_10_7_sriov.xml | ||
pci_1002_71c4.xml | ||
pci_8086_0c0c_snd_hda_intel.xml | ||
pci_8086_10c9_sriov_pf.xml | ||
pci_8086_27c5_scsi_host_0_unique_id.xml | ||
pci_8086_27c5_scsi_host_0.xml | ||
pci_8086_27c5_scsi_host_scsi_device_lun0.xml | ||
pci_8086_27c5_scsi_host_scsi_host.xml | ||
pci_8086_27c5_scsi_host.xml | ||
pci_8086_4238_pcie_wireless.xml | ||
pci_82579LM_network_adapter.xml | ||
scsi_target0_0_0.xml | ||
storage_serial_3600c0ff000d7a2a5d463ff4902000000.xml | ||
storage_serial_SATA_HTS721010G9SA00_MPCZ12Y0GNGWSE.xml | ||
usb_device_1d6b_1_0000_00_1d_0_if0.xml | ||
usb_device_1d6b_1_0000_00_1d_0.xml |