public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Paravirt loops per jiffy calculation
@ 2008-07-22 16:15 Glauber Costa
  2008-07-22 16:15 ` [PATCH 1/2] factor out cpu_khz to common code Glauber Costa
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Glauber Costa @ 2008-07-22 16:15 UTC (permalink / raw)
  To: kvm; +Cc: glommer, avi, aliguori, mtosatti, virtualization

Hey,

Over the last weeks, there has been some discussion regarding paravirt
lpj calculation for kvm. Here's my shot at that.

KVM hypervisor already put the right value in our pvclock structures,
as part of the xen compatibility efforts.

So the first patch moves the respective xen code to pvclock.c (since
we'll be doing the same calculation anyway), while the second, implements
functions for kvm that makes use of it.

Turns out that only implementing a pv get_tsc_khz is not enough, since
it will only do the right thing for cpu0, which is not what we desire.

So we set preset_lpj. Recall this code is run before arch parameter setup,
so if we pass lpj=xx in the command line, it'll still work.

Have a good (paravirtual) time!



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-07-29 14:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 16:15 [PATCH 0/2] Paravirt loops per jiffy calculation Glauber Costa
2008-07-22 16:15 ` [PATCH 1/2] factor out cpu_khz to common code Glauber Costa
2008-07-22 16:15   ` [PATCH 2/2] use paravirt function to calculate cpu khz Glauber Costa
2008-07-23 10:07 ` [PATCH 0/2] Paravirt loops per jiffy calculation Gerd Hoffmann
2008-07-23 13:35   ` Glauber Costa
2008-07-27  7:59 ` Avi Kivity
2008-07-28 14:47 ` [PATCH 0/2] Paravirt loops per jiffy Glauber Costa
2008-07-28 14:47   ` [PATCH 1/2] factor out cpu_khz to common code Glauber Costa
2008-07-28 14:47     ` [PATCH 2/2] use paravirt function to calculate cpu khz Glauber Costa
2008-07-29 14:17   ` [PATCH 0/2] Paravirt loops per jiffy Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox