Re: [Qemu-devel] [RFC PATCH 2/2] qga: implement qmp_guest_get_os_version for windows

2014-12-17 Thread zhanghailiang
On 2014/12/17 0:26, Eric Blake wrote: On 12/16/2014 04:48 AM, Yan Vugenfirer wrote: + +if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 || +si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_IA64) { If one of the motivations is to update drivers on the guest - those

Re: [Qemu-devel] [RFC PATCH 2/2] qga: implement qmp_guest_get_os_version for windows

2014-12-16 Thread Yan Vugenfirer
On Dec 16, 2014, at 9:30 AM, zhanghailiang zhang.zhanghaili...@huawei.com wrote: We can get guest's OS version info by using 'guest-get-os-version', The return value contains version name and type (32-bit or 64-bit). For example: {return:{name:Microsoft Windows Server 2012 R2,type:64}}

Re: [Qemu-devel] [RFC PATCH 2/2] qga: implement qmp_guest_get_os_version for windows

2014-12-16 Thread Eric Blake
On 12/16/2014 04:48 AM, Yan Vugenfirer wrote: + +if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 || +si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_IA64) { If one of the motivations is to update drivers on the guest - those should be treated as deferent

[Qemu-devel] [RFC PATCH 2/2] qga: implement qmp_guest_get_os_version for windows

2014-12-15 Thread zhanghailiang
We can get guest's OS version info by using 'guest-get-os-version', The return value contains version name and type (32-bit or 64-bit). For example: {return:{name:Microsoft Windows Server 2012 R2,type:64}} Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com --- qga/commands-win32.c | 123