Skip to contentSkip to conversation

kvm: fix KVM_GET_MSR for PV EOI

PATCH In review Michael S. Tsirkin 2 participants 3 messages Aug 26, 2012 – Aug 27, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: fix KVM_GET_MSR for PV EOI

KVM_GET_MSR was missing support for PV EOI,
which is needed for migration.

---

Please consider this bugfix patch for 3.6.
Thanks!

 arch/x86/kvm/x86.c | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/kvm/x86.c +3 -0
index 91a5958..ff5e985 100644
@@ -1993,6 +1993,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:
Signature · 1 line
MST
#1 lore raw
Quoted 17 lines · Michael S. Tsirkin

KVM_GET_MSR was missing support for PV EOI,
which is needed for migration.

---

Please consider this bugfix patch for 3.6.
Thanks!

 arch/x86/kvm/x86.c | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/kvm/x86.c +0 -0
index 91a5958..ff5e985 100644

arch/x86/kvm/x86.c int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) · line 2001

Quoted 9 lines
arch/x86/kvm/x86.c +3 -0
@@ -1993,6 +1993,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:

Should increase KVM_SAVE_MSRS_BEGIN.

#2 lore raw
Quoted 13 lines · Marcelo Tosatti
Quoted 12 lines · Michael S. Tsirkin

KVM_GET_MSR was missing support for PV EOI,
which is needed for migration.

---

Please consider this bugfix patch for 3.6.
Thanks!

 arch/x86/kvm/x86.c | 3 +++
 1 file changed, 3 insertions(+)
Quoted 16 lines
Quoted 5 lines
arch/x86/kvm/x86.c +0 -0
index 91a5958..ff5e985 100644

arch/x86/kvm/x86.c int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) · line 2001

Quoted 9 lines
arch/x86/kvm/x86.c +3 -0
@@ -1993,6 +1993,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:

Should increase KVM_SAVE_MSRS_BEGIN.

Already done by e115676e042f4d9268, applied.