We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f1a6c5 commit 32392e0Copy full SHA for 32392e0
arch/arm64/kvm/arm.c
@@ -2290,6 +2290,19 @@ static int __init init_subsystems(void)
2290
break;
2291
case -ENODEV:
2292
case -ENXIO:
2293
+ /*
2294
+ * No VGIC? No pKVM for you.
2295
+ *
2296
+ * Protected mode assumes that VGICv3 is present, so no point
2297
+ * in trying to hobble along if vgic initialization fails.
2298
+ */
2299
+ if (is_protected_kvm_enabled())
2300
+ goto out;
2301
+
2302
2303
+ * Otherwise, userspace could choose to implement a GIC for its
2304
+ * guest on non-cooperative hardware.
2305
2306
vgic_present = false;
2307
err = 0;
2308
0 commit comments