All of lore.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
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ 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] 20+ messages in thread
* [PATCH 0/2] Paravirt loops per jiffy calculation
@ 2008-07-22 16:15 Glauber Costa
  0 siblings, 0 replies; 20+ messages in thread
From: Glauber Costa @ 2008-07-22 16:15 UTC (permalink / raw)
  To: kvm; +Cc: aliguori, 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] 20+ messages in thread

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

Thread overview: 20+ 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-22 16:15   ` Glauber Costa
2008-07-22 16:15 ` [PATCH 1/2] factor out cpu_khz to common code 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-23 13:35   ` Glauber Costa
2008-07-23 10:07 ` Gerd Hoffmann
2008-07-27  7:59 ` Avi Kivity
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   ` Glauber Costa
2008-07-28 14:47     ` [PATCH 2/2] use paravirt function to calculate cpu khz Glauber Costa
2008-07-28 14:47     ` Glauber Costa
2008-07-29 14:17   ` [PATCH 0/2] Paravirt loops per jiffy Avi Kivity
2008-07-29 14:17   ` Avi Kivity
2008-07-28 14:47 ` Glauber Costa
  -- strict thread matches above, loose matches on Subject: below --
2008-07-22 16:15 [PATCH 0/2] Paravirt loops per jiffy calculation Glauber Costa

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.