aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-12-26 14:40:59 -0600
committerRadim Krčmář <rkrcmar@redhat.com>2019-01-11 18:38:07 +0100
commitd14eff1bc53e6a268c3b48da5cdb469f26832d1a (patch)
treec9375676eea85660a468998c6d17210922d91282 /virt/kvm/kvm_main.c
parentLinux 5.0-rc1 (diff)
downloadlinux-dev-d14eff1bc53e6a268c3b48da5cdb469f26832d1a.tar.xz
linux-dev-d14eff1bc53e6a268c3b48da5cdb469f26832d1a.zip
KVM: x86: Fix bit shifting in update_intel_pt_cfg
ctl_bitmask in pt_desc is of type u64. When an integer like 0xf is being left shifted more than 32 bits, the behavior is undefined. Fix this by adding suffix ULL to integer 0xf. Addresses-Coverity-ID: 1476095 ("Bad bit shift operation") Fixes: 6c0f0bba85a0 ("KVM: x86: Introduce a function to initialize the PT configuration") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Wei Yang <richardw.yang@linux.intel.com> Reviewed-by: Luwei Kang <luwei.kang@intel.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions