[virtio-dev] [pci PATCH v7 5/5] pci-pf-stub: Add PF driver stub for PFs that function only to enable VFs

2018-03-15 Thread Alexander Duyck
From: Alexander Duyck Add a new driver called "pci-pf-stub" to act as a "white-list" for PF devices that provide no other functionality other then acting as a means of allocating a set of VFs. For now I only have one example ID provided by Amazon in terms of devices that require this functionalit

[virtio-dev] [pci PATCH v7 4/5] nvme: Migrate over to unmanaged SR-IOV support

2018-03-15 Thread Alexander Duyck
From: Alexander Duyck Instead of implementing our own version of a SR-IOV configuration stub in the nvme driver we can just reuse the existing pci_sriov_configure_simple function. Reviewed-by: Christoph Hellwig Signed-off-by: Alexander Duyck --- v5: Replaced call to pci_sriov_configure_unmana

[virtio-dev] [pci PATCH v7 3/5] ena: Migrate over to unmanaged SR-IOV support

2018-03-15 Thread Alexander Duyck
From: Alexander Duyck Instead of implementing our own version of a SR-IOV configuration stub in the ena driver we can just reuse the existing pci_sriov_configure_simple function. Signed-off-by: Alexander Duyck --- v5: Replaced call to pci_sriov_configure_unmanaged with pci_sriov_config

[virtio-dev] [pci PATCH v7 2/5] virtio_pci: Add support for unmanaged SR-IOV on virtio_pci devices

2018-03-15 Thread Alexander Duyck
From: Alexander Duyck Hardware-realized virtio_pci devices can implement SR-IOV, so this patch enables its use. The device in question is an upcoming Intel NIC that implements both a virtio_net PF and virtio_net VFs. These are hardware realizations of what has been up to now been a software inter

[virtio-dev] [pci PATCH v7 1/5] pci: Add pci_sriov_configure_simple for PFs that don't manage VF resources

2018-03-15 Thread Alexander Duyck
From: Alexander Duyck This patch adds a common configuration function called pci_sriov_configure_simple that will allow for managing VFs on devices where the PF is not capable of managing VF resources. Signed-off-by: Alexander Duyck --- v5: New patch replacing pci_sriov_configure_unmanaged wit

[virtio-dev] [pci PATCH v7 0/5] Add support for unmanaged SR-IOV

2018-03-15 Thread Alexander Duyck
This series is meant to add support for SR-IOV on devices when the VFs are not managed by the kernel. Examples of recent patches attempting to do this include: virto - https://patchwork.kernel.org/patch/10241225/ pci-stub - https://patchwork.kernel.org/patch/10109935/ vfio - https://patchwork.kerne

Re: [virtio-dev] Re: [PATCH v4 3/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-03-15 Thread Michael S. Tsirkin
On Thu, Mar 15, 2018 at 06:24:16PM +0800, Wei Wang wrote: > On 03/15/2018 10:47 AM, Michael S. Tsirkin wrote: > > On Thu, Mar 15, 2018 at 09:15:48AM +0800, Wei Wang wrote: > > > On 03/14/2018 10:12 PM, Michael S. Tsirkin wrote: > > > > On Wed, Mar 14, 2018 at 02:03:19PM +0800, Wei Wang wrote: > > >

[virtio-dev] Re: [PATCH v4 2/4] migration: API to clear bits of guest free pages from the dirty bitmap

2018-03-15 Thread Michael S. Tsirkin
On Thu, Mar 15, 2018 at 06:52:41PM +0800, Wei Wang wrote: > On 03/15/2018 02:11 AM, Dr. David Alan Gilbert wrote: > > * Wei Wang (wei.w.w...@intel.com) wrote: > > > This patch adds an API to clear bits corresponding to guest free pages > > > from the dirty bitmap. Spilt the free page block if it cr

[virtio-dev] Re: [PATCH v4 2/4] migration: API to clear bits of guest free pages from the dirty bitmap

2018-03-15 Thread Wei Wang
On 03/15/2018 03:42 AM, Dr. David Alan Gilbert wrote: * Michael S. Tsirkin (m...@redhat.com) wrote: On Wed, Mar 14, 2018 at 06:11:37PM +, Dr. David Alan Gilbert wrote: +used_len = block->used_length - offset; +addr += used_len; +} + +start = offset >>

[virtio-dev] Re: [PATCH v4 2/4] migration: API to clear bits of guest free pages from the dirty bitmap

2018-03-15 Thread Wei Wang
On 03/15/2018 02:11 AM, Dr. David Alan Gilbert wrote: * Wei Wang (wei.w.w...@intel.com) wrote: This patch adds an API to clear bits corresponding to guest free pages from the dirty bitmap. Spilt the free page block if it crosses the QEMU RAMBlock boundary. Signed-off-by: Wei Wang CC: Dr. David

Re: [virtio-dev] Re: [PATCH v4 3/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-03-15 Thread Wei Wang
On 03/15/2018 10:47 AM, Michael S. Tsirkin wrote: On Thu, Mar 15, 2018 at 09:15:48AM +0800, Wei Wang wrote: On 03/14/2018 10:12 PM, Michael S. Tsirkin wrote: On Wed, Mar 14, 2018 at 02:03:19PM +0800, Wei Wang wrote: On 03/14/2018 10:53 AM, Michael S. Tsirkin wrote: On Wed, Mar 14, 2018 at 10: