All of lore.kernel.org
 help / color / mirror / Atom feed
* About preemption timer
@ 2013-12-17  9:32 Arthur Chunqi Li
  2013-12-17 11:21 ` Jan Kiszka
  2013-12-17 11:22 ` Paolo Bonzini
  0 siblings, 2 replies; 9+ messages in thread
From: Arthur Chunqi Li @ 2013-12-17  9:32 UTC (permalink / raw)
  To: kvm; +Cc: Paolo Bonzini, Jan Kiszka

Hi Jan and Paolo,

I've tried to use preemption timer in KVM to trap vcpu regularly, but
there's something unexpected. I run a VM with 4 vcpus and give them
the same preemption timer value (e.g. 1000000) with all bits set
(activate/save bits), then reset the value in preemption time-out
handler.

Thus I expected these vcpus trap regularly in some special turns. But
I found that when the VM is not busy, some vcpus are trapped much less
frequently than others. In Intel SDM, I noticed that preemption timer
is only related to TSC, and I think all the vcpus should trap in a
similar frequency.

Could u help me explain this phenomenon?

Thanks,
Arthur

-- 
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, China

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

end of thread, other threads:[~2013-12-18  6:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17  9:32 About preemption timer Arthur Chunqi Li
2013-12-17 11:21 ` Jan Kiszka
2013-12-17 11:31   ` Arthur Chunqi Li
2013-12-17 12:43     ` Jan Kiszka
2013-12-17 12:59       ` Arthur Chunqi Li
2013-12-17 15:17         ` Jan Kiszka
2013-12-18  3:27           ` R
2013-12-18  6:58             ` Jan Kiszka
2013-12-17 11:22 ` Paolo Bonzini

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.