Received: from eggs.gnu.org ([2001:4830:134:3::10]:39359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4fP4-0003eP-2r for qemu-devel@nongnu.org; Wed, 09 Nov 2016 21:47:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4fOz-00068x-74 for qemu-devel@nongnu.org; Wed, 09 Nov 2016 21:47:50 -0500 Received: from mga05.intel.com ([192.55.52.43]:42131) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4fOy-00068f-UN for qemu-devel@nongnu.org; Wed, 09 Nov 2016 21:47:45 -0500 From: Wei Wang Date: Wed, 9 Nov 2016 21:47:45 -0500 Message-Id: <1478746069-79574-1-git-send-email-wei.w.wang@intel.com> Subject: [Qemu-devel] [RFC PATCH 0/4] *** Half-cooked vhost-pci implementation patch *** List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@gmail.com, mst@redhat.com, stefanha@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, virtio-dev@lists.oasis-open.org Cc: Wei Wang As the design patches to the spec are in discussion, I'm sending out the draft code to show how the vhost-pci deign works. Comments on the implementation are also very welcommed. Thanks. Code base: v2.7.0 (git: df03468cad) Wei Wang (4): qemu-char: add the "1-server-N-client" support vhost-user: add the vhost-user extension to support the vhost-pci based inter-vm communication vhost-pci-net device support vhost-user: extend the vhost-user Master (client) part to support vhost-pci hw/net/Makefile.objs | 2 +- hw/net/vhost-pci-net.c | 142 +++++++ hw/net/vhost_net.c | 20 + hw/virtio/Makefile.objs | 1 + hw/virtio/vhost-pci-server.c | 469 ++++++++++++++++++++++ hw/virtio/vhost-user.c | 152 ++++---- hw/virtio/virtio-pci.c | 67 ++++ hw/virtio/virtio-pci.h | 14 + include/hw/pci/pci.h | 1 + include/hw/virtio/vhost-backend.h | 3 + include/hw/virtio/vhost-pci-net.h | 39 ++ include/hw/virtio/vhost-pci-server.h | 45 +++ include/hw/virtio/vhost-user.h | 110 ++++++ include/net/vhost_net.h | 5 + include/standard-headers/linux/vhost_pci_net.h | 45 +++ include/standard-headers/linux/virtio_ids.h | 1 + include/sysemu/char.h | 64 +++- include/sysemu/sysemu.h | 1 + qapi-schema.json | 3 +- qemu-char.c | 512 +++++++++++++++++++------ qemu-options.hx | 4 + vl.c | 26 ++ 22 files changed, 1517 insertions(+), 209 deletions(-) create mode 100644 hw/net/vhost-pci-net.c create mode 100644 hw/virtio/vhost-pci-server.c create mode 100644 include/hw/virtio/vhost-pci-net.h create mode 100644 include/hw/virtio/vhost-pci-server.h create mode 100644 include/hw/virtio/vhost-user.h create mode 100644 include/standard-headers/linux/vhost_pci_net.h -- 2.7.4