[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v3 2/2] Implement SSH commands in QEMU GA for Windows
From: |
Aidan Leuck |
Subject: |
RE: [PATCH v3 2/2] Implement SSH commands in QEMU GA for Windows |
Date: |
Wed, 27 Mar 2024 14:38:05 +0000 |
Hi Philippe,
Thank you for your feedback I will get these issues addressed. I left one small
comment on the QAPI schema JSON.
Aidan Leuck
-----Original Message-----
From: Philippe Mathieu-Daudé <philmd@linaro.org>
Sent: Monday, March 25, 2024 11:51 AM
To: Aidan Leuck <aidan_leuck@selinc.com>; qemu-devel@nongnu.org
Cc: kkostiuk@redhat.com; berrange@redhat.com
Subject: Re: [PATCH v3 2/2] Implement SSH commands in QEMU GA for Windows
[Caution - External]
On 22/3/24 18:46, aidan_leuck@selinc.com wrote:
> From: Aidan Leuck <aidan_leuck@selinc.com>
>
> Signed-off-by: Aidan Leuck <aidan_leuck@selinc.com>
> ---
> qga/commands-windows-ssh.c | 791
> +++++++++++++++++++++++++++++++++++++
Huge file, I'm skipping it.
> qga/commands-windows-ssh.h | 26 ++
> qga/meson.build | 5 +-
> qga/qapi-schema.json | 17 +-
> 4 files changed, 828 insertions(+), 11 deletions(-)
> create mode 100644 qga/commands-windows-ssh.c
> create mode 100644 qga/commands-windows-ssh.h
> diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index
> 9554b566a7..a64a6d91cf 100644
> --- a/qga/qapi-schema.json
> +++ b/qga/qapi-schema.json
> @@ -1562,9 +1562,8 @@
> { 'struct': 'GuestAuthorizedKeys',
> 'data': {
> 'keys': ['str']
> - },
> - 'if': 'CONFIG_POSIX' }
> -
For Windows you have to check the CONFIG_WIN32 definition, so you want:
I don't think this is necessary, the QEMU guest agent is compiled for only
POSIX and Windows. I don't see this pattern being used elsewhere in the qapi
schema file. I would be interested in what the maintainers think?
'if': { 'any': [ 'CONFIG_POSIX',
'CONFIG_WIN32' ] },
> + }
> +}
>
> ##
> # @guest-ssh-get-authorized-keys:
> @@ -1580,8 +1579,8 @@
> ##
> { 'command': 'guest-ssh-get-authorized-keys',
> 'data': { 'username': 'str' },
> - 'returns': 'GuestAuthorizedKeys',
> - 'if': 'CONFIG_POSIX' }
> + 'returns': 'GuestAuthorizedKeys'
> +}
>
> ##
> # @guest-ssh-add-authorized-keys:
> @@ -1599,8 +1598,8 @@
> # Since: 5.2
> ##
> { 'command': 'guest-ssh-add-authorized-keys',
> - 'data': { 'username': 'str', 'keys': ['str'], '*reset': 'bool' },
> - 'if': 'CONFIG_POSIX' }
> + 'data': { 'username': 'str', 'keys': ['str'], '*reset': 'bool' } }
>
> ##
> # @guest-ssh-remove-authorized-keys:
> @@ -1617,8 +1616,8 @@
> # Since: 5.2
> ##
> { 'command': 'guest-ssh-remove-authorized-keys',
> - 'data': { 'username': 'str', 'keys': ['str'] },
> - 'if': 'CONFIG_POSIX' }
> + 'data': { 'username': 'str', 'keys': ['str'] } }
>
> ##
> # @GuestDiskStats: