1. 12 7月, 2011 3 次提交
    • N
      KVM: VMX: Keep list of loaded VMCSs, instead of vcpus · d462b819
      Nadav Har'El 提交于
      In VMX, before we bring down a CPU we must VMCLEAR all VMCSs loaded on it
      because (at least in theory) the processor might not have written all of its
      content back to memory. Since a patch from June 26, 2008, this is done using
      a per-cpu "vcpus_on_cpu" linked list of vcpus loaded on each CPU.
      
      The problem is that with nested VMX, we no longer have the concept of a
      vcpu being loaded on a cpu: A vcpu has multiple VMCSs (one for L1, a pool for
      L2s), and each of those may be have been last loaded on a different cpu.
      
      So instead of linking the vcpus, we link the VMCSs, using a new structure
      loaded_vmcs. This structure contains the VMCS, and the information pertaining
      to its loading on a specific cpu (namely, the cpu number, and whether it
      was already launched on this cpu once). In nested we will also use the same
      structure to hold L2 VMCSs, and vmx->loaded_vmcs is a pointer to the
      currently active VMCS.
      Signed-off-by: NNadav Har'El <nyh@il.ibm.com>
      Acked-by: NAcked-by: Kevin Tian <kevin.tian@intel.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      d462b819
    • A
      KVM: VMX: always_inline VMREADs · 96304217
      Avi Kivity 提交于
      vmcs_readl() and friends are really short, but gcc thinks they are long because of
      the out-of-line exception handlers.  Mark them always_inline to clear the
      misunderstanding.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      96304217
    • A
      KVM: VMX: Move VMREAD cleanup to exception handler · 5e520e62
      Avi Kivity 提交于
      We clean up a failed VMREAD by clearing the output register.  Do
      it in the exception handler instead of unconditionally.  This is
      worthwhile since there are more than a hundred call sites.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      5e520e62
  2. 20 6月, 2011 1 次提交
  3. 22 5月, 2011 2 次提交
  4. 11 5月, 2011 15 次提交
  5. 18 3月, 2011 12 次提交
  6. 12 1月, 2011 7 次提交