]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
KVM: x86: fix KVM_GET_MSR for PV EOI
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 26 Aug 2012 15:00:29 +0000 (18:00 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 27 Aug 2012 21:03:05 +0000 (18:03 -0300)
KVM_GET_MSR was missing support for PV EOI,
which is needed for migration.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c

index dce75b7603120ca6d0241180d95efb2f6dd2a2d8..148ed666e311fda2979887d6c9e9a2d440f75ffc 100644 (file)
@@ -2000,6 +2000,9 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
        case MSR_KVM_STEAL_TIME:
                data = vcpu->arch.st.msr_val;
                break;
+       case MSR_KVM_PV_EOI_EN:
+               data = vcpu->arch.pv_eoi.msr_val;
+               break;
        case MSR_IA32_P5_MC_ADDR:
        case MSR_IA32_P5_MC_TYPE:
        case MSR_IA32_MCG_CAP: