1. 10 7月, 2014 5 次提交
    • M
      Enforce stack protector usage · 3b463a3f
      Miroslav Rezanina 提交于
      If --enable-stack-protector is used is used, configure script try to use
      --fstack-protector-strong. In case it's not supported, --fstack-protector-all
      is enabled. If both protectors are not supported, configure does not use
      any protector at all without any notification.
      
      This patch reports error when user requests stack protector to be used and
      both protector modes are not supported. Behavior is not changed in case
      user do not use any of --enable-stack-protector/--disable-stack-protector.
      Signed-off-by: NMiroslav Rezanina <mrezanin@redhat.com>
      [Fix non-POSIX operator in test. - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      3b463a3f
    • P
      watchdog: fix deadlock with -watchdog-action pause · 30e5210a
      Paolo Bonzini 提交于
      qemu_clock_enable says:
      
      /* Disabling the clock will wait for related timerlists to stop
       * executing qemu_run_timers.  Thus, this functions should not
       * be used from the callback of a timer that is based on @clock.
       * Doing so would cause a deadlock.
       */
      
      and it indeed does: vm_stop uses qemu_clock_enable on QEMU_CLOCK_VIRTUAL
      and watchdogs are based on QEMU_CLOCK_VIRTUAL, and we get a deadlock.
      
      Use qemu_system_vmstop_request_prepare()/qemu_system_vmstop_request()
      instead; yet another alternative could be a BH.
      
      I checked other occurrences of vm_stop and they should not have this
      problem.  RUN_STATE_IO_ERROR could in principle (it depends on the
      code in the drivers) but it has been fixed by commit 2bd3bce8, "block:
      asynchronously stop the VM on I/O errors", 2014-06-05.
      Tested-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      30e5210a
    • J
      mips_malta: Catch kernels linked at wrong address · f7f15245
      James Hogan 提交于
      Add error reporting if the wrong type of kernel is provided for the
      current mode of acceleration.
      
      Currently a KVM kernel linked at 0x40000000 can't be used with TCG, and
      a normal kernel linked at 0x80000000 can't be used with KVM.
      
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Reviewed-by: NAurelien Jarno <aurelien@aurel32.net>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      f7f15245
    • J
      mips_malta: Remove incorrect KVM T&E references · fbdb1d95
      James Hogan 提交于
      Fix the error message and code comments relating to KVM not supporting
      booting from the flash mapping when no kernel is provided. The issue is
      a general MIPS KVM issue and isn't specific to the Trap & Emulate
      version of MIPS KVM.
      
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Reported-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Reviewed-by: NAurelien Jarno <aurelien@aurel32.net>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      fbdb1d95
    • J
      mips/kvm: Disable FPU on reset with KVM · 0e928b12
      James Hogan 提交于
      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: NJames Hogan <james.hogan@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0e928b12
  2. 05 7月, 2014 1 次提交
  3. 03 7月, 2014 1 次提交
  4. 02 7月, 2014 2 次提交
  5. 01 7月, 2014 31 次提交