diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-06-20 12:47:59 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-20 13:51:29 +0200 |
commit | 3c5d0be553b18d47361ac3a701e2bff86b8256b0 (patch) | |
tree | f48a01373a8b515d467de828427e32d444c7565e /hw | |
parent | a31896c411b096dfccee69c338aebb871d4fb80e (diff) | |
download | qemu-3c5d0be553b18d47361ac3a701e2bff86b8256b0.tar.gz qemu-3c5d0be553b18d47361ac3a701e2bff86b8256b0.tar.bz2 qemu-3c5d0be553b18d47361ac3a701e2bff86b8256b0.zip |
hw/mips: malta: Don't boot from flash with KVM T&E
In KVM trap & emulate (T&E) mode the flash reset region at 0xbfc00000
isn't executable, which is why the minimal kernel bootloader is loaded
and executed from the last 1MB of DRAM instead.
Therefore if no kernel is provided on the command line and KVM is
enabled, exit with an error since booting from flash will fail.
Reported-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/mips/mips_malta.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 8bc5392b42..91b0ce5661 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 T&E guest */ + if (kvm_enabled()) { + error_report("KVM enabled but no -kernel argument was specified. " + "Booting from flash is not supported with KVM T&E."); + exit(1); + } /* Load firmware from flash. */ if (!dinfo) { /* Load a BIOS image. */ |