From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0mcC-0000Lz-Ot for qemu-devel@nongnu.org; Tue, 16 Dec 2014 02:32:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0mc6-0002Hk-K0 for qemu-devel@nongnu.org; Tue, 16 Dec 2014 02:32:16 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:14713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0mc5-0002FY-U2 for qemu-devel@nongnu.org; Tue, 16 Dec 2014 02:32:10 -0500 From: zhanghailiang Date: Tue, 16 Dec 2014 15:30:36 +0800 Message-ID: <1418715038-4664-1-git-send-email-zhang.zhanghailiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [RFC PATCH 0/2] qga: add guest-get-os-version for windows List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: zhanghailiang , peter.huangpeng@huawei.com, mdroth@linux.vnet.ibm.com, lcapitulino@redhat.com, lersek@redhat.com, lilei@linux.vnet.ibm.com Hi, This patch series add a new guest command 'guest-get-os-version'. It is now only available for windows guest. It will return guest's OS version name and type, like bellow: '{"return":{"name":"Microsoft Windows Server 2012 R2","type":64}}' Sometimes we need to know guest's OS version info. (Actually, we need this info when we update guest's applications and drivers in our project.) This patch is only RFC, it is another try to add more commands for qemu-ga. Though qemu-ga has supported some commands now, but it is not enough and some of them only support for linux ... I would like to enrich it, if someone think it is acceptable. So, any comments will be welcome! Thanks ;) zhanghailiang (2): qga: Introduce guest-get-os-version command with stubs qga: implement qmp_guest_get_os_version for windows qga/commands-posix.c | 7 +++ qga/commands-win32.c | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++ qga/qapi-schema.json | 26 +++++++++++ 3 files changed, 158 insertions(+) -- 1.7.12.4