1. 17 Apr, 2013 4 commits
  2. 16 Apr, 2013 15 commits
  3. 14 Apr, 2013 8 commits
  4. 11 Apr, 2013 1 commit
    • Kevin Wolf's avatar
      KVM: x86 emulator: Fix segment loading in VM86 · f8da94e9
      Kevin Wolf authored
      This fixes a regression introduced in commit 03ebebeb ("KVM: x86
      emulator: Leave segment limit and attributs alone in real mode").
      
      The mentioned commit changed the segment descriptors for both real mode
      and VM86 to only update the segment base instead of creating a
      completely new descriptor with limit 0xffff so that unreal mode keeps
      working across a segment register reload.
      
      This leads to an invalid segment descriptor in the eyes of VMX, which
      seems to be okay for real mode because KVM will fix it up before the
      next VM entry or emulate the state, but it doesn't do this if the guest
      is in VM86, so we end up with:
      
        KVM: entry failed, hardware error 0x80000021
      
      Fix this by effectively reverting commit 03ebebeb for VM86 and leaving
      it only in place for real mode, which is where it's really needed.
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
      f8da94e9
  5. 08 Apr, 2013 6 commits
  6. 07 Apr, 2013 5 commits
  7. 02 Apr, 2013 1 commit
    • Paolo Bonzini's avatar
      pmu: prepare for migration support · afd80d85
      Paolo Bonzini authored
      In order to migrate the PMU state correctly, we need to restore the
      values of MSR_CORE_PERF_GLOBAL_STATUS (a read-only register) and
      MSR_CORE_PERF_GLOBAL_OVF_CTRL (which has side effects when written).
      We also need to write the full 40-bit value of the performance counter,
      which would only be possible with a v3 architectural PMU's full-width
      counter MSRs.
      
      To distinguish host-initiated writes from the guest's, pass the
      full struct msr_data to kvm_pmu_set_msr.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
      afd80d85