From: Avi Kivity <avi@redhat.com>
To: "Hao, Xudong" <xudong.hao@intel.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: Re: [PATCH v4] kvm/fpu: Enable fully eager restore kvm FPU
Date: Thu, 27 Sep 2012 12:11:54 +0200 [thread overview]
Message-ID: <5064266A.8050809@redhat.com> (raw)
In-Reply-To: <403610A45A2B5242BD291EDAE8B37D300FEC7244@SHSMSX102.ccr.corp.intel.com>
On 09/26/2012 07:54 AM, Hao, Xudong wrote:
>> -----Original Message-----
>> From: kvm-owner@vger.kernel.org [mailto:kvm-owner@vger.kernel.org] On
>> Behalf Of Avi Kivity
>> Sent: Tuesday, September 25, 2012 4:16 PM
>> To: Hao, Xudong
>> Cc: kvm@vger.kernel.org; Zhang, Xiantao
>> Subject: Re: [PATCH v4] kvm/fpu: Enable fully eager restore kvm FPU
>>
>> On 09/25/2012 04:32 AM, Hao, Xudong wrote:
>> > >
>> > > btw, it is clear that long term the fpu will always be eagerly loaded,
>> > > as hosts and guests (and hardware) are updated. At that time it will
>> > > make sense to remove the lazy fpu code entirely. But maybe that time is
>> > > here already, since exits are rare and so the guest has a lot of chance
>> > > to use the fpu, so eager fpu saves the #NM vmexit.
>> > >
>> > > Can you check a kernel compile on a westmere system? If eager fpu is
>> > > faster there than lazy fpu, we can just make the fpu always eager and
>> > > remove quite a bit of code.
>> > >
>> > I remember westmere does not support Xsave, do you want performance of
>> fxsave/fresotr ?
>>
>> Yes. If a westmere is fast enough then we can probably justify it. If
>> you can run tests on Sandy/Ivy Bridge, even better.
>>
> Run kernel compile on westmere, eager fpu is about 0.4% faster, seems eager does not benefit it too much, so remain lazy fpu for lazy_allowed fpu state?
Why not make it eager all the time then? It will simplify the code
quite a bit, no?
All I was looking for was no regressions, a small speedup is just a bonus.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2012-09-27 10:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-24 3:28 [PATCH v4] kvm/fpu: Enable fully eager restore kvm FPU Xudong Hao
2012-09-24 14:16 ` Avi Kivity
2012-09-25 2:32 ` Hao, Xudong
2012-09-25 8:16 ` Avi Kivity
2012-09-26 5:54 ` Hao, Xudong
2012-09-27 10:11 ` Avi Kivity [this message]
2012-09-28 9:18 ` Hao, Xudong
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=5064266A.8050809@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=xiantao.zhang@intel.com \
--cc=xudong.hao@intel.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.