summaryrefslogtreecommitdiff
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2011-04-21 16:09:22 (GMT)
committerAvi Kivity <avi@redhat.com>2011-05-22 12:39:30 (GMT)
commitd42244499f171a499aa6748bc52304bb40e68ecc (patch)
treea28bf45aa0a5bca51c454c4f629dbf1c2c36eef5 /arch/x86/kvm
parentcfb223753c3750b28103136ad4d51d1a3ae4d64b (diff)
downloadlinux-d42244499f171a499aa6748bc52304bb40e68ecc.tar.xz
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>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/emulate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index ccb8b38..77a5f54 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);