Skip to contentSkip to conversation

incompatible changes in staging break qemu

DISCUSSION Olaf Hering 4 participants 5 messages Aug 27, 2018 – Sep 4, 2018

lore
Share & tools
lore
#0 lore raw

Since about two weeks, no released qemu can be built against xen.git#staging. The error looks like that:

qemu-20180825T130857.235c82acca/include/hw/xen/xen_common.h:677:5: error: too many arguments to function 'xc_domain_create'

It looks like staging lacks proper compat wrappers for released qemu versions.

Olaf

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#1 lore raw
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 27.08.18 at 08:43, <[email protected]> wrote:

Since about two weeks, no released qemu can be built against xen.git#staging. The error looks like that:

qemu-20180825T130857.235c82acca/include/hw/xen/xen_common.h:677:5: error: too many arguments to function 'xc_domain_create'

It looks like staging lacks proper compat wrappers for released qemu versions.

I think it's the other way around - qemu needs such wrappers added (which of course for released versions of qemu means they'd need backporting of such an addition). After all the libxc interface, other than the libxl one, is not stable iirc. However - is the code controlled by CONFIG_XEN_PV_DOMAIN_BUILD actually used by anyone? So far I was under the impression that it's the core tool stack's job to create domains, no qemu's.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
In reply to Olaf Hering
Quoted 3 lines · Olaf Hering

Since about two weeks, no released qemu can be built against xen.git#staging. The error looks like that:
qemu-20180825T130857.235c82acca/include/hw/xen/xen_common.h:677:5: error: too many arguments to function 'xc_domain_create' It looks like staging lacks proper compat wrappers for released qemu versions.

Passing --disable-xen-pv-domain-build instead of --enable-xen-pv-domain-build to configure fixes/hides the build error.

What is "xen-pv-domain-build" supposed to do?

Olaf

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 10 lines · Olaf Hering
Quoted 3 lines · Olaf Hering

Since about two weeks, no released qemu can be built against xen.git#staging. The error looks like that:
qemu-20180825T130857.235c82acca/include/hw/xen/xen_common.h:677:5: error: too many arguments to function 'xc_domain_create' It looks like staging lacks proper compat wrappers for released qemu versions.

Passing --disable-xen-pv-domain-build instead of --enable-xen-pv-domain-build to configure fixes/hides the build error.

What is "xen-pv-domain-build" supposed to do?

It suppose to let QEMU create a Xen domain all by itself, without using any toolstack. Nickname: xenner.

But that code probably doesn't work anymore.

Signature · 6 lines
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#4 lore raw
Quoted 6 lines · Anthony PERARD
Quoted 5 lines · Olaf Hering
Quoted 3 lines · Olaf Hering

Since about two weeks, no released qemu can be built against xen.git#staging. The error looks like that:
qemu-20180825T130857.235c82acca/include/hw/xen/xen_common.h:677:5: error: too many arguments to function 'xc_domain_create' It looks like staging lacks proper compat wrappers for released qemu versions.

Quoted 8 lines
Quoted 4 lines

Passing --disable-xen-pv-domain-build instead of --enable-xen-pv-domain-build to configure fixes/hides the build error.

What is "xen-pv-domain-build" supposed to do?

It suppose to let QEMU create a Xen domain all by itself, without using any toolstack. Nickname: xenner.

But that code probably doesn't work anymore.

Having a quick look over the code, its been completely broken since Xen 4.9 (it never called gnttab_set_limits()), and appears to only function for PV guests (by use of the xc_linux_build() call), and clearly noone has noticed/cared.

If I were you, I'd purge it completely from qemu.  You don't want to be playing "keep up with all the changes going into xc_domain_create()", given how tightly coupled it is to other low level libxc functionality.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel