[PATCH 1/2] VMCI: Remove non-blocking/pinned queuepair support

2013-08-20 Thread Andy King
We added this for a special case that doesn't exist on Linux. Remove the non-blocking/pinned queuepair code and simplify the driver in preparation for adding virtual IOMMU support. Acked-by: Aditya Sarwade asarw...@vmware.com Signed-off-by: Andy King ack...@vmware.com ---

[PATCH 2/2] VMCI: Add support for virtual IOMMU

2013-08-20 Thread Andy King
Right now we use vmalloc()/alloc_page() for our guest queuepair pages and then do a virt_to_phys() before passing them down to the device. That's not going to work if DMA remapping is enabled, since the IOMMU has no idea about the mappings. Switch to pci_alloc_consistent() instead. We still

[PATCH] VMXNET3: Add support for virtual IOMMU

2013-08-20 Thread Andy King
We can't just do virt_to_phys() on memory that we pass to the device and expect it to work in presence of a virtual IOMMU. We need to add IOMMU mappings for such DMAs to work correctly. Fix that with pci_alloc_consistent() where possible, or pci_map_single() where the mapping is short-lived or

Re: [Xen-devel] [PATCH] xen: initialize xen panic handler for PVHVM

2013-08-20 Thread Konrad Rzeszutek Wilk
On Mon, Aug 19, 2013 at 02:18:42PM +0800, Joe Jin wrote: On 08/16/13 20:43, Konrad Rzeszutek Wilk wrote: Could you tell me what has been happening without this patch? Without this patch, Xen would not get pvhvm crash event, any config for on_crash in guest configure file will not be

Re: [PATCH-v3 1/4] idr: Percpu ida

2013-08-20 Thread Andrew Morton
On Fri, 16 Aug 2013 23:09:06 + Nicholas A. Bellinger n...@linux-iscsi.org wrote: From: Kent Overstreet k...@daterainc.com Percpu frontend for allocating ids. With percpu allocation (that works), it's impossible to guarantee it will always be possible to allocate all nr_tags -

Re: [PATCH v2] vhost: Include linux/uio.h instead of linux/socket.h

2013-08-20 Thread David Miller
From: Asias He as...@redhat.com Date: Mon, 19 Aug 2013 09:23:19 +0800 memcpy_fromiovec is moved from net/core/iovec.c to lib/iovec.c. linux/uio.h provides the declaration for memcpy_fromiovec. Include linux/uio.h instead of inux/socket.h for it. Signed-off-by: Asias He as...@redhat.com