From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGQx9-0003cz-RB for qemu-devel@nongnu.org; Fri, 15 Mar 2013 05:29:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGQx7-0008H2-8v for qemu-devel@nongnu.org; Fri, 15 Mar 2013 05:29:31 -0400 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:49593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGQx6-0008Go-KR for qemu-devel@nongnu.org; Fri, 15 Mar 2013 05:29:29 -0400 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Mar 2013 19:19:14 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 506242CE804D for ; Fri, 15 Mar 2013 20:29:21 +1100 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2F9GP8H66191518 for ; Fri, 15 Mar 2013 20:16:25 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2F9TK0r011162 for ; Fri, 15 Mar 2013 20:29:20 +1100 From: Lei Li Date: Fri, 15 Mar 2013 17:29:03 +0800 Message-Id: <1363339745-15639-1-git-send-email-lilei@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/2 v7] Add Windows support for time resync 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 Windows implementation for qemu-ga commands guest-get-time and guest-set-time. The previous thread about the interfaces introduced and the POSIX-specific command implementation has already been accepted, the reference link: http://article.gmane.org/gmane.comp.emulators.qemu/198472 Notes: Now It was tested on Windows XP SP3 and Windows 7. Please comment! Thanks. Changes since v6: - Fix other error handel that I missed. Changes since v5: - Fix the error check for GetSystemTime() from Michael. - Other fixups from Michael. Changes since v4: - Error handel improvement from Michael. - Do the math explicitly for the time convert of FILETIME suggested by Michael. Changes since v3: - Reorder the acquire_privilege to avoid a possible leak of privileges suggested by Eric. Changes since v2: - Overflow check improvement for time_ns from Eric. Changes since v1: - Make the macro for the offset between windows baseline and Unix Epoch more readable from Eric. - Overflow check for filetime pointed by Eric. Lei Li (2): qga: add windows implementation for guest-get-time qga: add windows implementation for guest-set-time