mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
hw/arm/virt: Make EL3-guest accel check an accept-list
Currently only the TCG and qtest accelerators can handle an EL3 guest. Instead of making the condition check be "fail if KVM or HVF" (an exclude-list), make it a be "allow if TCG or qtest" (an accept-list). This is better for if/when we add new accelerators, as it makes the default be that we forbid an EL3 guest. This is the most likely to be correct and also "fails safe"; if the new accelerator really can support EL3 guests then the implementor will see that they need to add it to the accept-list. Reported-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20250623121845.7214-19-philmd@linaro.org [PMM: rewrote commit message] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
532884658d
commit
1370fd56ec
1 changed files with 1 additions and 1 deletions
|
|
@ -2200,7 +2200,7 @@ static void machvirt_init(MachineState *machine)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (vms->secure && (kvm_enabled() || hvf_enabled())) {
|
||||
if (vms->secure && !tcg_enabled() && !qtest_enabled()) {
|
||||
error_report("mach-virt: %s does not support providing "
|
||||
"Security extensions (TrustZone) to the guest CPU",
|
||||
current_accel_name());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue