target/arm: cpu: alter error message for host CPU type
Make the error message for attempting to use 'host' on an unsupported accelerator match the check we're doing. Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20260314221529.47841-6-mohamed@unpredictable.fr Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Mohamed Mediouni committed
Mar 23, 2026 at 09:51 UTC
80cad8d0bd3758041430dbace3f1db92553b296a
1 file changed
+2
-2
target/arm/cpu.c
+2
-2
@@ -1629,8 +1629,8 @@ static void arm_cpu_realizefn(DeviceState *dev, Error **errp)
1629
* this is the first point where we can report it.
1630
*/
1631
if (cpu->host_cpu_probe_failed) {
1632
- if (!kvm_enabled() && !hvf_enabled()) {
1633
- error_setg(errp, "The 'host' CPU type can only be used with KVM or HVF");
1632
+ if (!kvm_enabled() && !hvf_enabled() && !whpx_enabled()) {
1633
+ error_setg(errp, "The 'host' CPU type can only be used with KVM, HVF or WHPX");
1634
} else {
1635
error_setg(errp, "Failed to retrieve host CPU features");
1636
}