From 0b1f21589b439d15b3fa15b99e485b861e8fe332 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 26 May 2010 09:11:17 +0200 Subject: [PATCH] KVM: SVM: Fix erratum 383 check for 32-bit hosts This overflow causes an annoying warning. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- arch/x86/kvm/svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 65324a0c797f6..5b313e96f1604 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1456,7 +1456,7 @@ static bool is_erratum_383(void) /* Bit 62 may or may not be set for this mce */ value &= ~(1ULL << 62); - if (value != 0xb600000000010015) + if (value != 0xb600000000010015ULL) return false; /* Clear MCi_STATUS registers */ -- 2.51.0