New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: use modern qemu numa arguments #17987
Conversation
Which is the first qemu version that added these? Thinking of the CentOS 7 CI, if it's not available there we'll need to do some discovery |
(small world btw :-D ) |
Indeed :-) |
I've outlined those details in the issue #17986 - but I can easily copy them over if it helps.
I'm not sure about differences in the implementation detail, I only checked when that argument was added. |
So as discussed on IRC, the CentOS 7 test has |
Upgrading to qemu 5.2 breaks TEST-36-NUMAPOLICY like: qemu-system-x86_64: total memory for NUMA nodes (0x0) should equal RAM size (0x20000000) Use the new (as in >=2014) form of memdev in test 36: -object memory-backend-ram,id=mem0,size=512M -numa node,memdev=mem0,nodeid=0 Since some target systems are as old as qemu 1.5.3 (CentOS7) but the new kind to specify was added in qemu 2.1 this needs to add version parsing and add the argument only when qemu is >=5.2. Fixes systemd#17986. Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
93dfaa2
to
9bd53aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! it's unfortunate having to do such checks, but not much we can do when interfaces change and we need backward compat.
Thanks a lot for this patch! I noticed this issue just this morning when our Arch Linux CI attempted to upgrade itself and fetched the latest QEMU, so this fix is right on time ;) |
Upgrading to qemu 5.2 breaks TEST-36-NUMAPOLICY like:
qemu-system-x86_64: total memory for NUMA nodes (0x0) should
equal RAM size (0x20000000)
Use the new (as in >=2014) form of memdev in test 36:
-object memory-backend-ram,id=mem0,size=512M -numa node,memdev=mem0,nodeid=0
Fixes #17986.