[natty][SRU][PATCH] bug #1018440 - KVM domain restore reboots the domain instead

Chris J Arges chris.j.arges at canonical.com
Wed Jun 27 16:59:28 UTC 2012


BugLink: https://bugs.launchpad.net/bugs/1018440

== Natty SRU Justification ==

KVM domain restore reboots the domain instead, the reported uptime is
incorrect.

== Fix ==

Upstream patch : 5233dd51ece1615d54ab96c4cbe9ac3cc595e955 fixes the
issue. This patch is present in Oneiric onwards. This patch only allows
vmx_decache_cr3 to be run iff vcpu->arch.cr3 is stale.

== Testcase ==

  1 Start a VM
  2 let it accumulate some uptime; maybe start a background job
  3 save or managedsave the VM and verify that it becomes "shut off"
  4 restore or start the saved VM.
  5 check uptime of VM and state of background job, if started.

The uptime of the restored VM should represent the time it was up before
being saved. It shows as being 0 since the VM gets rebooted

Thanks,
--chris j arges


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-KVM-VMX-do-not-overwrite-uptodate-vcpu-arch.cr3-on-K.patch
Type: text/x-patch
Size: 1255 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20120627/099ab946/attachment.bin>


More information about the kernel-team mailing list