x86/libxc: add an arch domain config parameter to xc_domain_create

With the addition of HVMlite the hypervisor now always requires a non-null
arch domain config, which is different between HVM and PV guests.

Add a new parameter to xc_domain_create that contains a pointer to an arch
domain config. If the pointer is null, create a default arch domain config
based on guest type.

Fix all the in-tree callers to provide a null arch domain config in order to
mimic previous behaviour.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Roger Pau Monne authored and Ian Campbell committed 2015-12-03 15:00:53 +00:00
1 parent 68dc581354
commit 0d0f28455d
6 files changed
+29 -47

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ static PyObject *pyxc_domain_create(XcObject *self,
}
if ( (ret = xc_domain_create(self->xc_handle, ssidref,
handle, flags, &dom)) < 0 )
handle, flags, &dom, NULL)) < 0 )
return pyxc_error_to_exception(self->xc_handle);
if ( target )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.