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

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

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;

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

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