RE: [PATCH] vfio/pci: Fix SR-IOV VF handling with MMIO blocking

2020-06-27 Thread Wang, Haiyue
0 00:57 > > > To: alex.william...@redhat.com > > > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > > > maxime.coque...@redhat.com > > > Subject: [PATCH] vfio/pci: Fix SR-IOV VF handling with MMIO blocking > > > > > &

Re: [PATCH] vfio/pci: Fix SR-IOV VF handling with MMIO blocking

2020-06-27 Thread Alex Williamson
@vger.kernel.org; linux-kernel@vger.kernel.org; > > maxime.coque...@redhat.com > > Subject: [PATCH] vfio/pci: Fix SR-IOV VF handling with MMIO blocking > > > > SR-IOV VFs do not implement the memory enable bit of the command > > register, therefore this bit is not set

RE: [PATCH] vfio/pci: Fix SR-IOV VF handling with MMIO blocking

2020-06-27 Thread Wang, Haiyue
> -Original Message- > From: kvm-ow...@vger.kernel.org On Behalf Of Alex > Williamson > Sent: Friday, June 26, 2020 00:57 > To: alex.william...@redhat.com > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > maxime.coque...@redhat.com > Subject: [PATCH]

[PATCH] vfio/pci: Fix SR-IOV VF handling with MMIO blocking

2020-06-25 Thread Alex Williamson
SR-IOV VFs do not implement the memory enable bit of the command register, therefore this bit is not set in config space after pci_enable_device(). This leads to an unintended difference between PF and VF in hand-off state to the user. We can correct this by setting the initial value of the