1. 14 5月, 2018 1 次提交
    • D
      s390x: refactor reset/reipl handling · a30fb811
      David Hildenbrand 提交于
      Calling pause_all_vcpus()/resume_all_vcpus() from a VCPU thread might
      not be the best idea. As pause_all_vcpus() temporarily drops the qemu
      mutex, two parallel calls to pause_all_vcpus() can be active at a time,
      resulting in a deadlock. (either by two VCPUs or by the main thread and a
      VCPU)
      
      Let's handle it via the main loop instead, as suggested by Paolo. If we
      would have two parallel reset requests by two different VCPUs at the
      same time, the last one would win.
      
      We use the existing ipl device to handle it. The nice side effect is
      that we can get rid of reipl_requested.
      
      This change implies that all reset handling now goes via the common
      path, so "no-reboot" handling is now active for all kinds of reboots.
      
      Let's execute any CPU initialization code on the target CPU using
      run_on_cpu.
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20180424101859.10239-1-david@redhat.com>
      Acked-by: NThomas Huth <thuth@redhat.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      a30fb811
  2. 09 2月, 2018 1 次提交
  3. 25 1月, 2018 1 次提交
    • L
      accel/tcg: add size paremeter in tlb_fill() · 98670d47
      Laurent Vivier 提交于
      The MC68040 MMU provides the size of the access that
      triggers the page fault.
      
      This size is set in the Special Status Word which
      is written in the stack frame of the access fault
      exception.
      
      So we need the size in m68k_cpu_unassigned_access() and
      m68k_cpu_handle_mmu_fault().
      
      To be able to do that, this patch modifies the prototype of
      handle_mmu_fault handler, tlb_fill() and probe_write().
      do_unassigned_access() already includes a size parameter.
      
      This patch also updates handle_mmu_fault handlers and
      tlb_fill() of all targets (only parameter, no code change).
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Reviewed-by: NDavid Hildenbrand <david@redhat.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20180118193846.24953-2-laurent@vivier.eu>
      98670d47
  4. 15 12月, 2017 5 次提交
  5. 20 10月, 2017 11 次提交
  6. 06 10月, 2017 2 次提交
  7. 20 9月, 2017 1 次提交
  8. 31 8月, 2017 1 次提交