* [PATCH for-3.6] kvm: fix KVM_GET_MSR for PV EOI
@ 2012-08-26 15:00 Michael S. Tsirkin
2012-08-27 20:47 ` Marcelo Tosatti
0 siblings, 1 reply; 3+ messages in thread
From: Michael S. Tsirkin @ 2012-08-26 15:00 UTC (permalink / raw)
To: kvm; +Cc: Avi Kivity, Marcelo Tosatti, gleb, linux-kernel
KVM_GET_MSR was missing support for PV EOI,
which is needed for migration.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
Please consider this bugfix patch for 3.6.
Thanks!
arch/x86/kvm/x86.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 91a5958..ff5e985 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -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:
--
MST
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH for-3.6] kvm: fix KVM_GET_MSR for PV EOI
2012-08-26 15:00 [PATCH for-3.6] kvm: fix KVM_GET_MSR for PV EOI Michael S. Tsirkin
@ 2012-08-27 20:47 ` Marcelo Tosatti
2012-08-27 21:02 ` Marcelo Tosatti
0 siblings, 1 reply; 3+ messages in thread
From: Marcelo Tosatti @ 2012-08-27 20:47 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: kvm, Avi Kivity, gleb, linux-kernel
On Sun, Aug 26, 2012 at 06:00:29PM +0300, Michael S. Tsirkin wrote:
> KVM_GET_MSR was missing support for PV EOI,
> which is needed for migration.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>
> Please consider this bugfix patch for 3.6.
> Thanks!
>
> arch/x86/kvm/x86.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> index 91a5958..ff5e985 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH for-3.6] kvm: fix KVM_GET_MSR for PV EOI
2012-08-27 20:47 ` Marcelo Tosatti
@ 2012-08-27 21:02 ` Marcelo Tosatti
0 siblings, 0 replies; 3+ messages in thread
From: Marcelo Tosatti @ 2012-08-27 21:02 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: kvm, Avi Kivity, gleb, linux-kernel
On Mon, Aug 27, 2012 at 05:47:42PM -0300, Marcelo Tosatti wrote:
> On Sun, Aug 26, 2012 at 06:00:29PM +0300, Michael S. Tsirkin wrote:
> > KVM_GET_MSR was missing support for PV EOI,
> > which is needed for migration.
> >
> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > ---
> >
> > Please consider this bugfix patch for 3.6.
> > Thanks!
> >
> > arch/x86/kvm/x86.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> > index 91a5958..ff5e985 100644
> > --- a/arch/x86/kvm/x86.c
> > +++ b/arch/x86/kvm/x86.c
> > @@ -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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-27 21:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-26 15:00 [PATCH for-3.6] kvm: fix KVM_GET_MSR for PV EOI Michael S. Tsirkin
2012-08-27 20:47 ` Marcelo Tosatti
2012-08-27 21:02 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).