commit | 5037878e2223278aa627162aa0bf106dffac19d4 | [log] [tgz] |
---|---|---|
author | Gleb Natapov <gleb@redhat.com> | Mon Feb 04 16:00:28 2013 +0200 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Wed Feb 06 22:00:02 2013 -0200 |
tree | 34acc92617f0df16ceed4ff8a674184d218227ef | |
parent | b0da5bec30eca7ffbb2c89afa6fe503fd418d3a6 [diff] |
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>