Qemu baseline requirements/portability?
Hi,
I am writing some code I'm hoping will be able to make it into Qemu, but I can't seem to find what the baseline portability requirements are. I'm specifically wondering about newer POSIX features like openat(), which seems to be used in the 9p filesystem and nowhere else, and what version of glib one can rely on?
Thanks,
-hpa
Quoted 8 lines · H. Peter Anvin
Hi,
I am writing some code I'm hoping will be able to make it into Qemu, but I can't seem to find what the baseline portability requirements are. I'm specifically wondering about newer POSIX features like
openat(), which seems to be used in the 9p filesystem and nowhere else, and what version of glib one can rely on?
Specifically, I'm trying to satisfy a 10-year-old request by me and others to support composite initrd during Linux boot.
-hpa
Quoted 10 lines · H. Peter Anvin
Quoted 8 lines · H. Peter Anvin
Hi,
I am writing some code I'm hoping will be able to make it into Qemu, but I can't seem to find what the baseline portability requirements are. I'm specifically wondering about newer POSIX features like
openat(), which seems to be used in the 9p filesystem and nowhere else, and what version of glib one can rely on?
Quoted 2 lines
Specifically, I'm trying to satisfy a 10-year-old request by me and others to support composite initrd during Linux boot.
Please peruse qemu-doc.texi @appendix Supported build platforms. If it doesn't fully answer your question, ask for clarification here.
Quoted 12 lines · Markus Armbruster
Quoted 10 lines · H. Peter Anvin
Quoted 8 lines · H. Peter Anvin
Hi,
I am writing some code I'm hoping will be able to make it into Qemu, but I can't seem to find what the baseline portability requirements are. I'm specifically wondering about newer POSIX features like
openat(), which seems to be used in the 9p filesystem and nowhere else, and what version of glib one can rely on?
Quoted 5 lines
Quoted 2 lines
Specifically, I'm trying to satisfy a 10-year-old request by me and others to support composite initrd during Linux boot.
Please peruse qemu-doc.texi @appendix Supported build platforms. If it doesn't fully answer your question, ask for clarification here.
And specificially on the glib version question, we currently mandate 2.40.
If you try to use a glib API from a version newer than 2.40 we have things setup so that you should get a fatal compile error due to our use of
#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_40
If you do think it is useful to have an API from glib > 2.40 you can put some back compat logic in include/glib-compat.h so that you can use the newer API and gracefully degrade on older glib.
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|