1. 20 7月, 2008 5 次提交
    • A
      KVM: Remove unnecessary ->decache_regs() call · 50d40d7f
      Avi Kivity 提交于
      Since we aren't modifying any register, there's no need to decache
      the register state.
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      50d40d7f
    • A
      KVM: Remove decache_vcpus_on_cpu() and related callbacks · 7cc88830
      Avi Kivity 提交于
      Obsoleted by the vmx-specific per-cpu list.
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      7cc88830
    • A
      KVM: VMX: Add list of potentially locally cached vcpus · 543e4243
      Avi Kivity 提交于
      VMX hardware can cache the contents of a vcpu's vmcs.  This cache needs
      to be flushed when migrating a vcpu to another cpu, or (which is the case
      that interests us here) when disabling hardware virtualization on a cpu.
      
      The current implementation of decaching iterates over the list of all vcpus,
      picks the ones that are potentially cached on the cpu that is being offlined,
      and flushes the cache.  The problem is that it uses mutex_trylock() to gain
      exclusive access to the vcpu, which fires off a (benign) warning about using
      the mutex in an interrupt context.
      
      To avoid this, and to make things generally nicer, add a new per-cpu list
      of potentially cached vcus.  This makes the decaching code much simpler.  The
      list is vmx-specific since other hardware doesn't have this issue.
      
      [andrea: fix crash on suspend/resume]
      Signed-off-by: NAndrea Arcangeli <andrea@qumranet.com>
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      543e4243
    • J
      KVM: add missing kvmtrace bits · 54e445ca
      Joerg Roedel 提交于
      This patch adds some kvmtrace bits to the generic x86 code
      where it is instrumented from SVM.
      Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      54e445ca
    • H
      KVM: add statics were possible, function definition in lapic.h · 8b2cf73c
      Harvey Harrison 提交于
      Noticed by sparse:
      arch/x86/kvm/vmx.c:1583:6: warning: symbol 'vmx_disable_intercept_for_msr' was not declared. Should it be static?
      arch/x86/kvm/x86.c:3406:5: warning: symbol 'kvm_task_switch_16' was not declared. Should it be static?
      arch/x86/kvm/x86.c:3429:5: warning: symbol 'kvm_task_switch_32' was not declared. Should it be static?
      arch/x86/kvm/mmu.c:1968:6: warning: symbol 'kvm_mmu_remove_one_alloc_mmu_page' was not declared. Should it be static?
      arch/x86/kvm/mmu.c:2014:6: warning: symbol 'mmu_destroy_caches' was not declared. Should it be static?
      arch/x86/kvm/lapic.c:862:5: warning: symbol 'kvm_lapic_get_base' was not declared. Should it be static?
      arch/x86/kvm/i8254.c:94:5: warning: symbol 'pit_get_gate' was not declared. Should it be static?
      arch/x86/kvm/i8254.c:196:5: warning: symbol '__pit_timer_fn' was not declared. Should it be static?
      arch/x86/kvm/i8254.c:561:6: warning: symbol '__inject_pit_timer_intr' was not declared. Should it be static?
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      8b2cf73c
  2. 26 6月, 2008 1 次提交
  3. 25 6月, 2008 1 次提交
  4. 24 6月, 2008 2 次提交
  5. 07 6月, 2008 1 次提交
  6. 04 5月, 2008 5 次提交
  7. 27 4月, 2008 25 次提交