qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] savevm odness related to kvmclock
@ 2010-12-06 14:03 Glauber Costa
  2010-12-06 14:03 ` [Qemu-devel] [PATCH v2 1/2] Do not register kvmclock savevm section if kvmclock is disabled Glauber Costa
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Glauber Costa @ 2010-12-06 14:03 UTC (permalink / raw)
  To: kvm; +Cc: mtosatti, qemu-devel, avi

Some users told me that savevm path is behaving oddly wrt kvmclock.
The first oddness is that a guarantee we never made (AFAIK) is being broken:
two consecutive "savevm" operations, with the machine stopped in between
produces different results, due to the call to KVM_GET_CLOCK ioctl.
I believe the assumption that if the vm does not run, its saveable
state won't change is fairly reasonable. Maybe we should formally
guarantee that?

Also, this patch deals with the fact that this happens even if
kvmclock is disabled in cpuid: its savevm section is registered
nevertheless. Here, I try to register it only if it's enabled at
machine start.

v2: improvements suggested by Paolo, and patch reordering.

Glauber Costa (2):
  Do not register kvmclock savevm section if kvmclock is disabled.
  make kvmclock value idempotent for stopped machine

 cpus.c            |    3 +++
 qemu-kvm-x86.c    |   23 +++++++++++++++--------
 qemu-kvm.h        |    3 +++
 target-i386/kvm.c |    7 +++++++
 4 files changed, 28 insertions(+), 8 deletions(-)

-- 
1.7.2.3

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

end of thread, other threads:[~2010-12-13 13:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-06 14:03 [Qemu-devel] [PATCH v2 0/2] savevm odness related to kvmclock Glauber Costa
2010-12-06 14:03 ` [Qemu-devel] [PATCH v2 1/2] Do not register kvmclock savevm section if kvmclock is disabled Glauber Costa
2010-12-06 21:04   ` [Qemu-devel] " Marcelo Tosatti
2010-12-06 21:55     ` Marcelo Tosatti
2010-12-07 17:12     ` Glauber Costa
2010-12-08 19:31       ` Marcelo Tosatti
2010-12-13 13:40         ` Glauber Costa
2010-12-06 14:03 ` [Qemu-devel] [PATCH v2 2/2] make kvmclock value idempotent for stopped machine Glauber Costa
2010-12-06 14:10 ` [Qemu-devel] Re: [PATCH v2 0/2] savevm odness related to kvmclock Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).