Message ID | 1403272115-10921-1-git-send-email-james.hogan@imgtec.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 8bc5392b4223..a54ed65a6b73 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @@ -1052,6 +1052,12 @@ void mips_malta_init(MachineState *machine) bootloader_run_addr, kernel_entry); } } else { + /* The flash region isn't executable from a KVM guest */ + if (kvm_enabled()) { + error_report("KVM enabled but no -kernel argument was specified. " + "Booting from flash is not supported with KVM."); + exit(1); + } /* Load firmware from flash. */ if (!dinfo) { /* Load a BIOS image. */