Skip to contentSkip to conversation

Don't launch guest if -no-kvm when tcg is not configured in

PATCH New Avi Kivity 1 participant 1 message Sep 12, 2010 KVM

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 Don't launch guest if -no-kvm when tcg is not configured in

---
 vl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
vl.c +4 -0
index 2a32cc5..22a3616 100644
@@ -2473,6 +2473,10 @@ int main(int argc, char **argv, char **envp)
                 break;
 	    case QEMU_OPTION_no_kvm:
 		kvm_allowed = 0;
+#ifdef CONFIG_NO_CPU_EMULATION
+                fprintf(stderr, "cpu emulation not configured\n");
+                exit(1);
+#endif
 		break;
 #ifdef CONFIG_KVM
 	    case QEMU_OPTION_no_kvm_irqchip: {
Signature · 1 line
1.7.1