Re: [PATCH 03/13] KVM: PPC: booke: use shadow_msr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 19 May 2011 12:05:57 +0200
Alexander Graf <agraf@xxxxxxx> wrote:

> On 05/18/2011 01:40 AM, Scott Wood wrote:
> > BKeep the guest MSR and the guest-mode true MSR separate, rather than
> 
> Bkeep?

Doh.

> > diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
> > index 8462b3a..9810010 100644
> > --- a/arch/powerpc/kvm/booke.c
> > +++ b/arch/powerpc/kvm/booke.c
> > @@ -514,6 +514,8 @@ int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu)
> >
> >   	vcpu->arch.pc = 0;
> >   	vcpu->arch.shared->msr = 0;
> > +	vcpu->arch.shadow_msr = MSR_CE | MSR_EE | MSR_PR | MSR_DE |
> > +				MSR_ME | MSR_IS | MSR_DS;
> 
> Is there no define for this? Book3S has MSR_USER for it.

I suppose we could do MSR_USER | MSR_IS | MSR_DS.  It obfuscates a bit what
is being set in a KVM guest, though OTOH I left out MSR_RI. :-P

-Scott

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux