mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virpcimock: Introduce NVMe driver and devices
The device configs (which are actually the same one config) come from a NVMe disk of mine. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> ACKed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
3d6e2b5ee8
commit
d4bea2d5fb
@ -980,6 +980,7 @@ init_env(void)
|
||||
MAKE_PCI_DRIVER("iwlwifi", 0x8086, 0x0044);
|
||||
MAKE_PCI_DRIVER("i915", 0x8086, 0x0046, 0x8086, 0x0047);
|
||||
MAKE_PCI_DRIVER("vfio-pci", -1, -1);
|
||||
MAKE_PCI_DRIVER("nvme", 0x1cc1, 0x8201);
|
||||
|
||||
# define MAKE_PCI_DEVICE(Id, Vendor, Device, IommuGroup, ...) \
|
||||
do { \
|
||||
@ -1015,6 +1016,8 @@ init_env(void)
|
||||
MAKE_PCI_DEVICE("0021:de:1f.1", 0x8086, 0x0047, 13,
|
||||
.physfn = "0021:de:1f.0"); /* Virtual Function */
|
||||
|
||||
MAKE_PCI_DEVICE("0000:01:00.0", 0x1cc1, 0x8201, 14, .klass = 0x010802);
|
||||
MAKE_PCI_DEVICE("0000:02:00.0", 0x1cc1, 0x8201, 15, .klass = 0x010802);
|
||||
}
|
||||
|
||||
|
||||
|
BIN
tests/virpcitestdata/0000-01-00.0.config
Normal file
BIN
tests/virpcitestdata/0000-01-00.0.config
Normal file
Binary file not shown.
BIN
tests/virpcitestdata/0000-02-00.0.config
Normal file
BIN
tests/virpcitestdata/0000-02-00.0.config
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user