]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Add abstract virtio transport layer
authorSasha Levin <levinsasha928@gmail.com>
Wed, 9 Nov 2011 20:01:52 +0000 (22:01 +0200)
committerPekka Enberg <penberg@kernel.org>
Thu, 10 Nov 2011 06:49:43 +0000 (08:49 +0200)
commitef10d0bfc95f72bebd37a2ef7205bf2d1f68d162
treef1e772e7cdd708a750754901c49f227569c78e05
parent9c22b9873aed0922d55ca11fba72d02fbc385d0b
kvm tools: Add abstract virtio transport layer

Since virtio-mmio was introduced in 3.2, virtio-pci isn't the only transport
layer between the kernel and virtio devices.

This patch adds an abstract virtio-transport layer which allows to easily
use different transports while making it transparent to the device.

This is the first step in adding virtio-mmio support.

Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
12 files changed:
tools/kvm/Makefile
tools/kvm/include/kvm/virtio-9p.h
tools/kvm/include/kvm/virtio-pci.h
tools/kvm/include/kvm/virtio-trans.h [new file with mode: 0644]
tools/kvm/virtio/9p.c
tools/kvm/virtio/balloon.c
tools/kvm/virtio/blk.c
tools/kvm/virtio/console.c
tools/kvm/virtio/net.c
tools/kvm/virtio/pci.c
tools/kvm/virtio/rng.c
tools/kvm/virtio/trans.c [new file with mode: 0644]