Skip to content
Snippets Groups Projects
  1. Aug 12, 2014
  2. Aug 07, 2014
    • James Hogan's avatar
      target-mips: Ignore unassigned accesses with KVM · eddedd54
      James Hogan authored
      
      MIPS registers an unassigned access handler which raises a guest bus
      error exception. However this causes QEMU to crash when KVM is enabled
      as it isn't called from the main execution loop so longjmp() gets called
      without a corresponding setjmp().
      
      Until the KVM API can be updated to trigger a guest exception in
      response to an MMIO exit, prevent the bus error exception being raised
      from mips_cpu_unassigned_access() if KVM is enabled.
      
      The check is at run time since the do_unassigned_access callback is
      initialised before it is known whether KVM will be enabled.
      
      The problem can be triggered with Malta emulation by making the guest
      write to the reset region at physical address 0x1bf00000, since it is
      marked read-only which is treated as unassigned for writes.
      
      Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
      Reviewed-by: default avatarAurelien Jarno <aurelien@aurel32.net>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Gleb Natapov <gleb@redhat.com>
      Cc: Christoffer Dall <christoffer.dall@linaro.org>
      Cc: Sanjay Lal <sanjayl@kymasys.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      eddedd54
  3. Jul 28, 2014
  4. Jul 09, 2014
    • James Hogan's avatar
      mips/kvm: Disable FPU on reset with KVM · 0e928b12
      James Hogan authored
      
      KVM doesn't yet support the MIPS FPU, or writing to the guest's Config1
      register which contains the FPU implemented bit. Clear QEMU's version of
      that bit on reset and display a warning that the FPU has been disabled.
      
      The previous incorrect Config1 CP0 register value wasn't being passed to
      KVM yet, 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 it.
      
      Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      0e928b12
  5. Jul 05, 2014
  6. Jun 20, 2014
  7. Jun 18, 2014
  8. Jun 05, 2014
  9. May 28, 2014
  10. Mar 27, 2014
  11. Mar 25, 2014
  12. Mar 13, 2014
  13. Feb 10, 2014
  14. Dec 21, 2013
  15. Dec 09, 2013
  16. Dec 02, 2013
  17. Oct 10, 2013
Loading