28 Aug, 2013

2 commits

  • This patch adds support for virtual IOMMU to the vmci module. We switch
    to DMA consistent mappings for guest queuepair and doorbell pages that
    are passed to the device. We still allocate each page individually,
    since there's no guarantee that we'll get a contiguous block of physical
    for an entire queuepair (especially since we allow up to 128 MiB!).

    Also made the split between guest and host in the kernelIf struct much
    clearer. Now it's obvious which fields are which.

    Acked-by: George Zhang
    Acked-by: Aditya Sarwade
    Signed-off-by: Andy King
    Signed-off-by: Greg Kroah-Hartman

    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
    Signed-off-by: Andy King
    Signed-off-by: Greg Kroah-Hartman

    Andy King
     

20 May, 2013

1 commit

  • ERROR: "memcpy_fromiovec" [drivers/vhost/vhost_scsi.ko] undefined!

    That function is only present with CONFIG_NET. Turns out that
    crypto/algif_skcipher.c also uses that outside net, but it actually
    needs sockets anyway.

    In addition, commit 6d4f0139d642c45411a47879325891ce2a7c164a added
    CONFIG_NET dependency to CONFIG_VMCI for memcpy_toiovec, so hoist
    that function and revert that commit too.

    socket.h already includes uio.h, so no callers need updating; trying
    only broke things fo x86_64 randconfig (thanks Fengguang!).

    Reported-by: Randy Dunlap
    Acked-by: David S. Miller
    Acked-by: Michael S. Tsirkin
    Signed-off-by: Rusty Russell

    Rusty Russell
     

26 Jan, 2013

1 commit

  • We can't rely on vmalloc.h being included by other included files because
    under some configs it is possible for the build to fail:

    drivers/misc/vmw_vmci/vmci_queue_pair.c: In function 'qp_free_queue':
    drivers/misc/vmw_vmci/vmci_queue_pair.c:270: error: implicit declaration of function 'vunmap'
    drivers/misc/vmw_vmci/vmci_queue_pair.c:277: error: implicit declaration of function 'vfree'
    drivers/misc/vmw_vmci/vmci_queue_pair.c: In function 'qp_alloc_queue':
    drivers/misc/vmw_vmci/vmci_queue_pair.c:302: error: implicit declaration of function 'vmalloc'
    drivers/misc/vmw_vmci/vmci_queue_pair.c:302: warning: assignment makes pointer from integer without a cast
    drivers/misc/vmw_vmci/vmci_queue_pair.c:324: error: implicit declaration of function 'vmap'
    drivers/misc/vmw_vmci/vmci_queue_pair.c:324: error: 'VM_MAP' undeclared (first use in this function)
    drivers/misc/vmw_vmci/vmci_queue_pair.c:324: error: (Each undeclared identifier is reported only once
    drivers/misc/vmw_vmci/vmci_queue_pair.c:324: error: for each function it appears in.)
    drivers/misc/vmw_vmci/vmci_queue_pair.c: In function 'qp_host_map_queues':
    drivers/misc/vmw_vmci/vmci_queue_pair.c:843: error: 'VM_MAP' undeclared (first use in this function)

    Fix the build by directly including vmalloc.h.

    Signed-off-by: David Rientjes
    Cc: George Zhang
    Cc: Andy King
    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    David Rientjes
     

18 Jan, 2013

3 commits


09 Jan, 2013

1 commit