qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Lei Li <lilei@linux.vnet.ibm.com>
To: qemu-devel <qemu-devel@nongnu.org>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	mdroth <mdroth@linux.vnet.ibm.com>,
	Luiz Capitulino <lcapitulino@redhat.com>
Subject: [Qemu-devel] [RFC] Time resync by qemu-ga
Date: Fri, 28 Dec 2012 00:29:15 +0800	[thread overview]
Message-ID: <50DC775B.9070800@linux.vnet.ibm.com> (raw)

Hi guys,

I am working on the time drift issue as background info here.

http://mid.gmane.org/87pq5r5otp.fsf@codemonkey.ws

As Anthony proposed, one part of the solutions is that we want
to add a qemu-ga command to resync the guest clock by reading the
wallclock time when the tick overflow the limit to the number
of missed ticks.

When I implement on the qemu-ga side, I got some problems and
I'd like to send this RFC out and ask for suggestions and comments
to make sure I am in the right direction before I send out the code.

The proposed interface for qemu-ga command as link here:

http://wiki.qemu.org/Features/GuestAgent/UsefulCommands

This maybe easier to implement, but I think this interface may
have problem, like the delta issue. So I am trying to implement
it like below.

The interface looks like:

{ 'command': 'guest-resync-time' }

The way it works:

When calling this command in the host, qemu-ga would try to
get the wallclock time in the host by handling guest->host
commands, and then write this time to the guest hardware.

But looks like we don't have the way to get host information
now, since qemu-ga just handle host->guest commands (Correct
me if I am wrong). To solve this, we should add support to
get host information by handling guest->host commands by qemu-ga
first.

Please correct me if I am wrong. And suggestions and comments
are very appreciated, specifically the way to handle quest->host
commands by qemu-ga since I am still struggling with this.

Thanks!

-- 
Lei

             reply	other threads:[~2012-12-27 16:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-27 16:29 Lei Li [this message]
2013-01-02 22:53 ` [Qemu-devel] [RFC] Time resync by qemu-ga mdroth

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=50DC775B.9070800@linux.vnet.ibm.com \
    --to=lilei@linux.vnet.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=lcapitulino@redhat.com \
    --cc=mdroth@linux.vnet.ibm.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;
as well as URLs for NNTP newsgroup(s).