diff options
author | Avi Kivity <avi@redhat.com> | 2010-01-21 14:31:51 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 16:36:05 +0100 |
commit | 8ae099127668de80e4babba73bb492740ce3a1be (patch) | |
tree | 2485d31b421b83edac00161fb32b5ee049655254 /security | |
parent | KVM: Rename vcpu->shadow_efer to efer (diff) | |
download | linux-8ae099127668de80e4babba73bb492740ce3a1be.tar.xz linux-8ae099127668de80e4babba73bb492740ce3a1be.zip |
KVM: Optimize kvm_read_cr[04]_bits()
'mask' is always a constant, so we can check whether it includes a bit that
might be owned by the guest very cheaply, and avoid the decache call. Saves
a few hundred bytes of module text.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions