diff options
author | aliguori | 2009-04-22 17:19:44 +0200 |
---|---|---|
committer | aliguori | 2009-04-22 17:19:44 +0200 |
commit | 9306acb50991b7c78510ff4ffe19a190f2fc89c0 (patch) | |
tree | 5ee07ae7eb17f4c965c80dccc9607de939518e0f /hw/xen_devconfig.c | |
parent | xen: blk & nic configuration via cmd line. (Gerd Hoffmann) (diff) | |
download | qemu-9306acb50991b7c78510ff4ffe19a190f2fc89c0.tar.gz qemu-9306acb50991b7c78510ff4ffe19a190f2fc89c0.tar.xz qemu-9306acb50991b7c78510ff4ffe19a190f2fc89c0.zip |
xen: pv domain builder. (Gerd Hoffmann)
This adds domain building support for paravirtual domains to qemu.
This allows booting xen guests directly with qemu, without Xend
and the management stack.
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@7226 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/xen_devconfig.c')
-rw-r--r-- | hw/xen_devconfig.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/hw/xen_devconfig.c b/hw/xen_devconfig.c index 4420561c89..4121188a48 100644 --- a/hw/xen_devconfig.c +++ b/hw/xen_devconfig.c @@ -140,3 +140,32 @@ int xen_config_dev_nic(NICInfo *nic) /* common stuff */ return xen_config_dev_all(fe, be); } + +int xen_config_dev_vfb(int vdev, const char *type) +{ + char fe[256], be[256]; + + xen_config_dev_dirs("vfb", "vfb", vdev, fe, be, sizeof(fe)); + + /* backend */ + xenstore_write_str(be, "type", type); + + /* common stuff */ + return xen_config_dev_all(fe, be); +} + +int xen_config_dev_vkbd(int vdev) +{ + char fe[256], be[256]; + + xen_config_dev_dirs("vkbd", "vkbd", vdev, fe, be, sizeof(fe)); + return xen_config_dev_all(fe, be); +} + +int xen_config_dev_console(int vdev) +{ + char fe[256], be[256]; + + xen_config_dev_dirs("console", "console", vdev, fe, be, sizeof(fe)); + return xen_config_dev_all(fe, be); +} |