1. 26 1月, 2015 3 次提交
    • E
      target-i386: Disable HLE and RTM on Haswell & Broadwell · 13704e4c
      Eduardo Habkost 提交于
      All Haswell CPUs and some Broadwell CPUs were updated by Intel to have
      the HLE and RTM features disabled. This will prevent
      "-cpu Haswell,enforce" and "-cpu Broadwell,enforce" from running out of
      the box on those CPUs.
      
      Disable those features by default on Broadwell and Haswell CPU models,
      starting on pc-*-2.3. Users who want to use those features can enable
      them explicitly on the command-line.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      13704e4c
    • P
      target-i386: make xmm_regs 512-bit wide · b7711471
      Paolo Bonzini 提交于
      Right now, the AVX512 registers are split in many different fields:
      xmm_regs for the low 128 bits of the first 16 registers, ymmh_regs
      for the next 128 bits of the same first 16 registers, zmmh_regs
      for the next 256 bits of the same first 16 registers, and finally
      hi16_zmm_regs for the full 512 bits of the second 16 bit registers.
      
      This makes it simple to move data in and out of the xsave region,
      but would be a nightmare for a hypothetical TCG implementation and
      leads to a proliferation of [XYZ]MM_[BWLSQD] macros.  Instead,
      this patch marshals data manually from the xsave region to a single
      32x512-bit array, simplifying the macro jungle and clarifying which
      bits are in which vmstate subsection.
      
      The migration format is unaffected.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      b7711471
    • P
      target-i386: use vmstate_offset_sub_array for AVX registers · a03c3e90
      Paolo Bonzini 提交于
      After the next patch, each vmstate field will extract parts of a larger
      (32x512-bit) array, so we cannot check the vmstate field against the
      type of the array.
      
      While changing this, change the macros to accept the index of the first
      element (which will not be 0 for Hi16_ZMM_REGS) instead of the number
      of elements (which is always CPU_NB_REGS).
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      a03c3e90
  2. 20 1月, 2015 2 次提交
  3. 14 1月, 2015 2 次提交
  4. 12 1月, 2015 1 次提交
  5. 03 1月, 2015 2 次提交
  6. 17 12月, 2014 1 次提交
    • A
      qemu-log: add log category for MMU info · 339aaf5b
      Antony Pavlov 提交于
      Running barebox on qemu-system-mips* with '-d unimp' overloads
      stderr by very very many mips_cpu_handle_mmu_fault() messages:
      
        mips_cpu_handle_mmu_fault address=b80003fd ret 0 physical 00000000180003fd prot 3
        mips_cpu_handle_mmu_fault address=a0800884 ret 0 physical 0000000000800884 prot 3
        mips_cpu_handle_mmu_fault pc a080cd80 ad b80003fd rw 0 mmu_idx 0
      
      So it's very difficult to find LOG_UNIMP message.
      
      The mips_cpu_handle_mmu_fault() messages appear on enabling ANY
      logging! It's not very handy.
      
      Adding separate log category for *_cpu_handle_mmu_fault()
      logging fixes the problem.
      Signed-off-by: NAntony Pavlov <antonynpavlov@gmail.com>
      Acked-by: NAlexander Graf <agraf@suse.de>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Message-id: 1418489298-1184-1-git-send-email-antonynpavlov@gmail.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      339aaf5b
  7. 15 12月, 2014 18 次提交
  8. 24 11月, 2014 1 次提交
    • P
      apic: avoid getting out of halted state on masked PIC interrupts · 60e68042
      Paolo Bonzini 提交于
      After the next patch, if a masked PIC interrupts causes CPU_INTERRUPT_POLL
      to be set, the CPU will spuriously get out of halted state.  While this
      is technically valid, we should avoid that.
      
      Make CPU_INTERRUPT_POLL run apic_update_irq in the right thread and then
      look at CPU_INTERRUPT_HARD.  If CPU_INTERRUPT_HARD does not get set,
      do not report the CPU as having work.
      
      Also move the handling of software-disabled APIC from apic_update_irq
      to apic_irq_pending, and always trigger CPU_INTERRUPT_POLL.  This will
      be important once we will add a case that resets CPU_INTERRUPT_HARD
      from apic_update_irq.  We want to run it even if we go through
      CPU_INTERRUPT_POLL, and even if the local APIC is software disabled.
      Reported-by: NRichard Bilson <rbilson@qnx.com>
      Tested-by: NRichard Bilson <rbilson@qnx.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      60e68042
  9. 13 11月, 2014 1 次提交
  10. 12 11月, 2014 1 次提交
  11. 11 11月, 2014 1 次提交
  12. 04 11月, 2014 5 次提交
  13. 02 11月, 2014 1 次提交
  14. 31 10月, 2014 1 次提交