Ian Jackson
2008-Feb-06 17:27 UTC
[Xen-devel] [PATCH] ioemu: avoid name clashes due to LIST_* macros
This patch was submitted upstream to qemu but has not yet been accepted or rejected there. This change ought probably to be made to xen-unstable now to help support stub domains. Here is what I wrote in my submission to qemu upstream: qemu''s audio subdirectory contains a copy of BSD''s sys-queue.h, which defines a bunch of LIST_ macros. This makes it difficult to build a program made partly out of qemu and partly out of the Linux kernel[1], since Linux has a different set of LIST_ macros. It might also cause trouble when mixing with BSD-derived code. Under the circumstances it''s probably best to rename the versions in qemu. The attached patch does this. [1] You might well ask why anyone would want to do this. In Xen we are moving our emulation of IO devices from processes which run on the host into a dedicated VM (one per actual VM) which we call a `stub domain''. This dedicated VM runs a very cut-down `operating system'' which uses some code from Linux. The patch should be applied with cd tools/ioemu/ patch -p0 <.../qemu-audio-sys-queue-list-rename.patch Ian. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel