public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Glauber Costa <glommer@redhat.com>
Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, avi@redhat.com,
	mtosatti@redhat.com
Subject: Re: [PATCH v2 0/2] savevm odness related to kvmclock
Date: Mon, 06 Dec 2010 15:10:36 +0100	[thread overview]
Message-ID: <4CFCEEDC.6040009@redhat.com> (raw)
In-Reply-To: <1291644227-22923-1-git-send-email-glommer@redhat.com>

On 12/06/2010 03:03 PM, Glauber Costa wrote:
> 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(-)

ACK

Paolo

      parent reply	other threads:[~2010-12-06 14:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06 14:03 [PATCH v2 0/2] savevm odness related to kvmclock Glauber Costa
2010-12-06 14:03 ` [PATCH v2 1/2] Do not register kvmclock savevm section if kvmclock is disabled Glauber Costa
2010-12-06 21:04   ` 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 ` [PATCH v2 2/2] make kvmclock value idempotent for stopped machine Glauber Costa
2010-12-06 14:10 ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CFCEEDC.6040009@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=avi@redhat.com \
    --cc=glommer@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox