qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: qemu-devel@nongnu.org, tglx@linutronix.de,
	Paolo Bonzini <pbonzini@redhat.com>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH] i386: correct cpu_x86_cpuid(0xd)
Date: Wed, 17 Oct 2018 20:12:52 +0200	[thread overview]
Message-ID: <20181017181251.fpnh6y5ldrmgb7j5@linutronix.de> (raw)
In-Reply-To: <20180928145411.GN5738@habkost.net>

On 2018-09-28 11:54:11 [-0300], Eduardo Habkost wrote:
> On Fri, Sep 28, 2018 at 12:43:19PM +0200, Sebastian Andrzej Siewior wrote:
> > Intel SDM says for CPUID function 0DH, sub-function 0:
> > 
> > | • ECX enumerates the size (in bytes) required by the XSAVE instruction for an
> > |   XSAVE area containing all the user state components supported by this
> > |   processor.
> > | • EBX enumerates the size (in bytes) required by the XSAVE instruction for an
> > |   XSAVE area containing all the user state components corresponding to bits
> > |   currently set in XCR0.
> > 
> > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> > ---
> >  target/i386/cpu.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/target/i386/cpu.c b/target/i386/cpu.c
> > index f24295e6e4bb7..00c18444c0bac 100644
> > --- a/target/i386/cpu.c
> > +++ b/target/i386/cpu.c
> > @@ -4178,7 +4178,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,
> >              *ecx = xsave_area_size(x86_cpu_xsave_components(cpu));
> >              *eax = env->features[FEAT_XSAVE_COMP_LO];
> >              *edx = env->features[FEAT_XSAVE_COMP_HI];
> > -            *ebx = *ecx;
> > +            *ebx = xsave_area_size(env->xcr0);
> 
> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>

ping

Sebastian

       reply	other threads:[~2018-10-17 18:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180928104319.3296-1-bigeasy@linutronix.de>
     [not found] ` <20180928145411.GN5738@habkost.net>
2018-10-17 18:12   ` Sebastian Andrzej Siewior [this message]
2018-10-17 18:40     ` [Qemu-devel] [PATCH] i386: correct cpu_x86_cpuid(0xd) Paolo Bonzini
2018-10-17 18:42       ` Sebastian Andrzej Siewior

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=20181017181251.fpnh6y5ldrmgb7j5@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=ehabkost@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=tglx@linutronix.de \
    /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).