From: Randy Dunlap Date: Thu, 21 Apr 2011 16:09:22 +0000 (-0700) Subject: KVM: x86 emulator: fix const value warning on i386 in svm insn RAX check X-Git-Tag: MMI-PSA29.97-13-9~19664^2~40 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d42244499f171a499aa6748bc52304bb40e68ecc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index ccb8b383beab..77a5f54f151f 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -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);