Re: [Qemu-devel] [PULL 7/7] vfio: fix mapping of MSIX bar

2014-01-19 Thread Alex Williamson
On Sun, 2014-01-19 at 23:46 +0800, Kai Huang wrote: > On Sun, Jan 19, 2014 at 10:11 PM, Alex Williamson > wrote: > > On Sun, 2014-01-19 at 22:03 +0800, Kai Huang wrote: > >> On Sat, Jan 18, 2014 at 3:25 AM, Alex Williamson > >> wrote: > >> > From: Alexey Kardashevskiy > >> > > >> > VFIO virtuali

Re: [Qemu-devel] [PULL 7/7] vfio: fix mapping of MSIX bar

2014-01-19 Thread Kai Huang
On Sun, Jan 19, 2014 at 10:11 PM, Alex Williamson wrote: > On Sun, 2014-01-19 at 22:03 +0800, Kai Huang wrote: >> On Sat, Jan 18, 2014 at 3:25 AM, Alex Williamson >> wrote: >> > From: Alexey Kardashevskiy >> > >> > VFIO virtualizes MSIX table for the guest but not mapping the part of >> > a BAR

Re: [Qemu-devel] [PULL 7/7] vfio: fix mapping of MSIX bar

2014-01-19 Thread Kai Huang
On Sat, Jan 18, 2014 at 3:25 AM, Alex Williamson wrote: > From: Alexey Kardashevskiy > > VFIO virtualizes MSIX table for the guest but not mapping the part of > a BAR which contains an MSIX table. Since vfio_mmap_bar() mmaps chunks > before and after the MSIX table, they have to be aligned to the

Re: [Qemu-devel] [PULL 7/7] vfio: fix mapping of MSIX bar

2014-01-19 Thread Alex Williamson
On Sun, 2014-01-19 at 22:03 +0800, Kai Huang wrote: > On Sat, Jan 18, 2014 at 3:25 AM, Alex Williamson > wrote: > > From: Alexey Kardashevskiy > > > > VFIO virtualizes MSIX table for the guest but not mapping the part of > > a BAR which contains an MSIX table. Since vfio_mmap_bar() mmaps chunks >

[Qemu-devel] [PULL 7/7] vfio: fix mapping of MSIX bar

2014-01-17 Thread Alex Williamson
From: Alexey Kardashevskiy VFIO virtualizes MSIX table for the guest but not mapping the part of a BAR which contains an MSIX table. Since vfio_mmap_bar() mmaps chunks before and after the MSIX table, they have to be aligned to the host page size which may be TARGET_PAGE_MASK (4K) or 64K in case