public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
	Glauber Costa <glommer@redhat.com>, kvm <kvm@vger.kernel.org>
Subject: Re: error while loading state for instance 0x0 of device 'kvmclock'
Date: Mon, 02 Nov 2009 16:37:15 +0100	[thread overview]
Message-ID: <4AEEFCAB.2070308@siemens.com> (raw)
In-Reply-To: <4AEEE04C.8080104@redhat.com>

Avi Kivity wrote:
> On 11/02/2009 12:28 PM, Jan Kiszka wrote:
>> Jan Kiszka wrote:
>>    
>>> Hi,
>>>
>>> current qemu-kvm.git gives me the message "qemu: warning: error while
>>> loading state for instance 0x0 of device 'kvmclock'" when I run a simple
>>> "savevm" followed by a "loadvm 1". What's broken here?
>>>      
>> OK, this is due to "KVM: add flags to kvm_clock_data" (958b0c5497): the
>> flags field is not cleared on KVM_SET_CLOCK. Will post a fix.
>>
>> But the above kernel commit is also broken: KVM_GET_CLOCK checks
>> uninitialized user_ns.flags (probably instead of the user's value). This
>> raises the question if the caller of KVM_GET_CLOCK is also supposed to
>> pass kvm_clock_data with flags cleared down to the kernel. Could someone
>> clarify this so I could fix it accordingly?
>>    
> 
> I'd make KVM_GET_CLOCK set the flags, not get them.  So if we add new 
> fields, we just set a new bit and userspace can read it.

This makes sense and actually fixes the issue completely. Patch on its
way...

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

  reply	other threads:[~2009-11-02 15:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-02  8:36 error while loading state for instance 0x0 of device 'kvmclock' Jan Kiszka
2009-11-02 10:28 ` Jan Kiszka
2009-11-02 12:29   ` Marcelo Tosatti
2009-11-02 13:36   ` Avi Kivity
2009-11-02 15:37     ` Jan Kiszka [this message]
2009-11-03 10:54       ` Glauber Costa

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=4AEEFCAB.2070308@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=avi@redhat.com \
    --cc=glommer@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    /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