mirror of https://github.com/xemu-project/xemu.git
qga-pull-2024-01-30
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEwsLBCepDxjwUI+uE711egWG6hOcFAmW409sACgkQ711egWG6 hOc0PxAAj0Lhgt70OpAGQd5ERBgdRbh2/pJkKvdWBZvUAkVyFEp6Wn1UEC9aRpdi g8KCfYWVpp4LKMm5Ok1/8MKzAKT0jJFKatX0iZy/sx5M0A7x2/cJWgTv69L41Ld3 FoJM/a/te8VUSk/jPKMqf4G7BzqYyHDnAlcnLjnvUsUabnocjmpSSckCNWLtQ/Sz RCGOwaTJ4HKW9O7yuw4gcXeYf2G21UemkITLh7Kdv/6fqqlg3k2gRSQeQ11Xh9Tc Jst7511vs+9AvDVM67o84z6UQwlp+23IJb3PBG2Td+Odr7BDAturWE4yyqPtjcpf Kcy6uMO6ZNYSW9CAspIF271fObLBPdvvMCHabar8x3LwF/6SxdnVRnWbqVsY/LSZ j76VB7TashwxzgqXEqmSrJmCSiCU4L7k8+KU0XxqIg4howlHzoRlejuMZzVK8Hyt Cu5tqa6yq8+twxzP4qQhkvazGgYgWo/xNaZ8D3h6xxxZ4NE/hN24YodtyFV/NGWE VSvUpzTKettECcyPo3OGezOqcr0vW5Z776MQOsMQWAjwm3bjM8hMzuKglnJe7Lt4 DAbreHQ5s+pELQnq/cv7AVAr3zy2AIpPq4xDPJUHunAh+kMFY3cHCNaKytiRqmf+ kZtd4nSN9j5+0oE5jSiuPn9C96y3shGL95XR6WW0nN1ImWOVgx4= =Tl7c -----END PGP SIGNATURE----- Merge tag 'qga-pull-2024-01-30' of https://github.com/kostyanf14/qemu into staging qga-pull-2024-01-30 # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCAAdFiEEwsLBCepDxjwUI+uE711egWG6hOcFAmW409sACgkQ711egWG6 # hOc0PxAAj0Lhgt70OpAGQd5ERBgdRbh2/pJkKvdWBZvUAkVyFEp6Wn1UEC9aRpdi # g8KCfYWVpp4LKMm5Ok1/8MKzAKT0jJFKatX0iZy/sx5M0A7x2/cJWgTv69L41Ld3 # FoJM/a/te8VUSk/jPKMqf4G7BzqYyHDnAlcnLjnvUsUabnocjmpSSckCNWLtQ/Sz # RCGOwaTJ4HKW9O7yuw4gcXeYf2G21UemkITLh7Kdv/6fqqlg3k2gRSQeQ11Xh9Tc # Jst7511vs+9AvDVM67o84z6UQwlp+23IJb3PBG2Td+Odr7BDAturWE4yyqPtjcpf # Kcy6uMO6ZNYSW9CAspIF271fObLBPdvvMCHabar8x3LwF/6SxdnVRnWbqVsY/LSZ # j76VB7TashwxzgqXEqmSrJmCSiCU4L7k8+KU0XxqIg4howlHzoRlejuMZzVK8Hyt # Cu5tqa6yq8+twxzP4qQhkvazGgYgWo/xNaZ8D3h6xxxZ4NE/hN24YodtyFV/NGWE # VSvUpzTKettECcyPo3OGezOqcr0vW5Z776MQOsMQWAjwm3bjM8hMzuKglnJe7Lt4 # DAbreHQ5s+pELQnq/cv7AVAr3zy2AIpPq4xDPJUHunAh+kMFY3cHCNaKytiRqmf+ # kZtd4nSN9j5+0oE5jSiuPn9C96y3shGL95XR6WW0nN1ImWOVgx4= # =Tl7c # -----END PGP SIGNATURE----- # gpg: Signature made Tue 30 Jan 2024 10:47:55 GMT # gpg: using RSA key C2C2C109EA43C63C1423EB84EF5D5E8161BA84E7 # gpg: Good signature from "Kostiantyn Kostiuk (Upstream PR sign) <kkostiuk@redhat.com>" [unknown] # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: C2C2 C109 EA43 C63C 1423 EB84 EF5D 5E81 61BA 84E7 * tag 'qga-pull-2024-01-30' of https://github.com/kostyanf14/qemu: qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_ADDR_LEN qga-win: Fix guest-get-fsinfo multi-disks collection tests/unit/test-qga: do not qualify executable paths guest-agent: improve help for --allow-rpcs and --block-rpcs Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
bd2e12310b
|
@ -81,13 +81,13 @@ Options
|
||||||
|
|
||||||
.. option:: -b, --block-rpcs=LIST
|
.. option:: -b, --block-rpcs=LIST
|
||||||
|
|
||||||
Comma-separated list of RPCs to disable (no spaces, use ``help`` to
|
Comma-separated list of RPCs to disable (no spaces, use ``--block-rpcs=help``
|
||||||
list available RPCs).
|
to list available RPCs).
|
||||||
|
|
||||||
.. option:: -a, --allow-rpcs=LIST
|
.. option:: -a, --allow-rpcs=LIST
|
||||||
|
|
||||||
Comma-separated list of RPCs to enable (no spaces, use ``help`` to
|
Comma-separated list of RPCs to enable (no spaces, use ``--allow-rpcs=help``
|
||||||
list available RPCs).
|
to list available RPCs).
|
||||||
|
|
||||||
.. option:: -D, --dump-conf
|
.. option:: -D, --dump-conf
|
||||||
|
|
||||||
|
|
|
@ -45,9 +45,12 @@
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#if defined(__NetBSD__) || defined(__OpenBSD__)
|
#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(CONFIG_SOLARIS)
|
||||||
#include <net/if_arp.h>
|
#include <net/if_arp.h>
|
||||||
#include <netinet/if_ether.h>
|
#include <netinet/if_ether.h>
|
||||||
|
#if !defined(ETHER_ADDR_LEN) && defined(ETHERADDRL)
|
||||||
|
#define ETHER_ADDR_LEN ETHERADDRL
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <net/ethernet.h>
|
#include <net/ethernet.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -935,6 +935,8 @@ static GuestDiskAddressList *build_guest_disk_info(char *guid, Error **errp)
|
||||||
DWORD last_err = GetLastError();
|
DWORD last_err = GetLastError();
|
||||||
if (last_err == ERROR_MORE_DATA) {
|
if (last_err == ERROR_MORE_DATA) {
|
||||||
/* Try once more with big enough buffer */
|
/* Try once more with big enough buffer */
|
||||||
|
size = sizeof(VOLUME_DISK_EXTENTS) +
|
||||||
|
(sizeof(DISK_EXTENT) * (extents->NumberOfDiskExtents - 1));
|
||||||
g_free(extents);
|
g_free(extents);
|
||||||
extents = g_malloc0(size);
|
extents = g_malloc0(size);
|
||||||
if (!DeviceIoControl(
|
if (!DeviceIoControl(
|
||||||
|
|
|
@ -261,9 +261,9 @@ QEMU_COPYRIGHT "\n"
|
||||||
" -s, --service service commands: install, uninstall, vss-install, vss-uninstall\n"
|
" -s, --service service commands: install, uninstall, vss-install, vss-uninstall\n"
|
||||||
#endif
|
#endif
|
||||||
" -b, --block-rpcs comma-separated list of RPCs to disable (no spaces,\n"
|
" -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"
|
" -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"
|
" -D, --dump-conf dump a qemu-ga config file based on current config\n"
|
||||||
" options / command-line parameters to stdout\n"
|
" options / command-line parameters to stdout\n"
|
||||||
" -r, --retry-path attempt re-opening path if it's unavailable or closed\n"
|
" -r, --retry-path attempt re-opening path if it's unavailable or closed\n"
|
||||||
|
|
|
@ -822,7 +822,7 @@ static void test_qga_guest_exec(gconstpointer fix)
|
||||||
|
|
||||||
/* exec 'echo foo bar' */
|
/* exec 'echo foo bar' */
|
||||||
ret = qmp_fd(fixture->fd, "{'execute': 'guest-exec', 'arguments': {"
|
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 } }");
|
" 'capture-output': true } }");
|
||||||
g_assert_nonnull(ret);
|
g_assert_nonnull(ret);
|
||||||
qmp_assert_no_error(ret);
|
qmp_assert_no_error(ret);
|
||||||
|
@ -883,7 +883,7 @@ static void test_qga_guest_exec_separated(gconstpointer fix)
|
||||||
|
|
||||||
/* exec 'echo foo bar' */
|
/* exec 'echo foo bar' */
|
||||||
ret = qmp_fd(fixture->fd, "{'execute': 'guest-exec', 'arguments': {"
|
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;' ],"
|
" 'arg': [ '-c', 'for i in $(seq 4); do if (( $i %% 2 )); then echo stdout; else echo stderr 1>&2; fi; done;' ],"
|
||||||
" 'capture-output': 'separated' } }");
|
" 'capture-output': 'separated' } }");
|
||||||
g_assert_nonnull(ret);
|
g_assert_nonnull(ret);
|
||||||
|
@ -924,7 +924,7 @@ static void test_qga_guest_exec_merged(gconstpointer fix)
|
||||||
|
|
||||||
/* exec 'echo foo bar' */
|
/* exec 'echo foo bar' */
|
||||||
ret = qmp_fd(fixture->fd, "{'execute': 'guest-exec', 'arguments': {"
|
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;' ],"
|
" 'arg': [ '-c', 'for i in $(seq 4); do if (( $i %% 2 )); then echo stdout; else echo stderr 1>&2; fi; done;' ],"
|
||||||
" 'capture-output': 'merged' } }");
|
" 'capture-output': 'merged' } }");
|
||||||
g_assert_nonnull(ret);
|
g_assert_nonnull(ret);
|
||||||
|
|
Loading…
Reference in New Issue