]> git.proxmox.com Git - qemu.git/commit
dataplane: add virtqueue vring code
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 14 Nov 2012 14:15:50 +0000 (15:15 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 2 Jan 2013 14:55:47 +0000 (15:55 +0100)
commit88807f89d945acad54c8365ff7b6ef0f0d0ddd56
tree2881d517920dc5c1737d9a1d422b4ff098525854
parent185ecf40e3589fc2717b0856ee1df05dd63a46dd
dataplane: add virtqueue vring code

The virtio-blk-data-plane cannot access memory using the usual QEMU
functions since it executes outside the global mutex and the memory APIs
are this time are not thread-safe.

This patch introduces a virtqueue module based on the kernel's vhost
vring code.  The trick is that we map guest memory ahead of time and
access it cheaply outside the global mutex.

Once the hardware emulation code can execute outside the global mutex it
will be possible to drop this code.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/dataplane/Makefile.objs
hw/dataplane/vring.c [new file with mode: 0644]
hw/dataplane/vring.h [new file with mode: 0644]
trace-events