[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/10] mips_malta: Change default KVM cpu to 24Kc (no
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 02/10] mips_malta: Change default KVM cpu to 24Kc (no FP) |
Date: |
Wed, 9 Jul 2014 17:59:29 +0200 |
From: James Hogan <address@hidden>
Change the default Malta CPU model for when KVM is enabled to 24Kc which
doesn't have floating point support compared to the 24Kf.
The resulting incorrect Config CP0 register value doesn't get passed to
KVM yet as KVM doesn't expose it, however we should ensure it is set
correctly now to reduce the risk of breaking migration/loadvm to a
future version of QEMU/Linux that does support them.
Cc: Aurelien Jarno <address@hidden>
Cc: Paolo Bonzini <address@hidden>
Signed-off-by: James Hogan <address@hidden>
Reviewed-by: Aurelien Jarno <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
hw/mips/mips_malta.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c
index 2868ee5..c084199 100644
--- a/hw/mips/mips_malta.c
+++ b/hw/mips/mips_malta.c
@@ -949,7 +949,12 @@ void mips_malta_init(MachineState *machine)
#ifdef TARGET_MIPS64
cpu_model = "20Kc";
#else
- cpu_model = "24Kf";
+ if (kvm_enabled()) {
+ /* Don't enable FPU on KVM yet */
+ cpu_model = "24Kc";
+ } else {
+ cpu_model = "24Kf";
+ }
#endif
}
--
1.8.3.1
- [Qemu-devel] [PULL for-2.1 00/10] KVM changes (+ misc small fixes) for 2.1, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PULL 01/10] mips/kvm: Init EBase to correct KSEG0, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PULL 03/10] mips_malta: Remove incorrect KVM T&E references, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PULL 02/10] mips_malta: Change default KVM cpu to 24Kc (no FP),
Paolo Bonzini <=
- [Qemu-devel] [PULL 04/10] mips_malta: Catch kernels linked at wrong address, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PULL 06/10] Enforce stack protector usage, Paolo Bonzini, 2014/07/09
- Re: [Qemu-devel] [PULL for-2.1 00/10] KVM changes (+ misc small fixes) for 2.1, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PULL 10/10] qtest: fix vhost-user-test compilation with old GLib, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PULL 09/10] mc146818rtc: register the clock reset notifier on the right clock, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PULL 05/10] watchdog: fix deadlock with -watchdog-action pause, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PULL 08/10] oslib-posix: Fix new compiler error with -Wclobbered, Paolo Bonzini, 2014/07/10
- [Qemu-devel] [PULL 07/10] target-i386: Add "kvmclock-stable-bit" feature bit name, Paolo Bonzini, 2014/07/10