Skip to content

Add Windows support for time resync by qemu-ga

Lei Li qemu-devel 7 versions – Applied

Status from this message: Thanks, applied to qga branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 2 repliesApplied
  2. v62 patches 3 repliesSuperseded
  3. v52 patches 3 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v42 patches6 repliesSuperseded
v32 patches2 repliesSuperseded
v22 patches2 repliesSuperseded
v12 patches4 repliesSuperseded

Changes in v7 from the cover letter

- Fix other error handel that I missed.

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/2qga: add windows implementation for guest-get-timeqga/commands-win32.c+25 -20 replies
2/2qga: add windows implementation for guest-set-timeqga/commands-win32.c+28 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [Qemu-devel] [PATCH 0/2 v7] Add Windows support for time resync by qemu-ga

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