Skip to content

savevm odness related to kvmclock

Glauber Costa kvm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Do not register kvmclock savevm section if kvmclock is disabled.cpus.c qemu-kvm-x86.c qemu-kvm.h +1 more+26 -65 replies
2/2make kvmclock value idempotent for stopped machineqemu-kvm-x86.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] savevm odness related to kvmclock

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(-)
Signature · 1 line
1.7.2.3