From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: "Dong, Eddie" <eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [PATCH][UPDATE] shortcut for lightweight VM Exit
Date: Mon, 30 Apr 2007 16:10:47 +0300 [thread overview]
Message-ID: <4635EAD7.1030405@qumranet.com> (raw)
In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A015EDE49-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
Dong, Eddie wrote:
> Avi Kivity wrote:
>
>> Dong, Eddie wrote:
>>
>>> This patch provides short cut handling for light weight VM Exit,
>>> which can boost KB performance 11% under FC5 guest.
>>> Any comments?
>>>
>> While the patch looks good, it kills FC6 x86_64 boot with a double
>> fault. Guest kernel is 2.6.18-1.2798. dmesg says
>>
>> inject_page_fault: double fault 0x7fff79b58fd8 @ 0xffffffff8025cca1
>>
>>
> I think I know the reason, the SYSCALL_MASK & LSTAR update in guest
> needs to
> update the physical side MSR after this patch. With this update in
> vmx_set_msr,
> I get it up on a RHEL5U 64 bits guest but no time to check the detail
> performance
> gain yet. (will report after May day national holiday 5/1--5/8 in PRC)
>
> BTW, I have another patch in hand to further reduce MSR save/restore and
> thus
> improve performance more for lightweight VM Exit. Base on my observation
> for FC5 32 bits
> guest, 93% VM Exit will fall into the lightweight path.
>
>
I measured 650 cycles saved from a total of 5300 before the patch.
The patch had a bug where it would exit to userspace if need_resched()
was true. This can reduce performance on a high context switch scenario
(many virtual machines). I fixed that, and also a minor coding style
issue, and applied.
Enjoy your holiday :)
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
next prev parent reply other threads:[~2007-04-30 13:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-30 7:01 [PATCH][UPDATE] shortcut for lightweight VM Exit Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A015EDDA8-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-04-30 7:49 ` Avi Kivity
[not found] ` <46359F90.9010306-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-30 11:23 ` Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A015EDE49-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-04-30 13:10 ` Avi Kivity [this message]
[not found] ` <4635EAD7.1030405-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-05-08 5:08 ` Dong, Eddie
2007-05-08 9:59 ` [PATCH][UPDATE] Shortcut MSR save/restore for lightweight VM Exit (was: RE: shortcut for lightweight VM Exit) Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A0165CEA9-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-05-08 11:15 ` [PATCH][UPDATE] Shortcut MSR save/restore for lightweight VM Exit Avi Kivity
[not found] ` <46405BC6.1030001-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-05-08 11:51 ` Dong, Eddie
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=4635EAD7.1030405@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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