Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
qemu-testsuite.18974
0044-xen-Add-xen-v4.12-based-xc_domain_c.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0044-xen-Add-xen-v4.12-based-xc_domain_c.patch of Package qemu-testsuite.18974
From: Bruce Rogers <brogers@suse.com> Date: Thu, 17 Jan 2019 14:40:10 -0700 Subject: xen: Add xen v4.12 based xc_domain_create call In xen v4.12, the xc_domain_create call parameters changed. Signed-off-by: Bruce Rogers <brogers@suse.com> --- include/hw/xen/xen_common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/hw/xen/xen_common.h b/include/hw/xen/xen_common.h index 93f631e5bf0ee5b64fbd980c433b..42b088ae90f5478d2c893081a77f 100644 --- a/include/hw/xen/xen_common.h +++ b/include/hw/xen/xen_common.h @@ -674,7 +674,15 @@ static inline int xen_domain_create(xc_interface *xc, uint32_t ssidref, xen_domain_handle_t handle, uint32_t flags, uint32_t *pdomid) { +#if CONFIG_XEN_CTRL_INTERFACE_VERSION < 41200 return xc_domain_create(xc, ssidref, handle, flags, pdomid, NULL); +#else + struct xen_domctl_createdomain create; + create.ssidref = ssidref; + memcpy(&(create.handle), handle, sizeof(xen_domain_handle_t)); + create.flags = flags; + return xc_domain_create(xc, pdomid, &create); +#endif } #endif #endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor