]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/vmx.c
KVM: VMX: cleanup vmx_set_cr0().
authorGleb Natapov <gleb@redhat.com>
Mon, 4 Feb 2013 14:00:28 +0000 (16:00 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 7 Feb 2013 00:00:02 +0000 (22:00 -0200)
commit5037878e2223278aa627162aa0bf106dffac19d4
tree34acc92617f0df16ceed4ff8a674184d218227ef
parentb0da5bec30eca7ffbb2c89afa6fe503fd418d3a6
KVM: VMX: cleanup vmx_set_cr0().

When calculating hw_cr0 teh current code masks bits that should be always
on and re-adds them back immediately after. Cleanup the code by masking
only those bits that should be dropped from hw_cr0. This allow us to
get rid of some defines.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c