OSDN Git Service

qemu-ga: add guest-get-osinfo command
authorTomáš Golembiovský <tgolembi@redhat.com>
Fri, 14 Jul 2017 14:28:56 +0000 (16:28 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 18 Jul 2017 10:48:57 +0000 (05:48 -0500)
commit9848f79740dc3bd2e0515470d24b8bec53904473
tree882946f5e11aa3ced19483a7cad7807b3cf902f5
parentcbcd9ba1b76425915c58c67153432ff1d743aefd
qemu-ga: add guest-get-osinfo command

Add a new 'guest-get-osinfo' command for reporting basic information of
the guest operating system. This includes machine architecture,
version and release of the kernel and several fields from os-release
file if it is present (as defined in [1]).

[1] https://www.freedesktop.org/software/systemd/man/os-release.html

Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
* moved declarations to beginning of functions
* dropped unecessary initialization of struct utsname
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c
qga/commands-win32.c
qga/qapi-schema.json