From: "Roedel, Joerg" <Joerg.Roedel@amd.com>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: Avi Kivity <avi@redhat.com>,
Marcelo Tosatti <mtosatti@redhat.com>, kvm <kvm@vger.kernel.org>
Subject: Re: [PATCH] KVM: svm: Fix erratum 383 check for 32-bit hosts
Date: Wed, 26 May 2010 09:45:39 +0200 [thread overview]
Message-ID: <20100526074538.GB23190@amd.com> (raw)
In-Reply-To: <4BFCC995.5000303@web.de>
On Wed, May 26, 2010 at 03:11:17AM -0400, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> This overflow should have left the check broken behind for 32-bit hosts.
The check itself should work but it gives a compile warning for me (at
least in my small userspace test I did ;) Good catch, thanks.
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
> ---
> arch/x86/kvm/svm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
> index 3c03c36..fd32791 100644
> --- a/arch/x86/kvm/svm.c
> +++ b/arch/x86/kvm/svm.c
> @@ -1460,7 +1460,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 */
> --
> 1.6.0.2
>
next prev parent reply other threads:[~2010-05-26 7:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-26 7:11 [PATCH] KVM: svm: Fix erratum 383 check for 32-bit hosts Jan Kiszka
2010-05-26 7:45 ` Roedel, Joerg [this message]
2010-05-26 7:56 ` Jan Kiszka
2010-05-26 8:00 ` Roedel, Joerg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100526074538.GB23190@amd.com \
--to=joerg.roedel@amd.com \
--cc=avi@redhat.com \
--cc=jan.kiszka@web.de \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.