Re: [Qemu-devel] [PATCH qemu v4 1/3] spapr_iommu: Realloc guest visible TCE table when hot(un)plugging vfio-pci

2017-08-15 Thread Alexey Kardashevskiy
On 09/08/17 17:33, David Gibson wrote: > On Mon, Jul 24, 2017 at 08:48:45PM +1000, Alexey Kardashevskiy wrote: >> On 24/07/17 15:53, David Gibson wrote: >>> On Thu, Jul 20, 2017 at 05:22:29PM +1000, Alexey Kardashevskiy wrote: This replaces g_malloc() with spapr_tce_alloc_table() as this is

Re: [Qemu-devel] [PATCH qemu v4 1/3] spapr_iommu: Realloc guest visible TCE table when hot(un)plugging vfio-pci

2017-08-09 Thread David Gibson
On Mon, Jul 24, 2017 at 08:48:45PM +1000, Alexey Kardashevskiy wrote: > On 24/07/17 15:53, David Gibson wrote: > > On Thu, Jul 20, 2017 at 05:22:29PM +1000, Alexey Kardashevskiy wrote: > >> This replaces g_malloc() with spapr_tce_alloc_table() as this is > >> the standard way of allocating tables

Re: [Qemu-devel] [PATCH qemu v4 1/3] spapr_iommu: Realloc guest visible TCE table when hot(un)plugging vfio-pci

2017-08-07 Thread Alexey Kardashevskiy
On 24/07/17 20:48, Alexey Kardashevskiy wrote: > On 24/07/17 15:53, David Gibson wrote: >> On Thu, Jul 20, 2017 at 05:22:29PM +1000, Alexey Kardashevskiy wrote: >>> This replaces g_malloc() with spapr_tce_alloc_table() as this is >>> the standard way of allocating tables and this allows moving the

Re: [Qemu-devel] [PATCH qemu v4 1/3] spapr_iommu: Realloc guest visible TCE table when hot(un)plugging vfio-pci

2017-07-24 Thread Alexey Kardashevskiy
On 24/07/17 15:53, David Gibson wrote: > On Thu, Jul 20, 2017 at 05:22:29PM +1000, Alexey Kardashevskiy wrote: >> This replaces g_malloc() with spapr_tce_alloc_table() as this is >> the standard way of allocating tables and this allows moving the table >> back to KVM when unplugging a VFIO PCI

Re: [Qemu-devel] [PATCH qemu v4 1/3] spapr_iommu: Realloc guest visible TCE table when hot(un)plugging vfio-pci

2017-07-23 Thread David Gibson
On Thu, Jul 20, 2017 at 05:22:29PM +1000, Alexey Kardashevskiy wrote: > This replaces g_malloc() with spapr_tce_alloc_table() as this is > the standard way of allocating tables and this allows moving the table > back to KVM when unplugging a VFIO PCI device and VFIO TCE acceleration > support is

[Qemu-devel] [PATCH qemu v4 1/3] spapr_iommu: Realloc guest visible TCE table when hot(un)plugging vfio-pci

2017-07-20 Thread Alexey Kardashevskiy
This replaces g_malloc() with spapr_tce_alloc_table() as this is the standard way of allocating tables and this allows moving the table back to KVM when unplugging a VFIO PCI device and VFIO TCE acceleration support is not present in the KVM. Although spapr_tce_alloc_table() is expected to fail