[Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-15 Thread Lei Li
Signed-off-by: Lei Li --- qga/commands-win32.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index d98e3ee..24e4ad0 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -309,7 +309,34 @@ int

[Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-14 Thread Lei Li
Signed-off-by: Lei Li --- qga/commands-win32.c | 32 1 file changed, 32 insertions(+) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index b395bd5..cc8d890 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -137,6 +137,38 @@ int64_t qmp_gue

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-14 Thread mdroth
On Thu, Mar 14, 2013 at 03:07:51PM +0800, Lei Li wrote: > Signed-off-by: Lei Li > --- > qga/commands-win32.c | 33 + > 1 file changed, 33 insertions(+) > > diff --git a/qga/commands-win32.c b/qga/commands-win32.c > index e24fb4a..8064c3a 100644 > --- a/qga/command

[Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-14 Thread Lei Li
Signed-off-by: Lei Li --- qga/commands-win32.c | 33 + 1 file changed, 33 insertions(+) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index e24fb4a..8064c3a 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -141,6 +141,39 @@ out: retu

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-13 Thread Lei Li
On 03/14/2013 04:25 AM, mdroth wrote: On Wed, Mar 13, 2013 at 06:10:31PM +0800, li...@linux.vnet.ibm.com wrote: From: Lei Li Signed-off-by: Lei Li --- qga/commands-win32.c | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/qga/command

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-13 Thread mdroth
On Wed, Mar 13, 2013 at 06:10:31PM +0800, li...@linux.vnet.ibm.com wrote: > From: Lei Li > > Signed-off-by: Lei Li > --- > qga/commands-win32.c | 34 ++ > 1 files changed, 34 insertions(+), 0 deletions(-) > > diff --git a/qga/commands-win32.c b/qga/commands-wi

[Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-13 Thread lilei
From: Lei Li Signed-off-by: Lei Li --- qga/commands-win32.c | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 0a2bb34..a0c8d43 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-13 Thread Lei Li
On 03/12/2013 11:05 PM, Eric Blake wrote: On 03/12/2013 03:08 AM, Lei Li wrote: Signed-off-by: Lei Li --- qga/commands-win32.c | 34 ++ 1 file changed, 34 insertions(+) +void qmp_guest_set_time(int64_t time_ns, Error **errp) +{ +SYSTEMTIME ts; +FILETI

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-12 Thread Eric Blake
On 03/12/2013 03:08 AM, Lei Li wrote: > Signed-off-by: Lei Li > --- > qga/commands-win32.c | 34 ++ > 1 file changed, 34 insertions(+) > > +void qmp_guest_set_time(int64_t time_ns, Error **errp) > +{ > +SYSTEMTIME ts; > +FILETIME tf; > +LONGLONG time;

[Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-12 Thread Lei Li
Signed-off-by: Lei Li --- qga/commands-win32.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 0a2bb34..e000324 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -140,6 +140,40 @@ int64_t qmp_g

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-08 Thread Eric Blake
On 03/08/2013 09:56 AM, Lei Li wrote: > Signed-off-by: Lei Li > --- > qga/commands-win32.c | 35 +++ > 1 files changed, 35 insertions(+), 0 deletions(-) > > + > +time = time_ns / 100 + W32_FT_OFFSET; > +/* FILETIME values should be less than 0x8

[Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-08 Thread Lei Li
Signed-off-by: Lei Li --- qga/commands-win32.c | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 0a2bb34..b5d4bd3 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -140,6 +140

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-07 Thread Lei Li
On 03/06/2013 11:05 PM, Eric Blake wrote: On 03/06/2013 06:45 AM, Lei Li wrote: Signed-off-by: Lei Li --- qga/commands-win32.c | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 4febec7

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-06 Thread Eric Blake
On 03/06/2013 06:45 AM, Lei Li wrote: > Signed-off-by: Lei Li > --- > qga/commands-win32.c | 35 +++ > 1 files changed, 35 insertions(+), 0 deletions(-) > > diff --git a/qga/commands-win32.c b/qga/commands-win32.c > index 4febec7..1a90aa7 100644 > --- a/qga/comm

[Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-06 Thread Lei Li
Signed-off-by: Lei Li --- qga/commands-win32.c | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 4febec7..1a90aa7 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -136,6 +136