On 27/07/2015 19:51, Andy Lutomirski wrote:
> > > I think I'm missing something.  Does KVM_GUEST hook read_msr and
> > > write_msr?  I don't see it.
> >
> > PARAVIRT does, and it's the main reason why you'd want PARAVIRT for a
> > KVM guest.
>
> Still confused.  On a KVM guest (with PARAVIRT=y), doesn't read_msr do
> exactly the same thing it does on native, albeit with more indirection
> and patching involved?

With PARAVIRT=y it never #GPs:

        .read_msr = native_read_msr_safe,
        .write_msr = native_write_msr_safe,

I don't remember if it's this way on bare-metal too.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to