diff options
author | Daniel Gollub <gollub@b1-systems.de> | 2011-06-15 15:27:43 +0200 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-06-15 08:02:47 -0600 |
commit | c4bd6d96f42727568abeeb3253f1764da6c7dc71 (patch) | |
tree | c8ebc53378e484c2e4aec412a0d2312e994a8609 /src/xenapi | |
parent | virsh: reduce complexity in argv iteration (diff) | |
download | libvirt-c4bd6d96f42727568abeeb3253f1764da6c7dc71.tar.gz libvirt-c4bd6d96f42727568abeeb3253f1764da6c7dc71.tar.bz2 libvirt-c4bd6d96f42727568abeeb3253f1764da6c7dc71.zip |
support for Xen HVM Viridian (Hyper-V) enlightenment interface
Introduce libvirt support for Xen HVM Viridian (Hyper-V) enlightenment
interface guest feature.
src/conf/domain_conf.c | 3 ++-
src/conf/domain_conf.h | 1 +
src/xen/xen_hypervisor.c | 11 +++++++++++
src/xenapi/xenapi_driver.c | 2 ++
src/xenapi/xenapi_utils.c | 2 ++
src/xenxs/xen_sxpr.c | 4 ++++
src/xenxs/xen_xm.c | 12 +++++++++++-
7 files changed, 33 insertions(+), 2 deletions(-)
Diffstat (limited to 'src/xenapi')
-rw-r--r-- | src/xenapi/xenapi_driver.c | 2 | ||||
-rw-r--r-- | src/xenapi/xenapi_utils.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c index 3fc35c649..77d17ee96 100644 --- a/src/xenapi/xenapi_driver.c +++ b/src/xenapi/xenapi_driver.c @@ -1430,6 +1430,8 @@ xenapiDomainGetXMLDesc(virDomainPtr dom, int flags ATTRIBUTE_UNUSED) defPtr->features = defPtr->features | (1<<VIR_DOMAIN_FEATURE_PAE); else if (STREQ(result->contents[i].key, "hap")) defPtr->features = defPtr->features | (1<<VIR_DOMAIN_FEATURE_HAP); + else if (STREQ(result->contents[i].key, "viridian")) + defPtr->features = defPtr->features | (1<<VIR_DOMAIN_FEATURE_VIRIDIAN); } } xen_string_string_map_free(result); diff --git a/src/xenapi/xenapi_utils.c b/src/xenapi/xenapi_utils.c index 9362cf11a..342ae5bdb 100644 --- a/src/xenapi/xenapi_utils.c +++ b/src/xenapi/xenapi_utils.c @@ -536,6 +536,8 @@ createVMRecordFromXml (virConnectPtr conn, virDomainDefPtr def, allocStringMap(&strings, (char *)"pae", (char *)"true"); if (def->features & (1 << VIR_DOMAIN_FEATURE_HAP)) allocStringMap(&strings, (char *)"hap", (char *)"true"); + if (def->features & (1 << VIR_DOMAIN_FEATURE_VIRIDIAN)) + allocStringMap(&strings, (char *)"viridian", (char *)"true"); } if (strings != NULL) (*record)->platform = strings; |