[Qemu-devel] [PATCH v6 0/1] qga: Add `guest-get-timezone` command

2017-04-19 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Changes since v5: - Dropped unnecessary g_time_zone_unref in error handling - Made implementation check for glib 2.28 or higher - Move variable declaration to function top Vinzenz Feenstra (1): qga: Add `guest-get-timezone` command qga/commands.c

[Qemu-devel] [PATCH v6 1/1] qga: Add `guest-get-timezone` command

2017-04-19 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Adds a new command `guest-get-timezone` reporting the currently configured timezone on the system. The information on what timezone is currently is configured is useful in case of Windows VMs where the offset of the hardware clock is required to have

[Qemu-devel] [PATCH v5 1/1] qga: Add 'guest-get-users' command

2017-04-19 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra A command that will list all currently logged in users, and the time since when they are logged in. Examples: virsh # qemu-agent-command F25 '{ "execute": "guest-get-users" }' {"return":[{"login-time":1490622289.903835,"user":"root"}]} virsh #

[Qemu-devel] [PATCH v5 0/1] qga: Add 'guest-get-users' command

2017-04-19 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Changes since v4: - Removed unnecessary ifdefs - Win32 implementation now uses W32_FT_OFFSET instead of custom constant - Moved variable declarations to the top of the function - Also ensure that only the earliest login time on Windows is reported

[Qemu-devel] [PATCH v4 0/1] qga: Add 'guest-get-users' command

2017-04-13 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Changes since v3: - Removed ifdef/endif around QGA_MICRO_SECOND_TO_SECOND Changes since v2: - Updated the documentation of login-time to be more precise what the value contains and what time is actually reported and in which format. Changes since

[Qemu-devel] [PATCH v4 1/1] qga: Add 'guest-get-users' command

2017-04-13 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra A command that will list all currently logged in users, and the time since when they are logged in. Examples: virsh # qemu-agent-command F25 '{ "execute": "guest-get-users" }' {"return":[{"login-time":1490622289.903835,"user":"root"}]} virsh #

[Qemu-devel] [PATCH v2 0/1] qga: Add 'guest-get-host-name' command

2017-04-04 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Since v1: - Renamed from FQDN to hostname and expanded documentation Vinzenz Feenstra (1): qga: Add 'guest-get-host-name' command qga/commands.c | 11 +++ qga/qapi-schema.json | 29 + 2 files changed, 40

[Qemu-devel] [PATCH v2 1/1] qga: Add 'guest-get-host-name' command

2017-04-04 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Retrieving the guest host name is a very useful feature for virtual management systems. This information can help to have more user friendly VM access details, instead of an IP there would be the host name. Also the host name reported can be used to

[Qemu-devel] [PATCH v3 1/1] qga: Add 'guest-get-users' command

2017-04-03 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra A command that will list all currently logged in users, and the time since when they are logged in. Examples: virsh # qemu-agent-command F25 '{ "execute": "guest-get-users" }' {"return":[{"login-time":1490622289.903835,"user":"root"}]} virsh #

[Qemu-devel] [PATCH v3 0/1] qga: Add 'guest-get-users' command

2017-04-03 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Changes since v2: - Updated the documentation of login-time to be more precise what the value contains and what time is actually reported and in which format. Changes since v1: - fixed spelling issues in the commit message and schema - added

[Qemu-devel] [PATCH v2 1/1] qga: Add 'guest-get-users' command

2017-04-03 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra A command that will list all currently logged in users, and the time since when they are logged in. Examples: virsh # qemu-agent-command F25 '{ "execute": "guest-get-users" }' {"return":[{"login-time":1490622289.903835,"user":"root"}]} virsh #

[Qemu-devel] [PATCH v2 0/1] qga: Add 'guest-get-users' command

2017-04-03 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Changes since v1: - fixed spelling issues in the commit message and schema - added login-time field which specifies the time the users logged on - applied changes suggested for glib hash table usage - added new link time library dependency for wtsapi32

[Qemu-devel] [PATCH v3] qemu-ga: add guest-get-osrelease command

2017-03-31 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Add a new 'guest-get-osrelease' command to report OS information in the os-release format. As documented here: https://www.freedesktop.org/software/systemd/man/os-release.html The win32 implementation generates the information. On POSIX systems the

[Qemu-devel] [PATCH v3] qemu-ga: add guest-get-osrelease command

2017-03-31 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra This is a concept change over v2 of the guest-get-osinfo command. The command now adds all information in the os-release format. Vinzenz Feenstra (1): qemu-ga: add guest-get-osrelease command qga/commands-posix.c | 41 +

[Qemu-devel] [PATCH v1] qga: Add 'guest-get-users' command

2017-03-28 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra A command that will list all currenctly logged in users having running processes. Examples: virsh # qemu-agent-command F25 '{ "execute": "guest-get-users" }' {"return":[{"user":"root"}]} virsh # qemu-agent-command Win2k12r2 '{ "execute":

[Qemu-devel] [PATCH v1] qga: Add 'guest-get-fqdn' command

2017-03-27 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Retrieving the guest OS fully qualified domain name (FQDN) is a very useful feature for virtual management systems. This information can help to have more user friendly VM access details, instead of an IP there would be the FQDN. Also the FQDN reported

[Qemu-devel] [PATCH v5] qga: Add `guest-get-timezone` command

2017-03-24 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Changes since v4: - Corrected usage of the optional zone (Missing has_zone = true) - Updated documentation string for offset in the schema - Removed unnecessary checks - Uses the current time to check for the interval, not 0 - Switched to UNIVERSAL

[Qemu-devel] [PATCH v5] qga: Add `guest-get-timezone` command

2017-03-24 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Adds a new command `guest-get-timezone` reporting the currently configured timezone on the system. The information on what timezone is currently is configured is useful in case of Windows VMs where the offset of the hardware clock is required to have

[Qemu-devel] [PATCH v4] qga: Add `guest-get-timezone` command

2017-03-23 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Changes since v3: - Made zone optional, and won't fail if the name can't be looked up. - Removed unncessary check for g_new0 allocation failure Vinzenz Feenstra (1): qga: Add `guest-get-timezone` command qga/commands.c | 34

[Qemu-devel] [PATCH v4] qga: Add `guest-get-timezone` command

2017-03-23 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Adds a new command `guest-get-timezone` reporting the currently configured timezone on the system. The information on what timezone is currently is configured is useful in case of Windows VMs where the offset of the hardware clock is required to have

[Qemu-devel] [PATCH v3] qga: Add `guest-get-timezone` command

2017-03-23 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Adds a new command `guest-get-timezone` reporting the currently configured timezone on the system. The information on what timezone is currently is configured is useful in case of Windows VMs where the offset of the hardware clock is required to have

[Qemu-devel] [PATCH v3] qga: Add `guest-get-timezone` command

2017-03-23 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Changes since v2: - Changed offset from reporting minutes to reporting seconds like it is returned from the used glib API - Applied more checks and better error handling in the implementation Vinzenz Feenstra (1): qga: Add `guest-get-timezone`

[Qemu-devel] [PATCH v2] qga: Add `guest-get-timezone` command

2017-03-23 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Adds a new command `guest-get-timezone` reporting the currently configured timezone on the system. The information on what timezone is currently is configured is useful in case of Windows VMs where the offset of the hardware clock is required to have

[Qemu-devel] Changes since v2 -qga: Add `guest-get-timezone` command

2017-03-23 Thread Vinzenz 'evilissimo' Feenstra
Updated the documentation according to comments of eblake

[Qemu-devel] [PATCH] qga: Add `guest-get-timezone` command

2017-03-22 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Adds a new command `guest-get-timezone` reporting the currently configured timezone on the system. The information on what timezone is currently is configured is useful in case of Windows VMs where the offset of the hardware clock is required to have

[Qemu-devel] [PATCH v2] qemu-ga: add guest-get-osinfo command

2017-03-22 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Add a new 'guest-get-osinfo' command for reporting basic information of the guest operating system (hereafter just 'OS'). This information includes the type of the OS, the version, and the architecture. Additionally reported would be a name,

[Qemu-devel] (no subject)

2017-03-22 Thread Vinzenz 'evilissimo' Feenstra
In this version: - Changed the use of strdup to g_strdup and the use of sprintf with a local buffer to use g_strdup_printf instead. - Made the majority of fields in the GuestOSInfo optional to allow 0 values - Used the right target version in the schema (2.10 vs 2.8 before) - Refactored the

[Qemu-devel] [PATCH] checkpatch: Supress warning in function pointer typedefs

2017-03-21 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra When importing dynamically functions via `GetProcAddress` in windows related code, it is quite common to make a typedef for the resulting function pointer. When the function to be imported, has a stdcall calling convention, usually the `WINAPI` macro

[Qemu-devel] [PATCH] qemu-ga: add guest-get-osinfo command

2017-03-21 Thread Vinzenz 'evilissimo' Feenstra
From: Vinzenz Feenstra Add a new 'guest-get-osinfo' command for reporting basic information of the guest operating system (hereafter just 'OS'). This information includes the type of the OS, the version, and the architecture. Additionally reported would be a name,