mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
KVM: x86 emulator: fix const value warning on i386 in svm insn RAX check
arch/x86/kvm/emulate.c:2598: warning: integer constant is too large for 'long' type Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
cfb223753c
commit
d42244499f
@ -2738,7 +2738,7 @@ static int check_svme_pa(struct x86_emulate_ctxt *ctxt)
|
||||
u64 rax = ctxt->decode.regs[VCPU_REGS_RAX];
|
||||
|
||||
/* Valid physical address? */
|
||||
if (rax & 0xffff000000000000)
|
||||
if (rax & 0xffff000000000000ULL)
|
||||
return emulate_gp(ctxt, 0);
|
||||
|
||||
return check_svme(ctxt);
|
||||
|
Loading…
Reference in New Issue
Block a user