Skip to contentSkip to conversation

usage of libxc compat function fails with staging

DISCUSSION Olaf Hering 1 participant 2 messages Oct 25, 2018 – Oct 26, 2018

lore
Share & tools
lore
#0 lore raw

I have a matrix of various qemu.git#stable-x.y that build against xen.git#staging*. Since some months qemu.git#stable-2.x fails to build against xen.git#staging. qemu-2.10+ works with staging. To me it is not clear how to fix this failure:

qemu-2.9-20170907T112512.4cd42653f5/include/hw/xen/xen_common.h:61:16: warning: implicit declaration of function 'xc_map_foreign_bulk'

qemu is built with the various compat flags like :-DXC_WANT_COMPAT_MAP_FOREIGN_API=1. I think this should give access to that function. But for some reason the missing function is wrapped further in xenctrl_compat.h.

Is qemu-2.x supposed to define XC_BUILDING_COMPAT_MAP_FOREIGN_API? Commit 3248691679 ("tools: Refactor foreign memory mapping into libxenforeignmemory") in xen.git indicates that just XC_WANT_COMPAT_MAP_FOREIGN_API would be needed.

Olaf

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

#1 lore raw

Am Thu, 25 Oct 2018 14:08:08 +0200
schrieb Olaf Hering <[email protected]>:

Quoted 2 lines

qemu-2.9-20170907T112512.4cd42653f5/include/hw/xen/xen_common.h:61:16: warning: implicit declaration of function 'xc_map_foreign_bulk' qemu is built with the various compat flags like :-DXC_WANT_COMPAT_MAP_FOREIGN_API=1. I think this should give access to that function.

This appears to be a bug in Qemu. What is the purpose of commit 5eeb39c24b ("xen: Use stable library interfaces when they are available.")? I do think Qemu can not predict the future of Xen...

Olaf

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