Re: [libvirt] The results of lspci are inconsistent between vfio reset pci devices and reset devices by sysfs interafce

2018-10-09 Thread Alex Williamson
On Wed, 10 Oct 2018 01:47:10 + "Wuzongyong (Euler Dept)" wrote: > > You're right. The initial states are not identical. > I found the function vfio_pci_pre_reset in qemu. > /* > * Stop any ongoing DMA by disconecting I/O, MMIO, and bus master. > * Also put INTx Disable in known

Re: [libvirt] The results of lspci are inconsistent between vfio reset pci devices and reset devices by sysfs interafce

2018-10-09 Thread Wuzongyong (Euler Dept)
> > > Hi, > > > > > > I start a virtual machine with commandline: > > > /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m 8192 -device > > > vfio-pci,host=:81:00.0 > > > > > > Then I pause the qemu process before executing the main_loop > > > function by > > gdb. > > > At this moment, lspci

Re: [libvirt] The results of lspci are inconsistent between vfio reset pci devices and reset devices by sysfs interafce

2018-10-09 Thread Wuzongyong (Euler Dept)
> > Hi, > > > > I start a virtual machine with commandline: > > /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m 8192 -device > > vfio-pci,host=:81:00.0 > > > > Then I pause the qemu process before executing the main_loop function by > gdb. > > At this moment, lspci shows the regions are

Re: [libvirt] The results of lspci are inconsistent between vfio reset pci devices and reset devices by sysfs interafce

2018-10-09 Thread Alex Williamson
On Tue, 9 Oct 2018 12:11:29 + "Wuzongyong (Euler Dept)" wrote: > Hi, > > I start a virtual machine with commandline: > /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m 8192 -device > vfio-pci,host=:81:00.0 > > Then I pause the qemu process before executing the main_loop function by

[libvirt] The results of lspci are inconsistent between vfio reset pci devices and reset devices by sysfs interafce

2018-10-09 Thread Wuzongyong (Euler Dept)
Hi, I start a virtual machine with commandline: /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m 8192 -device vfio-pci,host=:81:00.0 Then I pause the qemu process before executing the main_loop function by gdb. At this moment, lspci shows the regions are disabled like below: 81:00.0 3D