From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG2Gt-0003Jq-9Y for qemu-devel@nongnu.org; Thu, 14 Mar 2013 03:08:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG2Gr-0005bz-JN for qemu-devel@nongnu.org; Thu, 14 Mar 2013 03:08:15 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:40690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG2Gr-0005bC-0F for qemu-devel@nongnu.org; Thu, 14 Mar 2013 03:08:13 -0400 Received: from /spool/local by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 14 Mar 2013 12:35:36 +0530 Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 82E82125804F for ; Thu, 14 Mar 2013 12:39:10 +0530 (IST) Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2E783hi21758106 for ; Thu, 14 Mar 2013 12:38:03 +0530 Received: from d28av03.in.ibm.com (loopback [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2E785rn028814 for ; Thu, 14 Mar 2013 18:08:05 +1100 From: Lei Li Date: Thu, 14 Mar 2013 15:07:49 +0800 Message-Id: <1363244871-11973-1-git-send-email-lilei@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/2 v5] 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 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