diff options
author | Wei Liu <wei.liu2@citrix.com> | 2013-04-26 11:11:37 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-04-26 15:55:10 +0100 |
commit | 0114d259ebcd1f87966e2849f6ac1af8d9dd89c5 (patch) | |
tree | a0f3fe704328639c31bab95b2270192f6a1575ca /tools/libxc/xenctrl.h | |
parent | 7259d4d3df40d273725b8c074f169b98846dec97 (diff) | |
download | xen-0114d259ebcd1f87966e2849f6ac1af8d9dd89c5.tar.gz xen-0114d259ebcd1f87966e2849f6ac1af8d9dd89c5.tar.bz2 xen-0114d259ebcd1f87966e2849f6ac1af8d9dd89c5.zip |
libxl: write IO ABI for disk frontends
This is a patch to forward-port a Xend behaviour. Xend writes IO ABI used for
all frontends. Blkfront before 2.6.26 relies on this behaviour otherwise guest
cannot boot when running in 32-on-64 mode. Blkfront after 2.6.26 writes that
node itself, in which case it's just an overwrite to an existing node which
should be OK.
In fact Xend writes the ABI for all frontends including console and vif. But
nowadays only old disk frontends rely on that behaviour so that we only write
the ABI for disk frontends in libxl, minimizing the impact.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxc/xenctrl.h')
-rw-r--r-- | tools/libxc/xenctrl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index 54a2d5aff5..c024af439b 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -672,6 +672,16 @@ int xc_domain_hvm_setcontext(xc_interface *xch, uint32_t size); /** + * This function will return guest IO ABI protocol + * + * @parm xch a handle to an open hypervisor interface + * @parm domid the domain to get IO ABI protocol for + * @return guest protocol on success, NULL on failure + */ +const char *xc_domain_get_native_protocol(xc_interface *xch, + uint32_t domid); + +/** * This function returns information about the execution context of a * particular vcpu of a domain. * |