From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Trn8P-0004RA-9y for qemu-devel@nongnu.org; Sun, 06 Jan 2013 05:07:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Trn8O-00081i-3J for qemu-devel@nongnu.org; Sun, 06 Jan 2013 05:07:17 -0500 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:58068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Trn8N-00081e-Fs for qemu-devel@nongnu.org; Sun, 06 Jan 2013 05:07:16 -0500 Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 6 Jan 2013 15:35:39 +0530 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id 3F2B7394004D for ; Sun, 6 Jan 2013 15:37:08 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r06A74EN43712642 for ; Sun, 6 Jan 2013 15:37:06 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r06A764n000811 for ; Sun, 6 Jan 2013 10:07:06 GMT From: Lei Li Date: Sun, 6 Jan 2013 18:06:57 +0800 Message-Id: <1357466820-12860-1-git-send-email-lilei@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH 0/3] Time resync support by qemu-ga List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, mdroth@linux.vnet.ibm.com, Lei Li This patch series attempts to add time resync support to qemu-ga by introducing qemu-ga commands guest-get-time and guest-set-time. Right now, when a guest is paused or migrated to a file then loaded from that file, the guest OS has no idea that there was a big gap in the time. Depending on how long the gap was, NTP might not be able to resynchronize the guest. So adding new guest-agent command that is called any time a guest is resumed and which tells the guest to update its own wall clock time based on the information from the host will make it easier for a guest to resynchronize without waiting for NTP. The previous RFC send for discussion and suggestion as link here: http://article.gmane.org/gmane.comp.emulators.qemu/186126 The interface for these commands like: { 'command': 'guest-get-time', 'returns': 'HostTimeInfo' } { 'command': 'guest-set-time', 'data': { '*seconds': 'int', '*microseconds': 'int', '*utc-offset': 'int' } } TODO: This is a RFC version with POSIX-specific command implemented. I just test on Linux guest, will add win32-specific command to support Windows guest later. Since I want to make sure if this seems like the way we should be headed. Your comments and suggestions are very welcome! Lei Li (3): qga: add support to get host time qga: add guest-get-time command qga: add guest-set-time command