All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/6] prevent Qemu from waking up needlessly
@ 2012-01-27 18:20 ` Stefano Stabellini
  0 siblings, 0 replies; 50+ messages in thread
From: Stefano Stabellini @ 2012-01-27 18:20 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: Paolo Bonzini, xen-devel@lists.xensource.com, Avi Kivity,
	Stefano Stabellini

Hi all,
this small patch series prevents Qemu from waking up needlessly on Xen
several times a second in order to check some timers.



The first patch stops Qemu from emulating the PIT on Xen, the second
patch disables the rtc_clock entirely.

The third patch makes use of a new mechanism to receive buffered io
event notifications from Xen, so that Qemu doesn't need to check the
buffered io page for data 10 times a sec for the entire life of the VM.

The fourth patch fixes win32_rearm_timer and mm_rearm_timer that
risk an overflow if INT64_MAX is passed as delta.

The fifth patch changes qemu_next_alarm_deadline only to check the
expire time of a clock if it is enabled.

Finally the last patch increases the default select timeout to 1h:
nothing should rely on the select timeout to be 1sec, so we might as
well increase it to 1h.



Changes in v3:

- added a new patch to fix win32_rearm_timer and mm_rearm_timer, that
risk an overflow if INT64_MAX is passed as delta.




Shortlog and diffstat follow:

Stefano Stabellini (6):
      xen: do not initialize the interval timer emulator
      xen: disable rtc_clock
      xen: introduce an event channel for buffered io event notifications
      timers: the rearm function should be able to handle delta = INT64_MAX
      qemu_next_alarm_deadline: check the expire time of a clock only if it is enabled
      qemu_calculate_timeout: increase minimum timeout to 1h

 hw/pc.c      |    7 +++++--
 qemu-timer.c |   30 ++++++++++++++++++------------
 xen-all.c    |   43 +++++++++++++++++++++++++++++++++++++------
 3 files changed, 60 insertions(+), 20 deletions(-)


A git tree available here:

git://xenbits.xen.org/people/sstabellini/qemu-dm.git timers-3

Cheers,

Stefano

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

end of thread, other threads:[~2012-02-14 11:55 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 18:20 [Qemu-devel] [PATCH v3 0/6] prevent Qemu from waking up needlessly Stefano Stabellini
2012-01-27 18:20 ` Stefano Stabellini
2012-01-27 18:21 ` [Qemu-devel] [PATCH v3 1/6] xen: do not initialize the interval timer emulator Stefano Stabellini
2012-01-27 18:21   ` Stefano Stabellini
2012-01-27 19:09   ` [Qemu-devel] " Jan Kiszka
2012-01-27 19:09     ` Jan Kiszka
2012-01-30 11:39     ` [Qemu-devel] " Stefano Stabellini
2012-01-30 11:39       ` Stefano Stabellini
2012-01-30 15:13       ` [Qemu-devel] " Jan Kiszka
2012-01-30 15:13         ` Jan Kiszka
2012-01-27 18:21 ` [Qemu-devel] [PATCH v3 2/6] xen: disable rtc_clock Stefano Stabellini
2012-01-27 18:21   ` Stefano Stabellini
2012-01-27 20:08   ` [Qemu-devel] " Paolo Bonzini
2012-01-27 20:08     ` Paolo Bonzini
2012-01-30 11:58     ` [Qemu-devel] " Stefano Stabellini
2012-01-30 11:58       ` Stefano Stabellini
2012-01-27 18:21 ` [Qemu-devel] [PATCH v3 3/6] xen: introduce an event channel for buffered io event notifications Stefano Stabellini
2012-01-27 18:21   ` Stefano Stabellini
2012-01-27 18:21 ` [Qemu-devel] [PATCH v3 4/6] timers: the rearm function should be able to handle delta = INT64_MAX Stefano Stabellini
2012-01-27 18:21   ` Stefano Stabellini
2012-01-27 18:21 ` [Qemu-devel] [PATCH v3 5/6] qemu_next_alarm_deadline: check the expire time of a clock only if it is enabled Stefano Stabellini
2012-01-27 18:21   ` Stefano Stabellini
2012-01-27 18:21 ` [Qemu-devel] [PATCH v3 6/6] qemu_calculate_timeout: increase minimum timeout to 1h Stefano Stabellini
2012-01-27 18:21   ` Stefano Stabellini
2012-02-10  0:26   ` [Qemu-devel] " Paul Brook
2012-02-10  0:26     ` Paul Brook
2012-02-10  8:03     ` [Qemu-devel] " Paolo Bonzini
2012-02-10  8:03       ` Paolo Bonzini
2012-02-10  9:52       ` [Qemu-devel] " Paul Brook
2012-02-10  9:52         ` Paul Brook
2012-02-10 10:45         ` [Qemu-devel] " Paolo Bonzini
2012-02-10 10:45           ` Paolo Bonzini
2012-02-10 11:09           ` [Qemu-devel] " Paul Brook
2012-02-10 11:09             ` Paul Brook
2012-02-10 11:19             ` [Qemu-devel] " Stefano Stabellini
2012-02-10 11:19               ` Stefano Stabellini
2012-02-10 11:18               ` [Qemu-devel] " Paolo Bonzini
2012-02-10 11:18                 ` Paolo Bonzini
2012-02-10 11:32                 ` [Qemu-devel] " Jan Kiszka
2012-02-10 11:32                   ` Jan Kiszka
2012-02-10 17:07                   ` [Qemu-devel] " Stefano Stabellini
2012-02-10 17:07                     ` Stefano Stabellini
2012-02-10 23:34                     ` [Qemu-devel] " Paul Brook
2012-02-10 23:34                       ` Paul Brook
2012-02-13 11:52                       ` [Qemu-devel] " Stefano Stabellini
2012-02-13 11:52                         ` Stefano Stabellini
2012-02-14 10:52                         ` [Qemu-devel] " Paul Brook
2012-02-14 10:52                           ` Paul Brook
2012-02-14 11:55                           ` [Qemu-devel] " Stefano Stabellini
2012-02-14 11:55                             ` Stefano Stabellini

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.