1. 30 9月, 2012 2 次提交
  2. 10 9月, 2012 1 次提交
  3. 29 8月, 2012 1 次提交
  4. 09 8月, 2012 4 次提交
  5. 01 8月, 2012 1 次提交
    • I
      target-i386: move cpu halted decision into x86_cpu_reset · dd673288
      Igor Mammedov 提交于
      MP initialization protocol differs between cpu families, and for P6 and
      onward models it is up to CPU to decide if it will be BSP using this
      protocol, so try to model this. However there is no point in implementing
      MP initialization protocol in qemu. Thus first CPU is always marked as BSP.
      
      This patch:
       - moves decision to designate BSP from board into cpu, making cpu
      self-sufficient in this regard. Later it will allow to cleanup hw/pc.c
      and remove cpu_reset and wrappers from there.
       - stores flag that CPU is BSP in IA32_APIC_BASE to model behavior
      described in Inted SDM vol 3a part 1 chapter 8.4.1
       - uses MSR_IA32_APICBASE_BSP flag in apic_base for checking if cpu is BSP
      
      patch is based on Jan Kiszka's proposal:
          http://thread.gmane.org/gmane.comp.emulators.qemu/100806Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      dd673288
  6. 10 7月, 2012 1 次提交
    • J
      apic: Defer interrupt updates to VCPU thread · 5d62c43a
      Jan Kiszka 提交于
      KVM performs TPR raising asynchronously to QEMU, specifically outside
      QEMU's global lock. When an interrupt is injected into the APIC and TPR
      is checked to decide if this can be delivered, a stale TPR value may be
      used, causing spurious interrupts in the end.
      
      Fix this by deferring apic_update_irq to the context of the target VCPU.
      We introduce a new interrupt flag for this, CPU_INTERRUPT_POLL. When it
      is set, the VCPU calls apic_poll_irq before checking for further pending
      interrupts. To avoid special-casing KVM, we also implement this logic
      for TCG mode.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      5d62c43a
  7. 04 7月, 2012 1 次提交
  8. 05 6月, 2012 1 次提交
  9. 15 3月, 2012 1 次提交
  10. 07 3月, 2012 1 次提交
  11. 18 2月, 2012 1 次提交
    • J
      target-i386: Add infrastructure for reporting TPR MMIO accesses · d362e757
      Jan Kiszka 提交于
      This will allow the APIC core to file a TPR access report. Depending on
      the accelerator and kernel irqchip mode, it will either be delivered
      right away or queued for later reporting.
      
      In TCG mode, we can restart the triggering instruction and can therefore
      forward the event directly. KVM does not allows us to restart, so we
      postpone the delivery of events recording in the user space APIC until
      the current instruction is completed.
      
      Note that KVM without in-kernel irqchip will report the address after
      the instruction that triggered the access.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      d362e757
  12. 17 2月, 2012 1 次提交
  13. 09 2月, 2012 2 次提交
  14. 19 1月, 2012 3 次提交
  15. 23 12月, 2011 3 次提交
  16. 20 12月, 2011 1 次提交
  17. 17 11月, 2011 1 次提交
  18. 25 10月, 2011 3 次提交
  19. 04 10月, 2011 1 次提交
  20. 16 9月, 2011 2 次提交
  21. 10 9月, 2011 1 次提交
    • B
      kvm: remove unnecessary assignments · 6115c0a8
      Blue Swirl 提交于
      Avoid these warnings from clang analyzer:
      /src/qemu/target-i386/kvm.c:772:5: warning: Value stored to 'cwd' is never read
          cwd = swd = twd = 0;
      /src/qemu/target-i386/kvm.c:772:11: warning: Although the value stored to 'swd' is used in the enclosing expression, the value is never actually read from 'swd'
          cwd = swd = twd = 0;
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      6115c0a8
  22. 03 9月, 2011 1 次提交
    • S
      Use new macro QEMU_PACKED for packed structures · 541dc0d4
      Stefan Weil 提交于
      Most changes were made using these commands:
      
      git grep -la '__attribute__((packed))'|xargs perl -pi -e 's/__attribute__\(\(packed\)\)/QEMU_PACKED/'
      git grep -la '__attribute__ ((packed))'|xargs perl -pi -e 's/__attribute__ \(\(packed\)\)/QEMU_PACKED/'
      git grep -la '__attribute__((__packed__))'|xargs perl -pi -e 's/__attribute__\(\(__packed__\)\)/QEMU_PACKED/'
      git grep -la '__attribute__ ((__packed__))'|xargs perl -pi -e 's/__attribute__ \(\(__packed__\)\)/QEMU_PACKED/'
      git grep -la '__attribute((packed))'|xargs perl -pi -e 's/__attribute\(\(packed\)\)/QEMU_PACKED/'
      
      Whitespace in linux-user/syscall_defs.h was fixed manually
      to avoid warnings from scripts/checkpatch.pl.
      
      Manual changes were also applied to hw/pc.c.
      
      I did not fix indentation with tabs in block/vvfat.c.
      The patch will show 4 errors with scripts/checkpatch.pl.
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      541dc0d4
  23. 25 8月, 2011 1 次提交
  24. 21 8月, 2011 1 次提交
  25. 05 8月, 2011 2 次提交
  26. 21 6月, 2011 2 次提交