Richard Henderson <[email protected]> writes: > On 1/13/23 06:04, Fabiano Rosas wrote: >> @@ -373,6 +387,11 @@ static void sve_tests_sve_off(const void *data) >> { >> QTestState *qts; >> >> + if (tcg_disabled()) { >> + g_test_skip("TCG support is disabled in this build"); >> + return; >> + } >> + >> qts = qtest_init(MACHINE "-cpu max,sve=off"); >> >> /* SVE is off, so the map should be empty. */ > > This should work with kvm as well. > It should always be ok to turn off an unsupported feature.
This test forces -accel tcg. There's another one that uses -accel kvm: sve_tests_sve_off_kvm
