KVM: VMX: Make guest cr4 mask more conservative
authorAvi Kivity <avi@redhat.com>
Mon, 7 Dec 2009 10:26:18 +0000 (12:26 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:39 +0000 (12:35 -0300)
commit4c38609ac569483152f9cb7e5a66f17355e563b2
tree05430a07dfb5ee7e6676e16bd13a480c8ba92eb9
parentfc78f51938e1ea866daa2045851b2e5681371668
KVM: VMX: Make guest cr4 mask more conservative

Instead of specifying the bits which we want to trap on, specify the bits
which we allow the guest to change transparently.  This is safer wrt future
changes to cr4.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c