kvm: Fix CR3_PCID_INVD type on 32-bit
authorBorislav Petkov <bp@suse.de>
Thu, 15 Jan 2015 08:44:56 +0000 (09:44 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Jan 2015 14:59:09 +0000 (15:59 +0100)
commitcfaa790a3fb8a7efa98f4a6457e19dc3a0db35d3
tree4224eb3bcdd0f83ef530b155604754813b14d90f
parent54750f2cf042c42b4223d67b1bd20138464bde0e
kvm: Fix CR3_PCID_INVD type on 32-bit

arch/x86/kvm/emulate.c: In function ‘check_cr_write’:
arch/x86/kvm/emulate.c:3552:4: warning: left shift count >= width of type
    rsvd = CR3_L_MODE_RESERVED_BITS & ~CR3_PCID_INVD;

happens because sizeof(UL) on 32-bit is 4 bytes but we shift it 63 bits
to the left.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h