• M
    virpcitest: Introduce testVirPCIDeviceReset · 21685c95
    Michal Privoznik 提交于
    This addition, however, requires some refactoring to be done.  First of
    all, to match the best practice we should detach the device prior
    resetting it. That's why testVirPCIDeviceDetach is detaching all devices
    within 0000:00:01.0 and 0000:00:03.0 range. Then, the brand new test
    will reset the 0000:00:02.0 device, so the last testVirPCIDeviceReattach
    can reattach all the devices back.
    
    In order to perform a PCI device reset, the dummy config file is not
    sufficient anymore and must be replaced with real PCI config (binary
    mess). Such config files are to be stored under tests/virpcitestdata/
    and ought to have '.config' suffix.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    21685c95
virpcimock.c 23.3 KB