* [PULL 0/4] Misc changes guest agent
@ 2024-01-30 10:58 Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 1/4] guest-agent: improve help for --allow-rpcs and --block-rpcs Konstantin Kostiuk
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Konstantin Kostiuk @ 2024-01-30 10:58 UTC (permalink / raw)
To: qemu-devel, Peter Maydell, Stefan Hajnoczi
The following changes since commit 11be70677c70fdccd452a3233653949b79e97908:
Merge tag 'pull-vfio-20240129' of https://github.com/legoater/qemu into staging (2024-01-29 10:53:56 +0000)
are available in the Git repository at:
https://github.com/kostyanf14/qemu.git tags/qga-pull-2024-01-30
for you to fetch changes up to b3e0f64487a4b937d871ce4ce9c259e02ec02191:
qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_ADDR_LEN (2024-01-30 12:14:28 +0200)
----------------------------------------------------------------
qga-pull-2024-01-30
----------------------------------------------------------------
Angel M. Villegas (1):
guest-agent: improve help for --allow-rpcs and --block-rpcs
Nick Briggs (1):
qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_ADDR_LEN
Peng Ji (1):
qga-win: Fix guest-get-fsinfo multi-disks collection
Samuel Tardieu (1):
tests/unit/test-qga: do not qualify executable paths
docs/interop/qemu-ga.rst | 8 ++++----
qga/commands-posix.c | 5 ++++-
qga/commands-win32.c | 2 ++
qga/main.c | 4 ++--
tests/unit/test-qga.c | 6 +++---
5 files changed, 15 insertions(+), 10 deletions(-)
--
2.42.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PULL 1/4] guest-agent: improve help for --allow-rpcs and --block-rpcs
2024-01-30 10:58 [PULL 0/4] Misc changes guest agent Konstantin Kostiuk
@ 2024-01-30 10:58 ` Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 2/4] tests/unit/test-qga: do not qualify executable paths Konstantin Kostiuk
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Konstantin Kostiuk @ 2024-01-30 10:58 UTC (permalink / raw)
To: qemu-devel, Peter Maydell, Stefan Hajnoczi
From: "Angel M. Villegas" <anvilleg@cisco.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1757
Updates to qga help output and documentation for --allow-rpcs and --blocks-rpcs
Signed-off-by: "Angel M. Villegas" <anvilleg@cisco.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
docs/interop/qemu-ga.rst | 8 ++++----
qga/main.c | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/interop/qemu-ga.rst b/docs/interop/qemu-ga.rst
index 461c5a35ee..72fb75a6f5 100644
--- a/docs/interop/qemu-ga.rst
+++ b/docs/interop/qemu-ga.rst
@@ -81,13 +81,13 @@ Options
.. option:: -b, --block-rpcs=LIST
- Comma-separated list of RPCs to disable (no spaces, use ``help`` to
- list available RPCs).
+ Comma-separated list of RPCs to disable (no spaces, use ``--block-rpcs=help``
+ to list available RPCs).
.. option:: -a, --allow-rpcs=LIST
- Comma-separated list of RPCs to enable (no spaces, use ``help`` to
- list available RPCs).
+ Comma-separated list of RPCs to enable (no spaces, use ``--allow-rpcs=help``
+ to list available RPCs).
.. option:: -D, --dump-conf
diff --git a/qga/main.c b/qga/main.c
index 8668b9f3d3..bdf5344584 100644
--- a/qga/main.c
+++ b/qga/main.c
@@ -261,9 +261,9 @@ QEMU_COPYRIGHT "\n"
" -s, --service service commands: install, uninstall, vss-install, vss-uninstall\n"
#endif
" -b, --block-rpcs comma-separated list of RPCs to disable (no spaces,\n"
-" use \"help\" to list available RPCs)\n"
+" use \"--block-rpcs=help\" to list available RPCs)\n"
" -a, --allow-rpcs comma-separated list of RPCs to enable (no spaces,\n"
-" use \"help\" to list available RPCs)\n"
+" use \"--allow-rpcs=help\" to list available RPCs)\n"
" -D, --dump-conf dump a qemu-ga config file based on current config\n"
" options / command-line parameters to stdout\n"
" -r, --retry-path attempt re-opening path if it's unavailable or closed\n"
--
2.42.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PULL 2/4] tests/unit/test-qga: do not qualify executable paths
2024-01-30 10:58 [PULL 0/4] Misc changes guest agent Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 1/4] guest-agent: improve help for --allow-rpcs and --block-rpcs Konstantin Kostiuk
@ 2024-01-30 10:58 ` Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 3/4] qga-win: Fix guest-get-fsinfo multi-disks collection Konstantin Kostiuk
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Konstantin Kostiuk @ 2024-01-30 10:58 UTC (permalink / raw)
To: qemu-devel, Peter Maydell, Stefan Hajnoczi
From: Samuel Tardieu <sam@rfc1149.net>
guest-exec invocation does not need the full path of the executable to
execute. Using only the command names ensures correct execution of the
test on systems not adhering to the FHS.
Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
tests/unit/test-qga.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/unit/test-qga.c b/tests/unit/test-qga.c
index 671e83cb86..8cddf5dc37 100644
--- a/tests/unit/test-qga.c
+++ b/tests/unit/test-qga.c
@@ -822,7 +822,7 @@ static void test_qga_guest_exec(gconstpointer fix)
/* exec 'echo foo bar' */
ret = qmp_fd(fixture->fd, "{'execute': 'guest-exec', 'arguments': {"
- " 'path': '/bin/echo', 'arg': [ '-n', '\" test_str \"' ],"
+ " 'path': 'echo', 'arg': [ '-n', '\" test_str \"' ],"
" 'capture-output': true } }");
g_assert_nonnull(ret);
qmp_assert_no_error(ret);
@@ -883,7 +883,7 @@ static void test_qga_guest_exec_separated(gconstpointer fix)
/* exec 'echo foo bar' */
ret = qmp_fd(fixture->fd, "{'execute': 'guest-exec', 'arguments': {"
- " 'path': '/bin/bash',"
+ " 'path': 'bash',"
" 'arg': [ '-c', 'for i in $(seq 4); do if (( $i %% 2 )); then echo stdout; else echo stderr 1>&2; fi; done;' ],"
" 'capture-output': 'separated' } }");
g_assert_nonnull(ret);
@@ -924,7 +924,7 @@ static void test_qga_guest_exec_merged(gconstpointer fix)
/* exec 'echo foo bar' */
ret = qmp_fd(fixture->fd, "{'execute': 'guest-exec', 'arguments': {"
- " 'path': '/bin/bash',"
+ " 'path': 'bash',"
" 'arg': [ '-c', 'for i in $(seq 4); do if (( $i %% 2 )); then echo stdout; else echo stderr 1>&2; fi; done;' ],"
" 'capture-output': 'merged' } }");
g_assert_nonnull(ret);
--
2.42.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PULL 3/4] qga-win: Fix guest-get-fsinfo multi-disks collection
2024-01-30 10:58 [PULL 0/4] Misc changes guest agent Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 1/4] guest-agent: improve help for --allow-rpcs and --block-rpcs Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 2/4] tests/unit/test-qga: do not qualify executable paths Konstantin Kostiuk
@ 2024-01-30 10:58 ` Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 4/4] qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_ADDR_LEN Konstantin Kostiuk
2024-01-31 19:52 ` [PULL 0/4] Misc changes guest agent Peter Maydell
4 siblings, 0 replies; 6+ messages in thread
From: Konstantin Kostiuk @ 2024-01-30 10:58 UTC (permalink / raw)
To: qemu-devel, Peter Maydell, Stefan Hajnoczi
From: Peng Ji <peng.ji@smartx.com>
When a volume has more than one disk, all disks cannot be
returned correctly because there is not enough malloced memory
for disk extents, so before executing DeviceIoControl for the
second time, get the correct size of the required memory space
to store all disk extents.
Details:
https://learn.microsoft.com/en-us/windows/win32/api/winioctl/ns-winioctl-volume_disk_extents
Signed-off-by: Peng Ji <peng.ji@smartx.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
qga/commands-win32.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/qga/commands-win32.c b/qga/commands-win32.c
index 697c65507c..a1015757d8 100644
--- a/qga/commands-win32.c
+++ b/qga/commands-win32.c
@@ -935,6 +935,8 @@ static GuestDiskAddressList *build_guest_disk_info(char *guid, Error **errp)
DWORD last_err = GetLastError();
if (last_err == ERROR_MORE_DATA) {
/* Try once more with big enough buffer */
+ size = sizeof(VOLUME_DISK_EXTENTS) +
+ (sizeof(DISK_EXTENT) * (extents->NumberOfDiskExtents - 1));
g_free(extents);
extents = g_malloc0(size);
if (!DeviceIoControl(
--
2.42.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PULL 4/4] qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_ADDR_LEN
2024-01-30 10:58 [PULL 0/4] Misc changes guest agent Konstantin Kostiuk
` (2 preceding siblings ...)
2024-01-30 10:58 ` [PULL 3/4] qga-win: Fix guest-get-fsinfo multi-disks collection Konstantin Kostiuk
@ 2024-01-30 10:58 ` Konstantin Kostiuk
2024-01-31 19:52 ` [PULL 0/4] Misc changes guest agent Peter Maydell
4 siblings, 0 replies; 6+ messages in thread
From: Konstantin Kostiuk @ 2024-01-30 10:58 UTC (permalink / raw)
To: qemu-devel, Peter Maydell, Stefan Hajnoczi
From: Nick Briggs <nicholas.h.briggs@gmail.com>
Solaris has net/if_arp.h and netinet/if_ether.h rather than net/ethernet.h,
but does not define ETHER_ADDR_LEN, instead providing ETHERADDRL.
Signed-off-by: Nick Briggs <nicholas.h.briggs@gmail.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
qga/commands-posix.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 6169bbf7a0..26008db497 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -45,9 +45,12 @@
#include <arpa/inet.h>
#include <sys/socket.h>
#include <net/if.h>
-#if defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(CONFIG_SOLARIS)
#include <net/if_arp.h>
#include <netinet/if_ether.h>
+#if !defined(ETHER_ADDR_LEN) && defined(ETHERADDRL)
+#define ETHER_ADDR_LEN ETHERADDRL
+#endif
#else
#include <net/ethernet.h>
#endif
--
2.42.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PULL 0/4] Misc changes guest agent
2024-01-30 10:58 [PULL 0/4] Misc changes guest agent Konstantin Kostiuk
` (3 preceding siblings ...)
2024-01-30 10:58 ` [PULL 4/4] qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_ADDR_LEN Konstantin Kostiuk
@ 2024-01-31 19:52 ` Peter Maydell
4 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2024-01-31 19:52 UTC (permalink / raw)
To: Konstantin Kostiuk; +Cc: qemu-devel, Stefan Hajnoczi
On Tue, 30 Jan 2024 at 10:59, Konstantin Kostiuk <kkostiuk@redhat.com> wrote:
>
> The following changes since commit 11be70677c70fdccd452a3233653949b79e97908:
>
> Merge tag 'pull-vfio-20240129' of https://github.com/legoater/qemu into staging (2024-01-29 10:53:56 +0000)
>
> are available in the Git repository at:
>
> https://github.com/kostyanf14/qemu.git tags/qga-pull-2024-01-30
>
> for you to fetch changes up to b3e0f64487a4b937d871ce4ce9c259e02ec02191:
>
> qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_ADDR_LEN (2024-01-30 12:14:28 +0200)
>
> ----------------------------------------------------------------
> qga-pull-2024-01-30
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/9.0
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-01-31 19:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-30 10:58 [PULL 0/4] Misc changes guest agent Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 1/4] guest-agent: improve help for --allow-rpcs and --block-rpcs Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 2/4] tests/unit/test-qga: do not qualify executable paths Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 3/4] qga-win: Fix guest-get-fsinfo multi-disks collection Konstantin Kostiuk
2024-01-30 10:58 ` [PULL 4/4] qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_ADDR_LEN Konstantin Kostiuk
2024-01-31 19:52 ` [PULL 0/4] Misc changes guest agent Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).