]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virpcimock: Create PCI devices under /sys/devices/pci*
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 13 Aug 2019 09:05:35 +0000 (11:05 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 17 Aug 2019 10:11:20 +0000 (12:11 +0200)
commit6a966aac9decb35df6199d0084622ee241cfbc16
tree3f5eae13b3cb4fe23b5d4a37af9adc374c8fce93
parent76b42294380d40282ed29560e4ae4a7491b9df05
virpcimock: Create PCI devices under /sys/devices/pci*

So far, we are creating devices directly under
/sys/bus/pci/devices/*. There is not much problem with it, but if
we really want to model kernel behaviour we need to create them
under /sys/devices/pciDDDD:BB and then only symlink them from the
old location.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/virpcimock.c