Re: [PATCH v2 2/2] cpu_ppc64: add support for host-model on POWER10

2022-05-20 Thread Daniel Henrique Barboza
On 5/19/22 04:44, Andrea Bolognani wrote: On Tue, May 17, 2022 at 05:32:56PM -0300, Daniel Henrique Barboza wrote: On 5/12/22 04:52, Andrea Bolognani wrote: Don't forget to add the new test case to qemuxml2xmltest too. It would be great if, as a follow-up, you could look into converting

[PATCH 2/3] testutilsqemu: introduce ARG_CAPS_HOST_CPU_MODEL

2022-05-20 Thread Daniel Henrique Barboza
When loading a latest caps for an arch for the first time the following occurs in testQemuInfoInitArgs(): - the caps file is located. It's not in the cache since it's the first time it's being read; - the cachecaps are retrieved using qemuTestParseCapabilitiesArch() and stored in the capscache; -

[PATCH 3/3] qemuxml2argvtest.c: use CAPS_ARCH_LATEST() with pseries-cpu-compat-power9

2022-05-20 Thread Daniel Henrique Barboza
Use the newly added ARG_CAPS_HOST_CPU_MODEL to set which host CPU we expect the test to use - the test should fail when using a POWER8 host cpu but complete when using a POWER9 host cpu. Two new macros were added because we will be adding similar tests in the near future when adding support for

[PATCH 1/3] qemu_capspriv.h: fix identation

2022-05-20 Thread Daniel Henrique Barboza
Fix identation of virQEMUCapsUpdateHostCPUModel() params. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capspriv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_capspriv.h b/src/qemu/qemu_capspriv.h index f4f4a99d32..26bf2d3571 100644 ---

[PATCH 0/3] qemuxml2argvtest: add ARG_CAPS_HOST_CPU_MODEL

2022-05-20 Thread Daniel Henrique Barboza
Hi, This series attempts to fix a problem I found when converting the "pseries-cpu-compat-power9" to use DO_TEST_CAPS_ARCH_LATEST* macros. More information about the problem per se can be found in patch 02. Patch 03 is where I was able to convert the said test. Patch 01 is a trivial fix I found