1. 22 1月, 2011 4 次提交
  2. 16 11月, 2010 1 次提交
  3. 21 10月, 2010 12 次提交
  4. 29 6月, 2010 4 次提交
  5. 19 6月, 2010 1 次提交
  6. 12 5月, 2010 4 次提交
  7. 26 4月, 2010 2 次提交
  8. 18 4月, 2010 1 次提交
    • B
      kvm: avoid collision with dprintf macro in stdio.h, spotted by clang · 8c0d577e
      Blue Swirl 提交于
      Fixes clang errors:
        CC    i386-softmmu/kvm.o
      /src/qemu/target-i386/kvm.c:40:9: error: 'dprintf' macro redefined
      In file included from /src/qemu/target-i386/kvm.c:21:
      In file included from /src/qemu/qemu-common.h:27:
      In file included from /usr/include/stdio.h:910:
      /usr/include/bits/stdio2.h:189:12: note: previous definition is here
        CC    i386-softmmu/kvm-all.o
      /src/qemu/kvm-all.c:39:9: error: 'dprintf' macro redefined
      In file included from /src/qemu/kvm-all.c:23:
      In file included from /src/qemu/qemu-common.h:27:
      In file included from /usr/include/stdio.h:910:
      /usr/include/bits/stdio2.h:189:12: note: previous definition is here
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      8c0d577e
  9. 13 3月, 2010 1 次提交
  10. 04 3月, 2010 3 次提交
    • J
      KVM: x86: Restrict writeback of VCPU state · ea643051
      Jan Kiszka 提交于
      Do not write nmi_pending, sipi_vector, and mpstate unless we at least go
      through a reset. And TSC as well as KVM wallclocks should only be
      written on full sync, otherwise we risk to drop some time on state
      read-modify-write.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      ea643051
    • J
      KVM: Rework VCPU state writeback API · ea375f9a
      Jan Kiszka 提交于
      This grand cleanup drops all reset and vmsave/load related
      synchronization points in favor of four(!) generic hooks:
      
      - cpu_synchronize_all_states in qemu_savevm_state_complete
        (initial sync from kernel before vmsave)
      - cpu_synchronize_all_post_init in qemu_loadvm_state
        (writeback after vmload)
      - cpu_synchronize_all_post_init in main after machine init
      - cpu_synchronize_all_post_reset in qemu_system_reset
        (writeback after system reset)
      
      These writeback points + the existing one of VCPU exec after
      cpu_synchronize_state map on three levels of writeback:
      
      - KVM_PUT_RUNTIME_STATE (during runtime, other VCPUs continue to run)
      - KVM_PUT_RESET_STATE   (on synchronous system reset, all VCPUs stopped)
      - KVM_PUT_FULL_STATE    (on init or vmload, all VCPUs stopped as well)
      
      This level is passed to the arch-specific VCPU state writing function
      that will decide which concrete substates need to be written. That way,
      no writer of load, save or reset functions that interact with in-kernel
      KVM states will ever have to worry about synchronization again. That
      also means that a lot of reasons for races, segfaults and deadlocks are
      eliminated.
      
      cpu_synchronize_state remains untouched, just as Anthony suggested. We
      continue to need it before reading or writing of VCPU states that are
      also tracked by in-kernel KVM subsystems.
      
      Consequently, this patch removes many cpu_synchronize_state calls that
      are now redundant, just like remaining explicit register syncs.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      ea375f9a
    • J
      KVM: Rework of guest debug state writing · b0b1d690
      Jan Kiszka 提交于
      So far we synchronized any dirty VCPU state back into the kernel before
      updating the guest debug state. This was a tribute to a deficite in x86
      kernels before 2.6.33. But as this is an arch-dependent issue, it is
      better handle in the x86 part of KVM and remove the writeback point for
      generic code. This also avoids overwriting the flushed state later on if
      user space decides to change some more registers before resuming the
      guest.
      
      We furthermore need to reinject guest exceptions via the appropriate
      mechanism. That is KVM_SET_GUEST_DEBUG for older kernels and
      KVM_SET_VCPU_EVENTS for recent ones. Using both mechanisms at the same
      time will cause state corruptions.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      b0b1d690
  11. 01 3月, 2010 1 次提交
  12. 21 2月, 2010 1 次提交
  13. 20 2月, 2010 1 次提交
    • J
      QEMU e820 reservation patch · 4c5b10b7
      Jes Sorensen 提交于
      Hi,
      
      Kevin and I have agreed on the approach for this one now. So here is
      the latest version of the patch for QEMU, submitting e820 reservation
      entries via fw_cfg.
      
      Cheers,
      Jes
      
      Use qemu-cfg to provide the BIOS with an optional table of e820 entries.
      
      Notify the BIOS of the location of the TSS+EPT range to by reserving
      it via the e820 table.
      
      This matches a corresponding patch for Seabios, however older versions
      of Seabios will default to the hardcoded address range and stay
      compatible with current QEMU.
      Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4c5b10b7
  14. 04 2月, 2010 2 次提交
  15. 14 1月, 2010 1 次提交
  16. 11 1月, 2010 1 次提交