From: Anthony Liguori <aliguori@us.ibm.com>
To: qemu-devel@nongnu.org
Cc: avi@redhat.com
Subject: Re: [Qemu-devel] [PATCH] Fix cpuid KVM crash on i386
Date: Thu, 05 Mar 2009 13:03:07 -0600 [thread overview]
Message-ID: <49B021EB.1060405@us.ibm.com> (raw)
In-Reply-To: <1236088698.24907.3.camel@localhost.localdomain>
Lubomir Rintel wrote:
> Cpuid should return into vec, not overwrite past address in count.
> Changeset 6565 broke this.
>
Applied to both stable and trunk. Thanks.
Regards,
Anthony Liguori
> Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
>
> Index: target-i386/helper.c
> ===================================================================
> --- target-i386/helper.c (revision 6676)
> +++ target-i386/helper.c (working copy)
> @@ -1418,10 +1418,10 @@
> #else
> asm volatile("pusha \n\t"
> "cpuid \n\t"
> - "mov %%eax, 0(%1) \n\t"
> - "mov %%ebx, 4(%1) \n\t"
> - "mov %%ecx, 8(%1) \n\t"
> - "mov %%edx, 12(%1) \n\t"
> + "mov %%eax, 0(%2) \n\t"
> + "mov %%ebx, 4(%2) \n\t"
> + "mov %%ecx, 8(%2) \n\t"
> + "mov %%edx, 12(%2) \n\t"
> "popa"
> : : "a"(function), "c"(count), "S"(vec)
> : "memory", "cc");
>
>
>
>
>
>
prev parent reply other threads:[~2009-03-05 19:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 13:58 [Qemu-devel] [PATCH] Fix cpuid KVM crash on i386 Lubomir Rintel
2009-03-05 19:03 ` Anthony Liguori [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=49B021EB.1060405@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=qemu-devel@nongnu.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).