qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/arm: Catch invalid kvm state also for hvf


From: Richard Henderson
Subject: Re: [PATCH] target/arm: Catch invalid kvm state also for hvf
Date: Mon, 20 Jun 2022 10:09:06 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 6/20/22 09:08, Alexander Graf wrote:
-    if (kvm_enabled()) {
+    if (kvm_enabled() || hvf_enabled()) {

I think this should be !tcg_enabled(). No hw virtualization can use EL3 (or M-profile), only full emulation from TCG. There is such a thing as ARM on Windows, so I can imagine that WHPX may make a future appearance here.

(MTE may eventually be supported by virtualization, but it's not there yet.)


         if (arm_feature(env, ARM_FEATURE_M)) {
             error_setg(errp,
-                       "Cannot enable KVM when using an M-profile guest CPU");
+                       "Cannot enable KVM or HVF when using an M-profile guest 
CPU");
             return;
         }

You can get the accelerator name from

    AccelClass *ac = ACCEL_GET_CLASS(current_accel());
    const char *name = ac->name;


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]