diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-22 15:19:39 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-22 15:19:39 +0000 |
commit | 2c8b24a3914361de941e959e38e3c163a5adeea7 (patch) | |
tree | 411b956f4fbe8f95bb971f4241ff90087bee7bd7 /hw/xen_backend.h | |
parent | e613b064a88a94b2e887f2cb7a5a3a9082e67d9b (diff) | |
download | qemu-2c8b24a3914361de941e959e38e3c163a5adeea7.tar.gz qemu-2c8b24a3914361de941e959e38e3c163a5adeea7.tar.bz2 qemu-2c8b24a3914361de941e959e38e3c163a5adeea7.zip |
xen: blk & nic configuration via cmd line. (Gerd Hoffmann)
This patch makes qemu create backend and frontend device entries in
xenstore for devices configured on the command line. It will use
qdisk and qnic backend names, so the qemu internal backends will
be used.
Disks can be created using -drive if=xen,file=...
Nics can be created using -net nic,macaddr=...
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@7225 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/xen_backend.h')
-rw-r--r-- | hw/xen_backend.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/xen_backend.h b/hw/xen_backend.h index 4e4be14ed4..7f1804e9d5 100644 --- a/hw/xen_backend.h +++ b/hw/xen_backend.h @@ -3,6 +3,8 @@ #include "xen_common.h" #include "sysemu.h" +#include "net.h" +#include "block_int.h" /* ------------------------------------------------------------- */ @@ -56,6 +58,7 @@ struct XenDevice { /* variables */ extern int xen_xc; extern struct xs_handle *xenstore; +extern const char *xen_protocol; /* xenstore helper functions */ int xenstore_write_str(const char *base, const char *node, const char *val); @@ -93,4 +96,9 @@ extern struct XenDevOps xen_netdev_ops; /* xen_nic.c */ void xen_init_display(int domid); +/* configuration (aka xenbus setup) */ +void xen_config_cleanup(void); +int xen_config_dev_blk(DriveInfo *disk); +int xen_config_dev_nic(NICInfo *nic); + #endif /* QEMU_HW_XEN_BACKEND_H */ |