From: Marcelo Tosatti <mtosatti@redhat.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: avi@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH] fix 80000001.EDX supported bit filtering
Date: Tue, 11 May 2010 17:07:58 -0300 [thread overview]
Message-ID: <20100511200758.GI9712@amt.cnet> (raw)
In-Reply-To: <20100511064125.GE2504@redhat.com>
On Tue, May 11, 2010 at 09:41:25AM +0300, Gleb Natapov wrote:
> On AMD some bits from 1.EDX are reported in 80000001.EDX. The mask used
> to copy bits from 1.EDX to 80000001.EDX is incorrect resulting in
> unsupported features passed into a guest.
>
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 76c1adb..6463390 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -111,7 +111,7 @@ uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function, int reg)
> * so add missing bits according to the AMD spec:
> */
> cpuid_1_edx = kvm_arch_get_supported_cpuid(env, 1, R_EDX);
> - ret |= cpuid_1_edx & 0xdfeff7ff;
> + ret |= cpuid_1_edx & 0x183f7ff;
> break;
> }
> break;
Applied to uq/master, thanks.
prev parent reply other threads:[~2010-05-11 20:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-11 6:41 [PATCH] fix 80000001.EDX supported bit filtering Gleb Natapov
2010-05-11 20:07 ` Marcelo Tosatti [this message]
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=20100511200758.GI9712@amt.cnet \
--to=mtosatti@redhat.com \
--cc=avi@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).