From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@qumranet.com>
Cc: kvm-devel@lists.sourceforge.net, Ryota OZAKI <ozaki.ryota@gmail.com>
Subject: Re: question: HPET for multiple VMs
Date: Sat, 22 Mar 2008 20:08:40 -0500 [thread overview]
Message-ID: <47E5AD98.8070001@codemonkey.ws> (raw)
In-Reply-To: <47E580A2.4060308@qumranet.com>
Avi Kivity wrote:
>> And I would like to ask right and wrong to
>> implement the functionality in terms of need
>> and efficiency (scalability and time accuracy).
>>
>
> I think that for newer kernels we already have the desired accuracy.
> We're not always good at exploiting that accuracy; hence the recent
> movement of the PIT implementation from userspace to the kernel. But
> recent discussion leads me to believe it could have been implemented
> with the userspace PIT as well.
>
What do you think is needed to get the same accuracy in userspace as in
kernelspace? Better yet, do you think there is a reasonable kvmctl
harness we could write to quantify the PIT accuracy?
It's easy enough to count timer interrupts and use compare that to an
external time source to get some notion of accuracy (on varying
frequencies of course). I know you mentioned before that guest CPU
consumption also comes into play... I'm not quite sure why though so I'm
not sure how to simulate that.
The nice thing about the CAP infrastructure is we can always move the
PIT back to userspace. I'll happily invest some cycles here as I'm a
big fan of getting rid of unneeded kernel code :-)
Regards,
Anthony Liguori
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-03-23 1:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-22 16:16 question: HPET for multiple VMs Ryota OZAKI
2008-03-22 21:56 ` Avi Kivity
2008-03-23 1:08 ` Anthony Liguori [this message]
2008-03-23 8:30 ` Avi Kivity
2008-03-23 9:03 ` Dor Laor
2008-03-23 15:32 ` Ryota OZAKI
2008-03-23 22:33 ` Dor Laor
2008-03-24 6:31 ` Ryota OZAKI
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=47E5AD98.8070001@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=avi@qumranet.com \
--cc=kvm-devel@lists.sourceforge.net \
--cc=ozaki.ryota@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox