* Avi Kivity <[email protected]> wrote:

> > Another option would be to try to set the SMEP bit *before* we 
> > enable paging. In theory this should not confuse a Linux guest - 
> > and while i have not tested it i *think* we let it survive in the 
> > saved_cr4_features shadow variable. That would make guest 
> > suspend/resume work out of box as well.
> 
> Is there any reason not to do it in a hidden way in kvm?  Why must 
> we play tricks?

So do you have a suggestion of how to do this cleaner?

Add an ioctl that allows a VCPU to be configured in a way to set a 
cr4 feature without the guest actually seeing that bit? [Assuming 
both cr4 reads and writes are fully captured by KVM and thus guest 
behavior is controllable.]

Thanks,

        Ingo
--
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