
On Thu, Oct 30, 2014 at 06:21:28PM +0100, Michal Privoznik wrote:
On 30.10.2014 07:40, Martin Kletzander wrote:
Particularly in qemuBuildNumaArgStr(), there was a need for the advice due to memory backing, which needs to know the nodeset it will be pinned to. With newer qemu this caused the following error when starting domain:
error: internal error: Advice from numad is needed in case of automatic numa placement
even when starting perfectly valid domain, e.g.:
... <vcpu placement='auto'>4</vcpu> <numatune> <memory mode='strict' placement='auto'/> </numatune> <cpu> <numa> <cell id='0' cpus='0' memory='524288'/> <cell id='1' cpus='1' memory='524288'/> </numa> </cpu> ...
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1138545
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Would it be possible to add a test case? Maybe you'd need to mock some functions but we already have qemuxml2argvmock.c. Otherwise the code looks okay and with test case I'd ACK it for the freeze.
Well, I can add a xm2argv test that formats -object memory-ram with some nodeset, but given that the nodeset needs to be passed as a parameter of the function that gets called in the test itself, it doesn't make much of a sense, does it. No need to have it in the release, I'd push it after release anyway, so thanks for the review. Martin