Re: [PATCH 4/6] qtest/arm-cpu-features: Check KVM availability at runtime

2021-03-12 Thread Paolo Bonzini
On 12/03/21 10:32, Philippe Mathieu-Daudé wrote: On 3/12/21 10:05 AM, Paolo Bonzini wrote: On 12/03/21 00:12, Philippe Mathieu-Daudé wrote: -#define MACHINE_KVM "-machine virt,gic-version=max -accel kvm -accel tcg " +#define MACHINE_KVM "-machine virt,gic-version=max -accel kvm " Wouldn't qte

Re: [PATCH 4/6] qtest/arm-cpu-features: Check KVM availability at runtime

2021-03-12 Thread Philippe Mathieu-Daudé
On 3/12/21 10:05 AM, Paolo Bonzini wrote: > On 12/03/21 00:12, Philippe Mathieu-Daudé wrote: >> -#define MACHINE_KVM "-machine virt,gic-version=max -accel kvm -accel >> tcg " >> +#define MACHINE_KVM "-machine virt,gic-version=max -accel kvm " > > Wouldn't qtest_init simply fail here if KVM is not

Re: [PATCH 4/6] qtest/arm-cpu-features: Check KVM availability at runtime

2021-03-12 Thread Paolo Bonzini
On 12/03/21 00:12, Philippe Mathieu-Daudé wrote: -#define MACHINE_KVM "-machine virt,gic-version=max -accel kvm -accel tcg " +#define MACHINE_KVM "-machine virt,gic-version=max -accel kvm " Wouldn't qtest_init simply fail here if KVM is not available? Paolo

[PATCH 4/6] qtest/arm-cpu-features: Check KVM availability at runtime

2021-03-11 Thread Philippe Mathieu-Daudé
sve_tests_sve_off_kvm() and test_query_cpu_model_expansion_kvm() are KVM specific tests. Skip them if KVM is not built-in. Signed-off-by: Philippe Mathieu-Daudé --- tests/qtest/arm-cpu-features.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/qtest/arm-cpu