diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-22 15:19:30 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-22 15:19:30 +0000 |
commit | 62d23efac8905a46277f666c909e826f91c12aa1 (patch) | |
tree | 36b9a6303ccd07006606480883d4eda6d317799d /vl.c | |
parent | e7151f83e2316a7f2618b07793a71136165a760e (diff) | |
download | qemu-62d23efac8905a46277f666c909e826f91c12aa1.tar.gz qemu-62d23efac8905a46277f666c909e826f91c12aa1.tar.bz2 qemu-62d23efac8905a46277f666c909e826f91c12aa1.zip |
xen: add block device backend driver. (Gerd Hoffmann)
This patch adds a block device backend driver to qemu. It is a pure
userspace implemention using the gntdev interface. It uses "qdisk" as
backend name in xenstore so it doesn't interfere with the other existing
backends (blkback aka "vbd" and tapdisk aka "tap").
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7223 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2373,7 +2373,10 @@ int drive_init(struct drive_opt *arg, int snapshot, void *opaque) } else if (!strcmp(buf, "virtio")) { type = IF_VIRTIO; max_devs = 0; - } else { + } else if (!strcmp(buf, "xen")) { + type = IF_XEN; + max_devs = 0; + } else { fprintf(stderr, "qemu: '%s' unsupported bus type '%s'\n", str, buf); return -1; } @@ -2587,6 +2590,7 @@ int drive_init(struct drive_opt *arg, int snapshot, void *opaque) switch(type) { case IF_IDE: case IF_SCSI: + case IF_XEN: switch(media) { case MEDIA_DISK: if (cyls != 0) { |