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

On 17/10/2018 20:12, Sebastian Andrzej Siewior wrote:
> 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

It's queued for my next pull request.

Paolo

  reply	other threads:[~2018-10-17 18:40 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   ` [Qemu-devel] [PATCH] i386: correct cpu_x86_cpuid(0xd) Sebastian Andrzej Siewior
2018-10-17 18:40     ` Paolo Bonzini [this message]
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=0081f788-0937-8aca-0308-edd7eaf6f678@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=bigeasy@linutronix.de \
    --cc=ehabkost@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).