Re: [PATCH resend] powerpc: enable qspinlock and its virtualization support

2016-05-03 Thread Pan Xinhui
On 2016年04月29日 05:07, Waiman Long wrote: > On 04/28/2016 06:55 AM, Pan Xinhui wrote: >> From: Pan Xinhui >> >> This patch aims to enable qspinlock on PPC. And on pseries platform, it also >> support >> paravirt qspinlock. >> >> Signed-off-by: Pan

Re: [PATCH resend] powerpc: enable qspinlock and its virtualization support

2016-05-03 Thread Waiman Long
On 04/28/2016 06:55 AM, Pan Xinhui wrote: From: Pan Xinhui This patch aims to enable qspinlock on PPC. And on pseries platform, it also support paravirt qspinlock. Signed-off-by: Pan Xinhui ---

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-05-03 Thread Joerg Roedel
On Wed, Apr 27, 2016 at 05:54:57PM +0300, Michael S. Tsirkin wrote: > Point is, QEMU is not the only virtio implementation out there. > So we can't know no virtio implementations have an IOMMU as long as > linux supports this IOMMU. > virtio always used physical addresses since it was born and if

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-05-03 Thread Joerg Roedel
On Wed, Apr 27, 2016 at 05:34:30PM +0300, Michael S. Tsirkin wrote: > On Wed, Apr 27, 2016 at 04:23:32PM +0200, Joerg Roedel wrote: > QEMU can choose to bypass IOMMU for one device and not the other. > IOMMU in QEMU isn't involved when it's bypassed. And it is QEMU's task to tell the OS, right?

[PATCH] powerpc: enable qspinlock and its virtualization support

2016-05-03 Thread Pan Xinhui
From: Pan Xinhui This path aims to enable qspinlock on PPC. And on pseries platform, it also support paravirt qspinlock. Signed-off-by: Pan Xinhui --- arch/powerpc/include/asm/qspinlock.h | 37 +++

[PATCH resend] powerpc: enable qspinlock and its virtualization support

2016-05-03 Thread Pan Xinhui
From: Pan Xinhui This patch aims to enable qspinlock on PPC. And on pseries platform, it also support paravirt qspinlock. Signed-off-by: Pan Xinhui --- arch/powerpc/include/asm/qspinlock.h | 37 +++

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-05-03 Thread Joerg Roedel
On Wed, Apr 27, 2016 at 04:37:04PM +0300, Michael S. Tsirkin wrote: > One correction: it's a feature of the device in the system. > There could be a mix of devices bypassing and not > bypassing the IOMMU. No, it really is not. A device can't chose to bypass the IOMMU. But the IOMMU can chose to

[PATCH] virtio: silence compiler warning

2016-05-03 Thread Jiri Benc
gcc 4.8.5 emits the following false positive: drivers/virtio/virtio_ring.c: In function 'vring_create_virtqueue': drivers/virtio/virtio_ring.c:1032:5: warning: 'queue' may be used uninitialized in this function [-Wmaybe-uninitialized] Silence it. Signed-off-by: Jiri Benc ---