2007-06-11 11:36:17 +00:00
|
|
|
/* -*- c -*-
|
|
|
|
* remote_protocol.x: private protocol for communicating between
|
|
|
|
* remote_internal driver and libvirtd. This protocol is
|
|
|
|
* internal and may change at any time.
|
|
|
|
*
|
2015-02-09 23:59:23 +00:00
|
|
|
* Copyright (C) 2006-2015 Red Hat, Inc.
|
2007-06-11 11:36:17 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-09-20 22:30:55 +00:00
|
|
|
* License along with this library. If not, see
|
2012-07-26 22:58:02 +00:00
|
|
|
* <http://www.gnu.org/licenses/>.
|
2007-06-11 11:36:17 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Notes:
|
|
|
|
*
|
|
|
|
* (1) The protocol is internal and may change at any time, without
|
|
|
|
* notice. Do not use it. Instead link to libvirt and use the remote
|
|
|
|
* driver.
|
|
|
|
*
|
|
|
|
* (2) See bottom of this file for a description of the home-brew RPC.
|
|
|
|
*
|
|
|
|
* (3) Authentication/encryption is done outside this protocol.
|
|
|
|
*
|
|
|
|
* (4) For namespace reasons, all exported names begin 'remote_' or
|
|
|
|
* 'REMOTE_'. This makes names quite long.
|
|
|
|
*/
|
|
|
|
|
2013-04-17 15:14:52 +00:00
|
|
|
%#include <libvirt/libvirt.h>
|
Standardize use of header files, making internal.h primary.
* qemud/internal.h, qemud/qemud.h: Rename this file so it
doesn't conflict with src/internal.h.
* HACKING: Document how header files should be used.
* qemud/Makefile.am: Add src/ directory to includes.
* qemud/event.c, qemud/mdns.c, qemud/qemud.c, qemud/remote.c,
qemud/remote_protocol.c, qemud/remote_protocol.h,
qemud/remote_protocol.x, src/buf.c, src/libvirt.c,
src/nodeinfo.c, src/qemu_conf.c, src/qemu_driver.c,
src/stats_linux.c, src/storage_backend.c, src/storage_backend_fs.c,
src/storage_backend_iscsi.c, src/storage_backend_logical.c,
src/storage_conf.c, src/storage_driver.c, src/util.c,
src/util.h, src/virsh.c, src/virterror.c, src/xend_internal.c,
src/xml.c, tests/reconnect.c, tests/xmlrpctest.c,
tests/qparamtest.c: Standardize use of header files.
* docs/*, po/*: Rebuild docs.
2008-05-23 08:24:41 +00:00
|
|
|
%#include "internal.h"
|
2016-01-09 22:37:33 +00:00
|
|
|
%#include "virxdrdefs.h"
|
2020-01-14 17:38:59 +00:00
|
|
|
%#include "virsocket.h"
|
2007-06-11 11:36:17 +00:00
|
|
|
|
|
|
|
/*----- Data types. -----*/
|
|
|
|
|
|
|
|
/* Length of long, but not unbounded, strings.
|
|
|
|
* This is an arbitrary limit designed to stop the decoder from trying
|
|
|
|
* to allocate unbounded amounts of memory when fed with a bad message.
|
|
|
|
*/
|
2013-05-07 11:22:00 +00:00
|
|
|
const REMOTE_STRING_MAX = 4194304;
|
2007-06-11 11:36:17 +00:00
|
|
|
|
|
|
|
/* A long string, which may NOT be NULL. */
|
|
|
|
typedef string remote_nonnull_string<REMOTE_STRING_MAX>;
|
|
|
|
|
|
|
|
/* A long string, which may be NULL. */
|
|
|
|
typedef remote_nonnull_string *remote_string;
|
|
|
|
|
2019-07-26 15:34:15 +00:00
|
|
|
/* Upper limit on identity parameters */
|
|
|
|
const REMOTE_CONNECT_IDENTITY_PARAMS_MAX = 20;
|
|
|
|
|
2013-08-19 13:23:31 +00:00
|
|
|
/* Upper limit on lists of domains. */
|
|
|
|
const REMOTE_DOMAIN_LIST_MAX = 16384;
|
2007-06-11 11:36:17 +00:00
|
|
|
|
|
|
|
/* Upper limit on cpumap (bytes) passed to virDomainPinVcpu. */
|
2013-05-28 12:29:12 +00:00
|
|
|
const REMOTE_CPUMAP_MAX = 2048;
|
2007-06-11 11:36:17 +00:00
|
|
|
|
|
|
|
/* Upper limit on number of info fields returned by virDomainGetVcpus. */
|
2013-05-28 12:29:12 +00:00
|
|
|
const REMOTE_VCPUINFO_MAX = 16384;
|
2007-06-11 11:36:17 +00:00
|
|
|
|
|
|
|
/* Upper limit on cpumaps (bytes) passed to virDomainGetVcpus. */
|
2013-05-28 12:29:12 +00:00
|
|
|
const REMOTE_CPUMAPS_MAX = 8388608;
|
2007-06-11 11:36:17 +00:00
|
|
|
|
2015-02-09 23:59:23 +00:00
|
|
|
/* Upper limit on number of info fields returned by virDomainGetIOThreads. */
|
2015-03-25 16:02:26 +00:00
|
|
|
const REMOTE_IOTHREAD_INFO_MAX = 16384;
|
2015-02-09 23:59:23 +00:00
|
|
|
|
2007-08-21 09:31:12 +00:00
|
|
|
/* Upper limit on migrate cookie. */
|
2014-05-28 12:42:55 +00:00
|
|
|
const REMOTE_MIGRATE_COOKIE_MAX = 4194304;
|
2007-08-21 09:31:12 +00:00
|
|
|
|
2013-08-19 13:37:29 +00:00
|
|
|
/* Upper limit on lists of networks. */
|
|
|
|
const REMOTE_NETWORK_LIST_MAX = 16384;
|
2007-06-11 11:36:17 +00:00
|
|
|
|
2018-12-10 17:43:42 +00:00
|
|
|
/* Upper limit on lists of network ports. */
|
|
|
|
const REMOTE_NETWORK_PORT_LIST_MAX = 16384;
|
|
|
|
|
2013-08-19 13:41:56 +00:00
|
|
|
/* Upper limit on lists of interfaces. */
|
|
|
|
const REMOTE_INTERFACE_LIST_MAX = 16384;
|
2009-07-16 15:58:15 +00:00
|
|
|
|
2013-08-19 13:27:56 +00:00
|
|
|
/* Upper limit on lists of storage pools. */
|
2017-05-11 10:34:21 +00:00
|
|
|
const REMOTE_STORAGE_POOL_LIST_MAX = 16384;
|
2008-02-20 15:22:35 +00:00
|
|
|
|
2013-08-19 13:33:58 +00:00
|
|
|
/* Upper limit on lists of storage vols. */
|
|
|
|
const REMOTE_STORAGE_VOL_LIST_MAX = 16384;
|
2008-02-20 15:22:35 +00:00
|
|
|
|
2013-08-19 13:44:52 +00:00
|
|
|
/* Upper limit on lists of node devices. */
|
2017-02-10 13:56:51 +00:00
|
|
|
const REMOTE_NODE_DEVICE_LIST_MAX = 65536;
|
2008-11-21 12:31:04 +00:00
|
|
|
|
|
|
|
/* Upper limit on lists of node device capabilities. */
|
2012-04-27 12:49:48 +00:00
|
|
|
const REMOTE_NODE_DEVICE_CAPS_LIST_MAX = 65536;
|
2008-11-21 12:31:04 +00:00
|
|
|
|
2013-08-19 13:47:22 +00:00
|
|
|
/* Upper limit on lists of network filters. */
|
2017-05-11 10:34:21 +00:00
|
|
|
const REMOTE_NWFILTER_LIST_MAX = 16384;
|
2010-03-25 17:46:03 +00:00
|
|
|
|
2018-05-09 16:18:58 +00:00
|
|
|
/* Upper limit on lists of network filter bindings. */
|
|
|
|
const REMOTE_NWFILTER_BINDING_LIST_MAX = 16384;
|
|
|
|
|
2007-06-22 13:16:10 +00:00
|
|
|
/* Upper limit on list of scheduler parameters. */
|
|
|
|
const REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX = 16;
|
|
|
|
|
2011-02-22 05:34:28 +00:00
|
|
|
/* Upper limit on list of blkio parameters. */
|
|
|
|
const REMOTE_DOMAIN_BLKIO_PARAMETERS_MAX = 16;
|
|
|
|
|
2010-10-12 17:23:04 +00:00
|
|
|
/* Upper limit on list of memory parameters. */
|
|
|
|
const REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX = 16;
|
|
|
|
|
2011-11-15 09:02:44 +00:00
|
|
|
/* Upper limit on list of blockio tuning parameters. */
|
2016-10-04 11:07:20 +00:00
|
|
|
const REMOTE_DOMAIN_BLOCK_IO_TUNE_PARAMETERS_MAX = 32;
|
2011-11-15 09:02:44 +00:00
|
|
|
|
2011-12-20 08:35:01 +00:00
|
|
|
/* Upper limit on list of numa parameters. */
|
|
|
|
const REMOTE_DOMAIN_NUMA_PARAMETERS_MAX = 16;
|
|
|
|
|
2016-03-28 13:30:27 +00:00
|
|
|
/* Upper limit on list of perf events. */
|
|
|
|
const REMOTE_DOMAIN_PERF_EVENTS_MAX = 64;
|
|
|
|
|
2014-08-24 02:09:56 +00:00
|
|
|
/* Upper limit on block copy tunable parameters. */
|
|
|
|
const REMOTE_DOMAIN_BLOCK_COPY_PARAMETERS_MAX = 16;
|
|
|
|
|
2011-06-07 01:01:12 +00:00
|
|
|
/* Upper limit on list of node cpu stats. */
|
|
|
|
const REMOTE_NODE_CPU_STATS_MAX = 16;
|
|
|
|
|
2011-06-07 01:05:40 +00:00
|
|
|
/* Upper limit on list of node memory stats. */
|
|
|
|
const REMOTE_NODE_MEMORY_STATS_MAX = 16;
|
|
|
|
|
2011-09-05 08:20:03 +00:00
|
|
|
/* Upper limit on list of block stats. */
|
|
|
|
const REMOTE_DOMAIN_BLOCK_STATS_PARAMETERS_MAX = 16;
|
|
|
|
|
2008-05-22 15:20:25 +00:00
|
|
|
/* Upper limit on number of NUMA cells */
|
|
|
|
const REMOTE_NODE_MAX_CELLS = 1024;
|
|
|
|
|
2007-12-05 15:24:15 +00:00
|
|
|
/* Upper limit on SASL auth negotiation packet */
|
|
|
|
const REMOTE_AUTH_SASL_DATA_MAX = 65536;
|
|
|
|
|
|
|
|
/* Maximum number of auth types */
|
|
|
|
const REMOTE_AUTH_TYPE_LIST_MAX = 20;
|
|
|
|
|
2009-12-20 12:43:19 +00:00
|
|
|
/* Upper limit on list of memory stats */
|
|
|
|
const REMOTE_DOMAIN_MEMORY_STATS_MAX = 1024;
|
|
|
|
|
2019-03-06 17:54:47 +00:00
|
|
|
/* Upper limit on lists of domain checkpoints. */
|
|
|
|
const REMOTE_DOMAIN_CHECKPOINT_LIST_MAX = 16384;
|
|
|
|
|
2010-03-31 20:33:13 +00:00
|
|
|
/* Upper limit on lists of domain snapshots. */
|
2017-05-11 10:34:21 +00:00
|
|
|
const REMOTE_DOMAIN_SNAPSHOT_LIST_MAX = 16384;
|
2010-03-31 20:33:13 +00:00
|
|
|
|
2008-06-10 10:43:28 +00:00
|
|
|
/* Maximum length of a block peek buffer message.
|
2008-06-05 21:12:26 +00:00
|
|
|
* Note applications need to be aware of this limit and issue multiple
|
|
|
|
* requests for large amounts of data.
|
|
|
|
*/
|
2013-05-07 11:22:00 +00:00
|
|
|
const REMOTE_DOMAIN_BLOCK_PEEK_BUFFER_MAX = 4194304;
|
2008-06-05 21:12:26 +00:00
|
|
|
|
2008-06-10 10:43:28 +00:00
|
|
|
/* Maximum length of a memory peek buffer message.
|
|
|
|
* Note applications need to be aware of this limit and issue multiple
|
|
|
|
* requests for large amounts of data.
|
|
|
|
*/
|
2013-05-07 11:22:00 +00:00
|
|
|
const REMOTE_DOMAIN_MEMORY_PEEK_BUFFER_MAX = 4194304;
|
2008-06-10 10:43:28 +00:00
|
|
|
|
2012-08-15 22:10:39 +00:00
|
|
|
/*
|
|
|
|
* Maximum length of a security label list.
|
|
|
|
*/
|
|
|
|
const REMOTE_SECURITY_LABEL_LIST_MAX=64;
|
|
|
|
|
2009-03-03 09:27:02 +00:00
|
|
|
/*
|
|
|
|
* Maximum length of a security model field.
|
|
|
|
*/
|
|
|
|
const REMOTE_SECURITY_MODEL_MAX = VIR_SECURITY_MODEL_BUFLEN;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Maximum length of a security label field.
|
|
|
|
*/
|
|
|
|
const REMOTE_SECURITY_LABEL_MAX = VIR_SECURITY_LABEL_BUFLEN;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Maximum length of a security DOI field.
|
|
|
|
*/
|
|
|
|
const REMOTE_SECURITY_DOI_MAX = VIR_SECURITY_DOI_BUFLEN;
|
|
|
|
|
2009-07-28 02:01:00 +00:00
|
|
|
/*
|
|
|
|
* Maximum size of a secret value.
|
|
|
|
*/
|
|
|
|
const REMOTE_SECRET_VALUE_MAX = 65536;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Upper limit on list of secrets.
|
|
|
|
*/
|
2013-08-19 13:49:57 +00:00
|
|
|
const REMOTE_SECRET_LIST_MAX = 16384;
|
2009-07-28 02:01:00 +00:00
|
|
|
|
2010-02-02 13:39:05 +00:00
|
|
|
/*
|
|
|
|
* Upper limit on list of CPUs accepted when computing a baseline CPU.
|
|
|
|
*/
|
|
|
|
const REMOTE_CPU_BASELINE_MAX = 256;
|
|
|
|
|
2011-06-07 09:11:15 +00:00
|
|
|
/*
|
|
|
|
* Max number of sending keycodes.
|
|
|
|
*/
|
|
|
|
const REMOTE_DOMAIN_SEND_KEY_MAX = 16;
|
|
|
|
|
2011-12-29 07:33:18 +00:00
|
|
|
/*
|
|
|
|
* Upper limit on list of interface parameters
|
|
|
|
*/
|
|
|
|
const REMOTE_DOMAIN_INTERFACE_PARAMETERS_MAX = 16;
|
|
|
|
|
2012-01-28 06:21:31 +00:00
|
|
|
/*
|
|
|
|
* Upper limit on cpus involved in per-cpu stats
|
|
|
|
*/
|
|
|
|
const REMOTE_DOMAIN_GET_CPU_STATS_NCPUS_MAX = 128;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Upper limit on list of per-cpu stats:
|
|
|
|
* REMOTE_NODE_CPU_STATS_MAX * REMOTE_DOMAIN_GET_CPU_STATS_MAX
|
|
|
|
*/
|
|
|
|
const REMOTE_DOMAIN_GET_CPU_STATS_MAX = 2048;
|
|
|
|
|
2012-01-31 06:42:31 +00:00
|
|
|
/*
|
|
|
|
* Upper limit on number of disks with errors
|
|
|
|
*/
|
|
|
|
const REMOTE_DOMAIN_DISK_ERRORS_MAX = 256;
|
|
|
|
|
2012-09-14 14:42:15 +00:00
|
|
|
/*
|
|
|
|
* Upper limit on number of memory parameters
|
|
|
|
*/
|
|
|
|
const REMOTE_NODE_MEMORY_PARAMETERS_MAX = 64;
|
|
|
|
|
2013-08-19 13:55:21 +00:00
|
|
|
/* Upper limit on migrate parameters */
|
|
|
|
const REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX = 64;
|
|
|
|
|
2022-05-06 13:10:53 +00:00
|
|
|
/* Upper limit on save/restore parameters */
|
|
|
|
const REMOTE_DOMAIN_SAVE_PARAMS_MAX = 64;
|
|
|
|
|
2013-08-19 11:42:31 +00:00
|
|
|
/* Upper limit on number of job stats */
|
2013-09-27 08:48:02 +00:00
|
|
|
const REMOTE_DOMAIN_JOB_STATS_MAX = 64;
|
2013-08-19 11:42:31 +00:00
|
|
|
|
2013-09-23 09:46:00 +00:00
|
|
|
/* Upper limit on number of CPU models */
|
|
|
|
const REMOTE_CONNECT_CPU_MODELS_MAX = 8192;
|
|
|
|
|
2014-05-02 00:05:54 +00:00
|
|
|
/* Upper limit on number of mountpoints to frozen */
|
|
|
|
const REMOTE_DOMAIN_FSFREEZE_MOUNTPOINTS_MAX = 256;
|
|
|
|
|
2014-06-23 21:01:50 +00:00
|
|
|
/* Upper limit on the maximum number of leases in one lease file */
|
|
|
|
const REMOTE_NETWORK_DHCP_LEASES_MAX = 65536;
|
|
|
|
|
2014-08-25 11:22:13 +00:00
|
|
|
/* Upper limit on count of parameters returned via bulk stats API */
|
2017-05-26 12:24:49 +00:00
|
|
|
const REMOTE_CONNECT_GET_ALL_DOMAIN_STATS_MAX = 262144;
|
2014-08-25 11:22:13 +00:00
|
|
|
|
2014-09-10 11:28:24 +00:00
|
|
|
/* Upper limit of message size for tunable event. */
|
2014-09-24 07:43:31 +00:00
|
|
|
const REMOTE_DOMAIN_EVENT_TUNABLE_MAX = 2048;
|
2014-09-10 11:28:24 +00:00
|
|
|
|
2014-11-22 01:27:31 +00:00
|
|
|
/* Upper limit on number of mountpoints in fsinfo */
|
|
|
|
const REMOTE_DOMAIN_FSINFO_MAX = 256;
|
|
|
|
|
|
|
|
/* Upper limit on number of disks per mountpoint in fsinfo */
|
|
|
|
const REMOTE_DOMAIN_FSINFO_DISKS_MAX = 256;
|
|
|
|
|
2015-01-25 18:38:47 +00:00
|
|
|
/* Upper limit on number of interfaces per domain */
|
|
|
|
const REMOTE_DOMAIN_INTERFACE_MAX = 2048;
|
|
|
|
|
|
|
|
/* Upper limit on number of IP addresses per interface */
|
|
|
|
const REMOTE_DOMAIN_IP_ADDR_MAX = 2048;
|
|
|
|
|
2016-06-16 17:15:45 +00:00
|
|
|
/* Upper limit on number of guest vcpu information entries */
|
|
|
|
const REMOTE_DOMAIN_GUEST_VCPU_PARAMS_MAX = 64;
|
|
|
|
|
2018-10-03 21:57:56 +00:00
|
|
|
/* Upper limit on number of IOThread parameter set entries */
|
|
|
|
const REMOTE_DOMAIN_IOTHREAD_PARAMS_MAX = 64;
|
|
|
|
|
2018-06-08 14:40:54 +00:00
|
|
|
/* Upper limit on number of SEV parameters */
|
|
|
|
const REMOTE_NODE_SEV_INFO_MAX = 64;
|
|
|
|
|
2018-06-08 14:41:00 +00:00
|
|
|
/* Upper limit on number of launch security information entries */
|
|
|
|
const REMOTE_DOMAIN_LAUNCH_SECURITY_INFO_PARAMS_MAX = 64;
|
|
|
|
|
2021-11-16 23:39:44 +00:00
|
|
|
/* Upper limit on number of launch security state entries */
|
|
|
|
const REMOTE_DOMAIN_LAUNCH_SECURITY_STATE_PARAMS_MAX = 64;
|
|
|
|
|
2019-08-23 16:31:16 +00:00
|
|
|
/* Upper limit on number of parameters describing a guest */
|
|
|
|
const REMOTE_DOMAIN_GUEST_INFO_PARAMS_MAX = 2048;
|
|
|
|
|
2018-12-10 17:43:42 +00:00
|
|
|
/*
|
|
|
|
* Upper limit on list of network port parameters
|
|
|
|
*/
|
|
|
|
const REMOTE_NETWORK_PORT_PARAMETERS_MAX = 16;
|
|
|
|
|
2020-11-09 21:23:44 +00:00
|
|
|
/* Upper limit on number of SSH keys */
|
|
|
|
const REMOTE_DOMAIN_AUTHORIZED_SSH_KEYS_MAX = 2048;
|
|
|
|
|
2021-01-22 14:50:10 +00:00
|
|
|
/* Upper limit on number of messages */
|
|
|
|
const REMOTE_DOMAIN_MESSAGES_MAX = 2048;
|
|
|
|
|
2018-12-10 17:43:42 +00:00
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
/* UUID. VIR_UUID_BUFLEN definition comes from libvirt.h */
|
|
|
|
typedef opaque remote_uuid[VIR_UUID_BUFLEN];
|
|
|
|
|
|
|
|
/* A domain which may not be NULL. */
|
|
|
|
struct remote_nonnull_domain {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
remote_uuid uuid;
|
|
|
|
int id;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* A network which may not be NULL. */
|
|
|
|
struct remote_nonnull_network {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
remote_uuid uuid;
|
|
|
|
};
|
|
|
|
|
2018-12-10 17:43:42 +00:00
|
|
|
struct remote_nonnull_network_port {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
remote_uuid uuid;
|
|
|
|
};
|
|
|
|
|
2010-03-25 17:46:03 +00:00
|
|
|
/* A network filter which may not be NULL. */
|
|
|
|
struct remote_nonnull_nwfilter {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
remote_uuid uuid;
|
|
|
|
};
|
|
|
|
|
2018-05-09 16:18:58 +00:00
|
|
|
/* A network filter binding which may not be NULL. */
|
|
|
|
struct remote_nonnull_nwfilter_binding {
|
|
|
|
remote_nonnull_string portdev;
|
|
|
|
remote_nonnull_string filtername;
|
|
|
|
};
|
|
|
|
|
2009-05-20 14:26:49 +00:00
|
|
|
/* An interface which may not be NULL. */
|
|
|
|
struct remote_nonnull_interface {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
remote_nonnull_string mac;
|
|
|
|
};
|
|
|
|
|
2008-02-20 15:22:35 +00:00
|
|
|
/* A storage pool which may not be NULL. */
|
|
|
|
struct remote_nonnull_storage_pool {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
remote_uuid uuid;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* A storage vol which may not be NULL. */
|
|
|
|
struct remote_nonnull_storage_vol {
|
|
|
|
remote_nonnull_string pool;
|
|
|
|
remote_nonnull_string name;
|
|
|
|
remote_nonnull_string key;
|
|
|
|
};
|
|
|
|
|
2008-11-21 12:31:04 +00:00
|
|
|
/* A node device which may not be NULL. */
|
|
|
|
struct remote_nonnull_node_device {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
2009-07-28 02:01:00 +00:00
|
|
|
/* A secret which may not be null. */
|
|
|
|
struct remote_nonnull_secret {
|
Fix UUID handling in secrets/storage encryption APIs
Convert all the secret/storage encryption APIs / wire format to
handle UUIDs in raw format instead of non-canonical printable
format. Guarentees data format correctness.
* docs/schemas/storageencryption.rng: Make UUID mandatory for a secret
and validate fully
* docs/schemas/secret.rng: Fully validate UUID
* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in, Add
virSecretLookupByUUID and virSecretGetUUID. Make
virSecretGetUUIDString follow normal API design pattern
* python/generator.py: Skip generation of virSecretGetUUID,
virSecretGetUUIDString and virSecretLookupByUUID
* python/libvir.c, python/libvirt-python-api.xml: Manual impl
of virSecretGetUUID,virSecretGetUUIDString and virSecretLookupByUUID
* qemud/remote.c: s/virSecretLookupByUUIDString/virSecretLookupByUUID/
Fix get_nonnull_secret/make_nonnull_secret to use unsigned char
* qemud/remote_protocol.x: Fix remote_nonnull_secret to use a
remote_uuid instead of remote_nonnull_string for UUID field.
Rename REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING to
REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING and make it take an
remote_uuid value
* qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
* src/datatypes.h, src/datatypes.c: Store UUID in raw format instead
of printable. Change virGetSecret to use raw format UUID
* src/driver.h: Rename virDrvSecretLookupByUUIDString to
virDrvSecretLookupByUUID and use raw format UUID
* src/libvirt.c: Add virSecretLookupByUUID and virSecretGetUUID
and re-implement virSecretLookupByUUIDString and
virSecretGetUUIDString in terms of those
* src/libvirt_public.syms: Add virSecretLookupByUUID and
virSecretGetUUID
* src/remote_internal.c: Rename remoteSecretLookupByUUIDString
to remoteSecretLookupByUUID. Fix typo in args for
remoteSecretDefineXML impl. Use raw UUID format for
get_nonnull_secret and make_nonnull_secret
* src/storage_encryption_conf.c, src/storage_encryption_conf.h:
Storage UUID in raw format, and require it to be present in
XML. Use UUID parser to validate.
* secret_conf.h, secret_conf.c: Generate a UUID if none is provided.
Storage UUID in raw format.
* src/secret_driver.c: Adjust to deal with raw UUIDs. Save secrets
in a filed with printable UUID, instead of base64 UUID.
* src/virsh.c: Adjust for changed public API contract of
virSecretGetUUIDString.
* src/storage_Backend.c: DOn't undefine secret we just generated
upon successful volume creation. Fix to handle raw UUIDs. Generate
a non-clashing UUID
* src/qemu_driver.c: Change to use lookupByUUID instead of
lookupByUUIDString
2009-09-10 16:44:12 +00:00
|
|
|
remote_uuid uuid;
|
Add usage type/id as a public API property of virSecret
* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in: Add
virSecretGetUsageType, virSecretGetUsageID and virLookupSecretByUsage
* python/generator.py: Mark virSecretGetUsageType, virSecretGetUsageID
as not throwing exceptions
* qemud/remote.c: Implement dispatch for virLookupSecretByUsage
* qemud/remote_protocol.x: Add usage type & ID as attributes of
remote_nonnull_secret. Add RPC calls for new public APIs
* qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
* src/datatypes.c, src/datatypes.h: Add usageType and usageID as
properties of virSecretPtr
* src/driver.h: Add virLookupSecretByUsage driver entry point
* src/libvirt.c: Implement virSecretGetUsageType, virSecretGetUsageID
and virLookupSecretByUsage
* src/libvirt_public.syms: Export virSecretGetUsageType, virSecretGetUsageID
and virLookupSecretByUsage
* src/remote_internal.c: Implement virLookupSecretByUsage entry
* src/secret_conf.c, src/secret_conf.h: Remove the
virSecretUsageType enum, now in public API. Make volume
path mandatory when parsing XML
* src/secret_driver.c: Enforce usage uniqueness when defining secrets.
Implement virSecretLookupByUsage api method
* src/virsh.c: Include usage for secret-list command
2009-09-11 13:06:15 +00:00
|
|
|
int usageType;
|
|
|
|
remote_nonnull_string usageID;
|
2009-07-28 02:01:00 +00:00
|
|
|
};
|
|
|
|
|
2019-03-06 17:54:47 +00:00
|
|
|
/* A checkpoint which may not be NULL. */
|
|
|
|
struct remote_nonnull_domain_checkpoint {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2010-03-31 20:33:13 +00:00
|
|
|
/* A snapshot which may not be NULL. */
|
|
|
|
struct remote_nonnull_domain_snapshot {
|
|
|
|
remote_nonnull_string name;
|
2011-04-22 13:40:31 +00:00
|
|
|
remote_nonnull_domain dom;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
/* A domain or network which may be NULL. */
|
|
|
|
typedef remote_nonnull_domain *remote_domain;
|
|
|
|
typedef remote_nonnull_network *remote_network;
|
2018-12-10 17:43:42 +00:00
|
|
|
typedef remote_nonnull_network_port *remote_network_port;
|
2010-03-25 17:46:03 +00:00
|
|
|
typedef remote_nonnull_nwfilter *remote_nwfilter;
|
2018-05-09 16:18:58 +00:00
|
|
|
typedef remote_nonnull_nwfilter_binding *remote_nwfilter_binding;
|
2008-02-20 15:22:35 +00:00
|
|
|
typedef remote_nonnull_storage_pool *remote_storage_pool;
|
|
|
|
typedef remote_nonnull_storage_vol *remote_storage_vol;
|
2008-11-21 12:31:04 +00:00
|
|
|
typedef remote_nonnull_node_device *remote_node_device;
|
2016-12-22 16:11:06 +00:00
|
|
|
typedef remote_nonnull_secret *remote_secret;
|
2007-06-11 11:36:17 +00:00
|
|
|
|
|
|
|
/* Error message. See <virterror.h> for explanation of fields. */
|
|
|
|
|
|
|
|
/* NB. Fields "code", "domain" and "level" are really enums. The
|
|
|
|
* numeric value should remain compatible between libvirt and
|
|
|
|
* libvirtd. This means, no changing or reordering the enums as
|
|
|
|
* defined in <virterror.h> (but we don't do that anyway, for separate
|
|
|
|
* ABI reasons).
|
|
|
|
*/
|
|
|
|
struct remote_error {
|
|
|
|
int code;
|
|
|
|
int domain;
|
|
|
|
remote_string message;
|
|
|
|
int level;
|
|
|
|
remote_domain dom;
|
|
|
|
remote_string str1;
|
|
|
|
remote_string str2;
|
|
|
|
remote_string str3;
|
|
|
|
int int1;
|
|
|
|
int int2;
|
|
|
|
remote_network net;
|
|
|
|
};
|
|
|
|
|
2007-12-05 15:24:15 +00:00
|
|
|
/* Authentication types available thus far.... */
|
|
|
|
enum remote_auth_type {
|
|
|
|
REMOTE_AUTH_NONE = 0,
|
2007-12-05 18:21:27 +00:00
|
|
|
REMOTE_AUTH_SASL = 1,
|
|
|
|
REMOTE_AUTH_POLKIT = 2
|
2007-12-05 15:24:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
/* Wire encoding of virVcpuInfo. */
|
|
|
|
struct remote_vcpu_info {
|
|
|
|
unsigned int number;
|
|
|
|
int state;
|
|
|
|
unsigned hyper cpu_time;
|
|
|
|
int cpu;
|
|
|
|
};
|
|
|
|
|
2011-05-17 20:58:40 +00:00
|
|
|
/* Wire encoding of virTypedParameter.
|
2007-06-22 13:16:10 +00:00
|
|
|
* Note the enum (type) which must remain binary compatible.
|
|
|
|
*/
|
2011-05-17 20:58:40 +00:00
|
|
|
union remote_typed_param_value switch (int type) {
|
|
|
|
case VIR_TYPED_PARAM_INT:
|
2007-06-22 13:16:10 +00:00
|
|
|
int i;
|
2011-05-17 20:58:40 +00:00
|
|
|
case VIR_TYPED_PARAM_UINT:
|
2007-06-22 13:16:10 +00:00
|
|
|
unsigned int ui;
|
2011-05-17 20:58:40 +00:00
|
|
|
case VIR_TYPED_PARAM_LLONG:
|
2007-06-22 13:16:10 +00:00
|
|
|
hyper l;
|
2011-05-17 20:58:40 +00:00
|
|
|
case VIR_TYPED_PARAM_ULLONG:
|
2007-06-22 13:16:10 +00:00
|
|
|
unsigned hyper ul;
|
2011-05-17 20:58:40 +00:00
|
|
|
case VIR_TYPED_PARAM_DOUBLE:
|
2007-06-22 13:16:10 +00:00
|
|
|
double d;
|
2011-05-17 20:58:40 +00:00
|
|
|
case VIR_TYPED_PARAM_BOOLEAN:
|
2007-06-22 13:16:10 +00:00
|
|
|
int b;
|
2011-10-12 09:26:34 +00:00
|
|
|
case VIR_TYPED_PARAM_STRING:
|
|
|
|
remote_nonnull_string s;
|
2007-06-22 13:16:10 +00:00
|
|
|
};
|
|
|
|
|
2011-05-17 20:58:40 +00:00
|
|
|
struct remote_typed_param {
|
2007-06-22 13:16:10 +00:00
|
|
|
remote_nonnull_string field;
|
2011-05-17 20:58:40 +00:00
|
|
|
remote_typed_param_value value;
|
2010-10-12 17:23:04 +00:00
|
|
|
};
|
|
|
|
|
2011-06-07 01:01:12 +00:00
|
|
|
struct remote_node_get_cpu_stats {
|
|
|
|
remote_nonnull_string field;
|
|
|
|
unsigned hyper value;
|
|
|
|
};
|
|
|
|
|
2011-06-07 01:05:40 +00:00
|
|
|
struct remote_node_get_memory_stats {
|
|
|
|
remote_nonnull_string field;
|
|
|
|
unsigned hyper value;
|
|
|
|
};
|
|
|
|
|
2012-01-31 06:42:31 +00:00
|
|
|
struct remote_domain_disk_error {
|
|
|
|
remote_nonnull_string disk;
|
|
|
|
int error;
|
|
|
|
};
|
2011-09-05 08:20:03 +00:00
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
/*----- Calls. -----*/
|
|
|
|
|
|
|
|
/* For each call we may have a 'remote_CALL_args' and 'remote_CALL_ret'
|
|
|
|
* type. These are omitted when they are void. The virConnectPtr
|
|
|
|
* is not passed at all (it is inferred on the remote server from the
|
|
|
|
* connection). Errors are returned implicitly in the RPC protocol.
|
|
|
|
*
|
|
|
|
* Please follow the naming convention carefully - this file is
|
2011-07-17 04:41:39 +00:00
|
|
|
* parsed by 'gendispatch.pl'.
|
2011-05-21 09:16:07 +00:00
|
|
|
*
|
|
|
|
* 'remote_CALL_ret' members that are filled via call-by-reference must be
|
|
|
|
* annotated with a insert@<offset> comment to indicate the offset in the
|
2011-06-15 13:38:31 +00:00
|
|
|
* parameter list of the function to be called.
|
|
|
|
*
|
|
|
|
* If the 'remote_CALL_ret' maps to a struct in the public API then it is
|
|
|
|
* also filled via call-by-reference and must be annotated with a
|
|
|
|
* insert@<offset> comment to indicate the offset in the parameter list of
|
2011-06-16 09:30:23 +00:00
|
|
|
* the function to be called.
|
|
|
|
*
|
2016-06-19 19:30:59 +00:00
|
|
|
* For cases where the API allocates memory and fills the arguments (mostly
|
|
|
|
* typed parameters) a similar comment indicates the type and offset
|
|
|
|
* of the variable to be filled with the count of returned elements.
|
|
|
|
* alloc@<offset>@unsigned int@<count offset>
|
|
|
|
*
|
2011-06-16 09:30:23 +00:00
|
|
|
* Dynamic opaque and remote_nonnull_string arrays can be annotated with an
|
|
|
|
* optional typecast */
|
2007-06-11 11:36:17 +00:00
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_open_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
/* NB. "name" might be NULL although in practice you can't
|
|
|
|
* yet do that using the remote_internal driver.
|
|
|
|
*/
|
|
|
|
remote_string name;
|
2011-07-06 20:40:19 +00:00
|
|
|
unsigned int flags;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_supports_feature_args {
|
2007-08-21 09:03:55 +00:00
|
|
|
int feature;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_supports_feature_ret {
|
2007-08-21 09:03:55 +00:00
|
|
|
int supported;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_type_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
remote_nonnull_string type;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_version_ret {
|
2011-05-11 22:48:35 +00:00
|
|
|
unsigned hyper hv_ver;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_lib_version_ret {
|
2011-05-11 22:48:35 +00:00
|
|
|
unsigned hyper lib_ver;
|
2009-11-12 15:53:26 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_hostname_ret {
|
2007-06-26 11:42:46 +00:00
|
|
|
remote_nonnull_string hostname;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_sysinfo_args {
|
2011-02-07 22:04:17 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_sysinfo_ret {
|
2011-02-07 22:04:17 +00:00
|
|
|
remote_nonnull_string sysinfo;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_uri_ret {
|
2008-11-17 11:44:51 +00:00
|
|
|
remote_nonnull_string uri;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_max_vcpus_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
/* The only backend which supports this call is Xen HV, and
|
|
|
|
* there the type is ignored so it could be NULL.
|
|
|
|
*/
|
|
|
|
remote_string type;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_max_vcpus_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
int max_vcpus;
|
|
|
|
};
|
|
|
|
|
2011-06-15 13:38:31 +00:00
|
|
|
struct remote_node_get_info_ret { /* insert@1 */
|
2007-06-11 11:36:17 +00:00
|
|
|
char model[32];
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned hyper memory;
|
2007-06-11 11:36:17 +00:00
|
|
|
int cpus;
|
|
|
|
int mhz;
|
|
|
|
int nodes;
|
|
|
|
int sockets;
|
|
|
|
int cores;
|
|
|
|
int threads;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_get_capabilities_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
remote_nonnull_string capabilities;
|
|
|
|
};
|
|
|
|
|
2014-06-25 15:05:20 +00:00
|
|
|
struct remote_connect_get_domain_capabilities_args {
|
|
|
|
remote_string emulatorbin;
|
|
|
|
remote_string arch;
|
|
|
|
remote_string machine;
|
|
|
|
remote_string virttype;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_get_domain_capabilities_ret {
|
|
|
|
remote_nonnull_string capabilities;
|
|
|
|
};
|
|
|
|
|
2011-06-07 01:01:12 +00:00
|
|
|
struct remote_node_get_cpu_stats_args {
|
|
|
|
int cpuNum;
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_get_cpu_stats_ret {
|
|
|
|
remote_node_get_cpu_stats params<REMOTE_NODE_CPU_STATS_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2011-06-07 01:05:40 +00:00
|
|
|
struct remote_node_get_memory_stats_args {
|
|
|
|
int nparams;
|
|
|
|
int cellNum;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_get_memory_stats_ret {
|
|
|
|
remote_node_get_memory_stats params<REMOTE_NODE_MEMORY_STATS_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2008-05-22 15:20:25 +00:00
|
|
|
struct remote_node_get_cells_free_memory_args {
|
|
|
|
int startCell;
|
2011-05-21 07:52:19 +00:00
|
|
|
int maxcells;
|
2008-05-22 15:20:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_get_cells_free_memory_ret {
|
2011-05-21 10:24:40 +00:00
|
|
|
unsigned hyper cells<REMOTE_NODE_MAX_CELLS>; /* insert@1 */
|
2008-05-22 15:20:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_get_free_memory_ret {
|
2011-05-21 10:24:40 +00:00
|
|
|
unsigned hyper freeMem;
|
2008-05-22 15:20:25 +00:00
|
|
|
};
|
|
|
|
|
2007-06-22 13:16:10 +00:00
|
|
|
struct remote_domain_get_scheduler_type_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_scheduler_type_ret {
|
|
|
|
remote_nonnull_string type;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_scheduler_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-30 18:27:37 +00:00
|
|
|
int nparams; /* call-by-reference */
|
2007-06-22 13:16:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_scheduler_parameters_ret {
|
2011-05-30 18:27:37 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX>; /* insert@1 */
|
2007-06-22 13:16:10 +00:00
|
|
|
};
|
|
|
|
|
2011-05-17 21:45:03 +00:00
|
|
|
struct remote_domain_get_scheduler_parameters_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-30 18:27:37 +00:00
|
|
|
int nparams; /* call-by-reference */
|
2011-05-17 21:45:03 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_scheduler_parameters_flags_ret {
|
2011-05-30 18:27:37 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX>; /* insert@1 */
|
2011-05-17 21:45:03 +00:00
|
|
|
};
|
|
|
|
|
2007-06-22 13:16:10 +00:00
|
|
|
struct remote_domain_set_scheduler_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-17 20:58:40 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX>;
|
2007-06-22 13:16:10 +00:00
|
|
|
};
|
|
|
|
|
2011-05-17 06:20:02 +00:00
|
|
|
struct remote_domain_set_scheduler_parameters_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-17 20:58:40 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX>;
|
2011-05-17 06:20:02 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-02-22 05:34:28 +00:00
|
|
|
struct remote_domain_set_blkio_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-17 20:58:40 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_BLKIO_PARAMETERS_MAX>;
|
2011-02-22 05:34:28 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_blkio_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_blkio_parameters_ret {
|
2011-05-17 20:58:40 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_BLKIO_PARAMETERS_MAX>;
|
2011-02-22 05:34:28 +00:00
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2010-10-12 17:23:04 +00:00
|
|
|
struct remote_domain_set_memory_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-17 20:58:40 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX>;
|
2010-10-12 17:23:04 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_memory_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_memory_parameters_ret {
|
2011-05-17 20:58:40 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX>;
|
2010-10-12 17:23:04 +00:00
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2011-11-29 13:44:36 +00:00
|
|
|
struct remote_domain_block_resize_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string disk;
|
|
|
|
unsigned hyper size;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-12-20 08:35:01 +00:00
|
|
|
struct remote_domain_set_numa_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_NUMA_PARAMETERS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_numa_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_numa_parameters_ret {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_NUMA_PARAMETERS_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2016-03-28 13:30:27 +00:00
|
|
|
struct remote_domain_set_perf_events_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_PERF_EVENTS_MAX>;
|
2016-03-30 15:40:50 +00:00
|
|
|
unsigned int flags;
|
2016-03-28 13:30:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_perf_events_args {
|
|
|
|
remote_nonnull_domain dom;
|
2016-03-30 15:40:50 +00:00
|
|
|
unsigned int flags;
|
2016-03-28 13:30:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_perf_events_ret {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_PERF_EVENTS_MAX>;
|
|
|
|
};
|
|
|
|
|
2007-08-21 10:08:12 +00:00
|
|
|
struct remote_domain_block_stats_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
};
|
|
|
|
|
2011-06-15 13:38:31 +00:00
|
|
|
struct remote_domain_block_stats_ret { /* insert@2 */
|
2007-08-21 10:08:12 +00:00
|
|
|
hyper rd_req;
|
|
|
|
hyper rd_bytes;
|
|
|
|
hyper wr_req;
|
|
|
|
hyper wr_bytes;
|
|
|
|
hyper errs;
|
|
|
|
};
|
|
|
|
|
2011-09-05 08:20:03 +00:00
|
|
|
struct remote_domain_block_stats_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_block_stats_flags_ret {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_BLOCK_STATS_PARAMETERS_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2007-08-21 10:08:12 +00:00
|
|
|
struct remote_domain_interface_stats_args {
|
|
|
|
remote_nonnull_domain dom;
|
2017-10-13 20:25:42 +00:00
|
|
|
remote_nonnull_string device;
|
2007-08-21 10:08:12 +00:00
|
|
|
};
|
|
|
|
|
2011-06-15 13:38:31 +00:00
|
|
|
struct remote_domain_interface_stats_ret { /* insert@2 */
|
2007-08-21 10:08:12 +00:00
|
|
|
hyper rx_bytes;
|
|
|
|
hyper rx_packets;
|
|
|
|
hyper rx_errs;
|
|
|
|
hyper rx_drop;
|
|
|
|
hyper tx_bytes;
|
|
|
|
hyper tx_packets;
|
|
|
|
hyper tx_errs;
|
|
|
|
hyper tx_drop;
|
|
|
|
};
|
|
|
|
|
2011-12-29 07:33:18 +00:00
|
|
|
struct remote_domain_set_interface_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string device;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_INTERFACE_PARAMETERS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_interface_parameters_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string device;
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_interface_parameters_ret {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_INTERFACE_PARAMETERS_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2009-12-20 12:43:19 +00:00
|
|
|
struct remote_domain_memory_stats_args {
|
2011-04-22 18:35:34 +00:00
|
|
|
remote_nonnull_domain dom;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int maxStats;
|
|
|
|
unsigned int flags;
|
2009-12-20 12:43:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_memory_stat {
|
|
|
|
int tag;
|
|
|
|
unsigned hyper val;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_memory_stats_ret {
|
|
|
|
remote_domain_memory_stat stats<REMOTE_DOMAIN_MEMORY_STATS_MAX>;
|
|
|
|
};
|
|
|
|
|
2008-06-05 21:12:26 +00:00
|
|
|
struct remote_domain_block_peek_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
unsigned hyper offset;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int size;
|
|
|
|
unsigned int flags;
|
2008-06-05 21:12:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_block_peek_ret {
|
|
|
|
opaque buffer<REMOTE_DOMAIN_BLOCK_PEEK_BUFFER_MAX>;
|
|
|
|
};
|
|
|
|
|
2008-06-10 10:43:28 +00:00
|
|
|
struct remote_domain_memory_peek_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned hyper offset;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int size;
|
|
|
|
unsigned int flags;
|
2008-06-10 10:43:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_memory_peek_ret {
|
|
|
|
opaque buffer<REMOTE_DOMAIN_MEMORY_PEEK_BUFFER_MAX>;
|
|
|
|
};
|
|
|
|
|
2010-04-27 19:29:15 +00:00
|
|
|
struct remote_domain_get_block_info_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2010-04-27 19:29:15 +00:00
|
|
|
};
|
|
|
|
|
2011-06-15 13:38:31 +00:00
|
|
|
struct remote_domain_get_block_info_ret { /* insert@2 */
|
2010-04-27 19:29:15 +00:00
|
|
|
unsigned hyper allocation;
|
|
|
|
unsigned hyper capacity;
|
|
|
|
unsigned hyper physical;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_domains_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
int maxids;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_domains_ret {
|
2013-08-19 13:23:31 +00:00
|
|
|
int ids<REMOTE_DOMAIN_LIST_MAX>; /* insert@1 */
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_domains_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2008-10-10 09:32:27 +00:00
|
|
|
struct remote_domain_create_xml_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
remote_nonnull_string xml_desc;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2008-10-10 09:32:27 +00:00
|
|
|
struct remote_domain_create_xml_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2013-07-09 17:03:18 +00:00
|
|
|
struct remote_domain_create_xml_with_files_args {
|
|
|
|
remote_nonnull_string xml_desc;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_create_xml_with_files_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_lookup_by_id_args {
|
|
|
|
int id;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_lookup_by_id_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_lookup_by_uuid_args {
|
|
|
|
remote_uuid uuid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_lookup_by_uuid_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_lookup_by_name_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_lookup_by_name_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_suspend_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2012-02-10 11:40:52 +00:00
|
|
|
struct remote_domain_resume_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2012-01-26 18:05:46 +00:00
|
|
|
struct remote_domain_pm_suspend_for_duration_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int target;
|
|
|
|
unsigned hyper duration;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2012-02-10 11:40:52 +00:00
|
|
|
struct remote_domain_pm_wakeup_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
remote_nonnull_domain dom;
|
2012-02-10 11:40:52 +00:00
|
|
|
unsigned int flags;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_shutdown_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_reboot_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2011-09-29 08:56:24 +00:00
|
|
|
struct remote_domain_reset_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_destroy_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2011-07-20 16:33:23 +00:00
|
|
|
struct remote_domain_destroy_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_get_os_type_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_os_type_ret {
|
|
|
|
remote_nonnull_string type;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_max_memory_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_max_memory_ret {
|
|
|
|
unsigned hyper memory;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_set_max_memory_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned hyper memory;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_set_memory_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned hyper memory;
|
|
|
|
};
|
|
|
|
|
2011-03-02 08:13:24 +00:00
|
|
|
struct remote_domain_set_memory_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned hyper memory;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2013-07-08 16:42:57 +00:00
|
|
|
struct remote_domain_set_memory_stats_period_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int period;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_get_info_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2011-06-15 13:38:31 +00:00
|
|
|
struct remote_domain_get_info_ret { /* insert@1 */
|
2007-06-11 11:36:17 +00:00
|
|
|
unsigned char state;
|
2011-04-23 07:36:33 +00:00
|
|
|
unsigned hyper maxMem;
|
2007-06-11 11:36:17 +00:00
|
|
|
unsigned hyper memory;
|
2011-04-23 07:36:33 +00:00
|
|
|
unsigned short nrVirtCpu;
|
|
|
|
unsigned hyper cpuTime;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_save_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string to;
|
|
|
|
};
|
|
|
|
|
2011-07-09 02:35:16 +00:00
|
|
|
struct remote_domain_save_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string to;
|
|
|
|
remote_string dxml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2022-05-06 13:10:53 +00:00
|
|
|
struct remote_domain_save_params_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_SAVE_PARAMS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_restore_args {
|
|
|
|
remote_nonnull_string from;
|
|
|
|
};
|
|
|
|
|
2011-07-09 02:35:16 +00:00
|
|
|
struct remote_domain_restore_flags_args {
|
|
|
|
remote_nonnull_string from;
|
|
|
|
remote_string dxml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2022-05-06 13:10:55 +00:00
|
|
|
struct remote_domain_restore_params_args {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_SAVE_PARAMS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-07-20 15:00:38 +00:00
|
|
|
struct remote_domain_save_image_get_xml_desc_args {
|
|
|
|
remote_nonnull_string file;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_save_image_get_xml_desc_ret {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_save_image_define_xml_args {
|
|
|
|
remote_nonnull_string file;
|
|
|
|
remote_nonnull_string dxml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_core_dump_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string to;
|
2011-07-06 20:40:19 +00:00
|
|
|
unsigned int flags;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2014-03-23 03:51:12 +00:00
|
|
|
struct remote_domain_core_dump_with_format_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string to;
|
|
|
|
unsigned int dumpformat;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-04-04 13:54:48 +00:00
|
|
|
struct remote_domain_screenshot_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int screen;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_screenshot_ret {
|
|
|
|
remote_string mime;
|
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_domain_get_xml_desc_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
remote_nonnull_domain dom;
|
2011-07-06 20:40:19 +00:00
|
|
|
unsigned int flags;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_domain_get_xml_desc_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
2007-08-21 09:31:12 +00:00
|
|
|
struct remote_domain_migrate_prepare_args {
|
|
|
|
remote_string uri_in;
|
|
|
|
unsigned hyper flags;
|
|
|
|
remote_string dname;
|
|
|
|
unsigned hyper resource;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare_ret {
|
|
|
|
opaque cookie<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_string uri_out;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_perform_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
opaque cookie<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_nonnull_string uri;
|
|
|
|
unsigned hyper flags;
|
|
|
|
remote_string dname;
|
|
|
|
unsigned hyper resource;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_finish_args {
|
|
|
|
remote_nonnull_string dname;
|
|
|
|
opaque cookie<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_nonnull_string uri;
|
|
|
|
unsigned hyper flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_finish_ret {
|
|
|
|
remote_nonnull_domain ddom;
|
|
|
|
};
|
|
|
|
|
2008-11-14 08:42:47 +00:00
|
|
|
struct remote_domain_migrate_prepare2_args {
|
|
|
|
remote_string uri_in;
|
|
|
|
unsigned hyper flags;
|
|
|
|
remote_string dname;
|
|
|
|
unsigned hyper resource;
|
|
|
|
remote_nonnull_string dom_xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare2_ret {
|
|
|
|
opaque cookie<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_string uri_out;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_finish2_args {
|
|
|
|
remote_nonnull_string dname;
|
|
|
|
opaque cookie<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_nonnull_string uri;
|
|
|
|
unsigned hyper flags;
|
|
|
|
int retcode;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_finish2_ret {
|
|
|
|
remote_nonnull_domain ddom;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_defined_domains_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_defined_domains_ret {
|
2013-08-19 13:23:31 +00:00
|
|
|
remote_nonnull_string names<REMOTE_DOMAIN_LIST_MAX>; /* insert@1 */
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_defined_domains_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_create_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2010-06-10 14:53:28 +00:00
|
|
|
struct remote_domain_create_with_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_create_with_flags_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2013-07-09 17:03:18 +00:00
|
|
|
struct remote_domain_create_with_files_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_create_with_files_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_define_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_define_xml_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2014-11-18 13:56:20 +00:00
|
|
|
struct remote_domain_define_xml_flags_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_define_xml_flags_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_undefine_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2011-07-20 03:01:45 +00:00
|
|
|
struct remote_domain_undefine_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-05-10 08:26:04 +00:00
|
|
|
struct remote_domain_inject_nmi_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-06-07 09:11:15 +00:00
|
|
|
struct remote_domain_send_key_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int codeset;
|
|
|
|
unsigned int holdtime;
|
|
|
|
unsigned int keycodes<REMOTE_DOMAIN_SEND_KEY_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-11-15 16:38:19 +00:00
|
|
|
struct remote_domain_send_process_signal_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
hyper pid_value;
|
|
|
|
unsigned int signum;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_set_vcpus_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int nvcpus;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2010-09-27 16:10:06 +00:00
|
|
|
struct remote_domain_set_vcpus_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int nvcpus;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_vcpus_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_vcpus_flags_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_pin_vcpu_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int vcpu;
|
2011-06-16 09:30:23 +00:00
|
|
|
opaque cpumap<REMOTE_CPUMAP_MAX>; /* (unsigned char *) */
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2011-06-13 15:45:29 +00:00
|
|
|
struct remote_domain_pin_vcpu_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int vcpu;
|
2011-06-16 09:30:23 +00:00
|
|
|
opaque cpumap<REMOTE_CPUMAP_MAX>; /* (unsigned char *) */
|
2011-06-13 15:45:29 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-06-24 23:09:46 +00:00
|
|
|
struct remote_domain_get_vcpu_pin_info_args {
|
2011-06-24 09:00:22 +00:00
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int ncpumaps;
|
|
|
|
int maplen;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-06-24 23:09:46 +00:00
|
|
|
struct remote_domain_get_vcpu_pin_info_ret {
|
2011-06-24 09:00:22 +00:00
|
|
|
opaque cpumaps<REMOTE_CPUMAPS_MAX>;
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2012-08-21 09:18:38 +00:00
|
|
|
struct remote_domain_pin_emulator_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
opaque cpumap<REMOTE_CPUMAP_MAX>; /* (unsigned char *) */
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_emulator_pin_info_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int maplen;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_emulator_pin_info_ret {
|
|
|
|
opaque cpumaps<REMOTE_CPUMAPS_MAX>;
|
|
|
|
int ret;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_get_vcpus_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int maxinfo;
|
|
|
|
int maplen;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_vcpus_ret {
|
|
|
|
remote_vcpu_info info<REMOTE_VCPUINFO_MAX>;
|
|
|
|
opaque cpumaps<REMOTE_CPUMAPS_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_max_vcpus_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_max_vcpus_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2015-02-09 23:59:23 +00:00
|
|
|
struct remote_domain_iothread_info {
|
|
|
|
unsigned int iothread_id;
|
|
|
|
opaque cpumap<REMOTE_CPUMAP_MAX>;
|
|
|
|
};
|
|
|
|
|
2015-03-25 16:02:26 +00:00
|
|
|
struct remote_domain_get_iothread_info_args {
|
2015-02-09 23:59:23 +00:00
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2015-03-25 16:02:26 +00:00
|
|
|
struct remote_domain_get_iothread_info_ret {
|
|
|
|
remote_domain_iothread_info info<REMOTE_IOTHREAD_INFO_MAX>;
|
2015-02-09 23:59:23 +00:00
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2015-03-05 19:28:39 +00:00
|
|
|
struct remote_domain_pin_iothread_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int iothreads_id;
|
|
|
|
opaque cpumap<REMOTE_CPUMAP_MAX>; /* (unsigned char *) */
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2015-03-25 21:13:07 +00:00
|
|
|
struct remote_domain_add_iothread_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int iothread_id;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_del_iothread_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int iothread_id;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2018-10-03 21:57:56 +00:00
|
|
|
struct remote_domain_set_iothread_params_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int iothread_id;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_IOTHREAD_PARAMS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2009-03-03 09:27:02 +00:00
|
|
|
struct remote_domain_get_security_label_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_security_label_ret {
|
|
|
|
char label<REMOTE_SECURITY_LABEL_MAX>;
|
|
|
|
int enforcing;
|
|
|
|
};
|
|
|
|
|
2012-08-15 22:10:39 +00:00
|
|
|
struct remote_domain_get_security_label_list_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_security_label_list_ret {
|
|
|
|
remote_domain_get_security_label_ret labels<REMOTE_SECURITY_LABEL_LIST_MAX>;
|
|
|
|
int ret;
|
|
|
|
};
|
|
|
|
|
2009-03-03 09:27:02 +00:00
|
|
|
struct remote_node_get_security_model_ret {
|
|
|
|
char model<REMOTE_SECURITY_MODEL_MAX>;
|
|
|
|
char doi<REMOTE_SECURITY_DOI_MAX>;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_attach_device_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
2010-01-14 01:39:35 +00:00
|
|
|
struct remote_domain_attach_device_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_detach_device_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
2010-01-14 01:39:35 +00:00
|
|
|
struct remote_domain_detach_device_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2010-03-22 12:26:05 +00:00
|
|
|
struct remote_domain_update_device_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2018-05-21 11:24:23 +00:00
|
|
|
struct remote_domain_detach_device_alias_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string alias;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_domain_get_autostart_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_autostart_ret {
|
|
|
|
int autostart;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_set_autostart_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int autostart;
|
|
|
|
};
|
|
|
|
|
2012-02-01 13:03:50 +00:00
|
|
|
struct remote_domain_set_metadata_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int type;
|
|
|
|
remote_string metadata;
|
|
|
|
remote_string key;
|
|
|
|
remote_string uri;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_metadata_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int type;
|
|
|
|
remote_string uri;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_metadata_ret {
|
|
|
|
remote_nonnull_string metadata;
|
|
|
|
};
|
|
|
|
|
2011-07-22 05:31:16 +00:00
|
|
|
struct remote_domain_block_job_abort_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_block_job_info_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_block_job_info_ret {
|
|
|
|
int found;
|
|
|
|
int type;
|
|
|
|
unsigned hyper bandwidth;
|
|
|
|
unsigned hyper cur;
|
|
|
|
unsigned hyper end;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_block_job_set_speed_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
unsigned hyper bandwidth;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_block_pull_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
unsigned hyper bandwidth;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
2012-02-01 04:39:18 +00:00
|
|
|
struct remote_domain_block_rebase_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
remote_string base;
|
|
|
|
unsigned hyper bandwidth;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
2014-08-24 02:09:56 +00:00
|
|
|
struct remote_domain_block_copy_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
remote_nonnull_string destxml;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_BLOCK_COPY_PARAMETERS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
2012-09-17 20:07:18 +00:00
|
|
|
struct remote_domain_block_commit_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string disk;
|
|
|
|
remote_string base;
|
|
|
|
remote_string top;
|
|
|
|
unsigned hyper bandwidth;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
2011-07-22 05:31:16 +00:00
|
|
|
|
2011-11-15 09:02:44 +00:00
|
|
|
struct remote_domain_set_block_io_tune_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string disk;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_BLOCK_IO_TUNE_PARAMETERS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_block_io_tune_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_string disk;
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_block_io_tune_ret {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_BLOCK_IO_TUNE_PARAMETERS_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2012-01-28 06:21:31 +00:00
|
|
|
struct remote_domain_get_cpu_stats_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int nparams;
|
|
|
|
int start_cpu;
|
|
|
|
unsigned int ncpus;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_cpu_stats_ret {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_GET_CPU_STATS_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2012-07-13 07:12:07 +00:00
|
|
|
struct remote_domain_get_hostname_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_hostname_ret {
|
|
|
|
remote_nonnull_string hostname;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
/* Network calls: */
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_networks_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_networks_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_networks_ret {
|
2013-08-19 13:37:29 +00:00
|
|
|
remote_nonnull_string names<REMOTE_NETWORK_LIST_MAX>; /* insert@1 */
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_defined_networks_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_defined_networks_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_defined_networks_ret {
|
2013-08-19 13:37:29 +00:00
|
|
|
remote_nonnull_string names<REMOTE_NETWORK_LIST_MAX>; /* insert@1 */
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_lookup_by_uuid_args {
|
|
|
|
remote_uuid uuid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_lookup_by_uuid_ret {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_lookup_by_name_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_lookup_by_name_ret {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_create_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_create_xml_ret {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
2021-09-15 11:07:27 +00:00
|
|
|
struct remote_network_create_xml_flags_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_create_xml_flags_ret {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_network_define_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_define_xml_ret {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
2021-08-23 16:50:08 +00:00
|
|
|
struct remote_network_define_xml_flags_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_define_xml_flags_ret {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_network_undefine_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
2012-08-20 03:54:57 +00:00
|
|
|
struct remote_network_update_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
unsigned int command;
|
|
|
|
unsigned int section;
|
|
|
|
int parentIndex;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_network_create_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_destroy_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_network_get_xml_desc_args {
|
2007-06-11 11:36:17 +00:00
|
|
|
remote_nonnull_network net;
|
2011-07-06 20:40:19 +00:00
|
|
|
unsigned int flags;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_network_get_xml_desc_ret {
|
2007-06-11 11:36:17 +00:00
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_get_bridge_name_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_get_bridge_name_ret {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_get_autostart_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_get_autostart_ret {
|
|
|
|
int autostart;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_set_autostart_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
int autostart;
|
|
|
|
};
|
|
|
|
|
2010-03-25 17:46:03 +00:00
|
|
|
/* network filter calls */
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_nwfilters_ret {
|
2010-03-25 17:46:03 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_nwfilters_args {
|
2010-03-25 17:46:03 +00:00
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_nwfilters_ret {
|
2013-08-19 13:47:22 +00:00
|
|
|
remote_nonnull_string names<REMOTE_NWFILTER_LIST_MAX>; /* insert@1 */
|
2010-03-25 17:46:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_lookup_by_uuid_args {
|
|
|
|
remote_uuid uuid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_lookup_by_uuid_ret {
|
|
|
|
remote_nonnull_nwfilter nwfilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_lookup_by_name_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_lookup_by_name_ret {
|
|
|
|
remote_nonnull_nwfilter nwfilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_define_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_define_xml_ret {
|
|
|
|
remote_nonnull_nwfilter nwfilter;
|
|
|
|
};
|
|
|
|
|
2021-08-20 11:57:05 +00:00
|
|
|
struct remote_nwfilter_define_xml_flags_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_define_xml_flags_ret {
|
|
|
|
remote_nonnull_nwfilter nwfilter;
|
|
|
|
};
|
|
|
|
|
2010-03-25 17:46:03 +00:00
|
|
|
struct remote_nwfilter_undefine_args {
|
|
|
|
remote_nonnull_nwfilter nwfilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_get_xml_desc_args {
|
|
|
|
remote_nonnull_nwfilter nwfilter;
|
2011-07-06 20:40:19 +00:00
|
|
|
unsigned int flags;
|
2010-03-25 17:46:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_get_xml_desc_ret {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
2008-02-20 15:22:35 +00:00
|
|
|
|
2009-05-20 14:26:49 +00:00
|
|
|
/* Interface calls: */
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_interfaces_ret {
|
2009-05-20 14:26:49 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_interfaces_args {
|
2009-05-20 14:26:49 +00:00
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_interfaces_ret {
|
2013-08-19 13:41:56 +00:00
|
|
|
remote_nonnull_string names<REMOTE_INTERFACE_LIST_MAX>; /* insert@1 */
|
2009-05-20 14:26:49 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_defined_interfaces_ret {
|
2009-07-16 15:58:15 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_defined_interfaces_args {
|
2009-07-16 15:58:15 +00:00
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_defined_interfaces_ret {
|
2013-08-19 13:41:56 +00:00
|
|
|
remote_nonnull_string names<REMOTE_INTERFACE_LIST_MAX>; /* insert@1 */
|
2009-07-16 15:58:15 +00:00
|
|
|
};
|
|
|
|
|
2009-05-20 14:26:49 +00:00
|
|
|
struct remote_interface_lookup_by_name_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_lookup_by_name_ret {
|
2009-05-29 14:29:22 +00:00
|
|
|
remote_nonnull_interface iface;
|
2009-05-20 14:26:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_lookup_by_mac_string_args {
|
|
|
|
remote_nonnull_string mac;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_lookup_by_mac_string_ret {
|
2009-05-29 14:29:22 +00:00
|
|
|
remote_nonnull_interface iface;
|
2009-05-20 14:26:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_get_xml_desc_args {
|
2009-05-29 14:29:22 +00:00
|
|
|
remote_nonnull_interface iface;
|
2009-05-20 14:26:49 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_get_xml_desc_ret {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_define_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_define_xml_ret {
|
2009-05-29 14:29:22 +00:00
|
|
|
remote_nonnull_interface iface;
|
2009-05-20 14:26:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_undefine_args {
|
2009-05-29 14:29:22 +00:00
|
|
|
remote_nonnull_interface iface;
|
2009-05-20 14:26:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_create_args {
|
2009-05-29 14:29:22 +00:00
|
|
|
remote_nonnull_interface iface;
|
2009-05-20 14:26:49 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_destroy_args {
|
2009-05-29 14:29:22 +00:00
|
|
|
remote_nonnull_interface iface;
|
2009-05-20 14:26:49 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-05-05 13:35:40 +00:00
|
|
|
struct remote_interface_change_begin_args {
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_change_commit_args {
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_change_rollback_args {
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2009-05-20 14:26:49 +00:00
|
|
|
|
|
|
|
/* Auth calls: */
|
|
|
|
|
2007-12-05 15:24:15 +00:00
|
|
|
struct remote_auth_list_ret {
|
|
|
|
remote_auth_type types<REMOTE_AUTH_TYPE_LIST_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_auth_sasl_init_ret {
|
|
|
|
remote_nonnull_string mechlist;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_auth_sasl_start_args {
|
|
|
|
remote_nonnull_string mech;
|
|
|
|
int nil;
|
|
|
|
char data<REMOTE_AUTH_SASL_DATA_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_auth_sasl_start_ret {
|
|
|
|
int complete;
|
|
|
|
int nil;
|
|
|
|
char data<REMOTE_AUTH_SASL_DATA_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_auth_sasl_step_args {
|
|
|
|
int nil;
|
|
|
|
char data<REMOTE_AUTH_SASL_DATA_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_auth_sasl_step_ret {
|
|
|
|
int complete;
|
|
|
|
int nil;
|
|
|
|
char data<REMOTE_AUTH_SASL_DATA_MAX>;
|
|
|
|
};
|
|
|
|
|
2007-12-05 18:21:27 +00:00
|
|
|
struct remote_auth_polkit_ret {
|
|
|
|
int complete;
|
|
|
|
};
|
|
|
|
|
2008-02-20 15:22:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Storage pool calls: */
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_storage_pools_ret {
|
2008-02-20 15:22:35 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_storage_pools_args {
|
2008-02-20 15:22:35 +00:00
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_storage_pools_ret {
|
2013-08-19 13:27:56 +00:00
|
|
|
remote_nonnull_string names<REMOTE_STORAGE_POOL_LIST_MAX>; /* insert@1 */
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_defined_storage_pools_ret {
|
2008-02-20 15:22:35 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_defined_storage_pools_args {
|
2008-02-20 15:22:35 +00:00
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_defined_storage_pools_ret {
|
2013-08-19 13:27:56 +00:00
|
|
|
remote_nonnull_string names<REMOTE_STORAGE_POOL_LIST_MAX>; /* insert@1 */
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_find_storage_pool_sources_args {
|
2008-08-27 20:05:58 +00:00
|
|
|
remote_nonnull_string type;
|
|
|
|
remote_string srcSpec;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-08-27 20:05:58 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_find_storage_pool_sources_ret {
|
2008-08-27 20:05:58 +00:00
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
2008-02-20 15:22:35 +00:00
|
|
|
struct remote_storage_pool_lookup_by_uuid_args {
|
|
|
|
remote_uuid uuid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_lookup_by_uuid_ret {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_lookup_by_name_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_lookup_by_name_ret {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_lookup_by_volume_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_lookup_by_volume_ret {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
2018-01-25 09:35:52 +00:00
|
|
|
struct remote_storage_pool_lookup_by_target_path_args {
|
|
|
|
remote_nonnull_string path;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_lookup_by_target_path_ret {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
2008-02-20 15:22:35 +00:00
|
|
|
struct remote_storage_pool_create_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_create_xml_ret {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_define_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_define_xml_ret {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_build_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_undefine_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_create_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_destroy_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_delete_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_refresh_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_storage_pool_get_xml_desc_args {
|
2008-02-20 15:22:35 +00:00
|
|
|
remote_nonnull_storage_pool pool;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_storage_pool_get_xml_desc_ret {
|
2008-02-20 15:22:35 +00:00
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_get_info_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
2011-06-15 13:38:31 +00:00
|
|
|
struct remote_storage_pool_get_info_ret { /* insert@1 */
|
2008-02-20 15:22:35 +00:00
|
|
|
unsigned char state;
|
|
|
|
unsigned hyper capacity;
|
|
|
|
unsigned hyper allocation;
|
|
|
|
unsigned hyper available;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_get_autostart_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_get_autostart_ret {
|
|
|
|
int autostart;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_set_autostart_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
int autostart;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_num_of_volumes_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_num_of_volumes_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_list_volumes_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_list_volumes_ret {
|
2013-08-19 13:33:58 +00:00
|
|
|
remote_nonnull_string names<REMOTE_STORAGE_VOL_LIST_MAX>; /* insert@1 */
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Storage vol calls: */
|
|
|
|
|
|
|
|
struct remote_storage_vol_lookup_by_name_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_lookup_by_name_ret {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_lookup_by_key_args {
|
|
|
|
remote_nonnull_string key;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_lookup_by_key_ret {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_lookup_by_path_args {
|
|
|
|
remote_nonnull_string path;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_lookup_by_path_ret {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_create_xml_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
remote_nonnull_string xml;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_create_xml_ret {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
};
|
|
|
|
|
2009-05-12 20:13:52 +00:00
|
|
|
struct remote_storage_vol_create_xml_from_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
remote_nonnull_storage_vol clonevol;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2009-05-12 20:13:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_create_xml_from_ret {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
};
|
|
|
|
|
2008-02-20 15:22:35 +00:00
|
|
|
struct remote_storage_vol_delete_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
2010-03-01 20:32:35 +00:00
|
|
|
struct remote_storage_vol_wipe_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2010-03-01 20:32:35 +00:00
|
|
|
};
|
|
|
|
|
2012-01-09 16:05:03 +00:00
|
|
|
struct remote_storage_vol_wipe_pattern_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
unsigned int algorithm;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_storage_vol_get_xml_desc_args {
|
2008-02-20 15:22:35 +00:00
|
|
|
remote_nonnull_storage_vol vol;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_storage_vol_get_xml_desc_ret {
|
2008-02-20 15:22:35 +00:00
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_get_info_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
};
|
|
|
|
|
2011-06-15 13:38:31 +00:00
|
|
|
struct remote_storage_vol_get_info_ret { /* insert@1 */
|
2008-02-20 15:22:35 +00:00
|
|
|
char type;
|
|
|
|
unsigned hyper capacity;
|
|
|
|
unsigned hyper allocation;
|
|
|
|
};
|
|
|
|
|
2016-11-29 15:44:36 +00:00
|
|
|
struct remote_storage_vol_get_info_flags_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_get_info_flags_ret { /* insert@1 */
|
|
|
|
char type;
|
|
|
|
unsigned hyper capacity;
|
|
|
|
unsigned hyper allocation;
|
|
|
|
};
|
|
|
|
|
2008-02-20 15:22:35 +00:00
|
|
|
struct remote_storage_vol_get_path_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_get_path_ret {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
2012-01-27 05:29:56 +00:00
|
|
|
struct remote_storage_vol_resize_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
2012-01-30 19:04:20 +00:00
|
|
|
unsigned hyper capacity;
|
2012-01-27 05:29:56 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2008-11-21 12:31:04 +00:00
|
|
|
/* Node driver calls: */
|
|
|
|
|
|
|
|
struct remote_node_num_of_devices_args {
|
|
|
|
remote_string cap;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-11-21 12:31:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_num_of_devices_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_list_devices_args {
|
|
|
|
remote_string cap;
|
|
|
|
int maxnames;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-11-21 12:31:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_list_devices_ret {
|
2013-08-19 13:44:52 +00:00
|
|
|
remote_nonnull_string names<REMOTE_NODE_DEVICE_LIST_MAX>; /* insert@2 */
|
2008-11-21 12:31:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_lookup_by_name_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_lookup_by_name_ret {
|
|
|
|
remote_nonnull_node_device dev;
|
|
|
|
};
|
|
|
|
|
2013-02-04 13:03:10 +00:00
|
|
|
struct remote_node_device_lookup_scsi_host_by_wwn_args {
|
|
|
|
remote_nonnull_string wwnn;
|
|
|
|
remote_nonnull_string wwpn;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_lookup_scsi_host_by_wwn_ret {
|
|
|
|
remote_nonnull_node_device dev;
|
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_node_device_get_xml_desc_args {
|
2008-11-21 12:31:04 +00:00
|
|
|
remote_nonnull_string name;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2008-11-21 12:31:04 +00:00
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_node_device_get_xml_desc_ret {
|
2008-11-21 12:31:04 +00:00
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_get_parent_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_get_parent_ret {
|
2018-04-13 11:42:16 +00:00
|
|
|
remote_string parentName;
|
2008-11-21 12:31:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_num_of_caps_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_num_of_caps_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_list_caps_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_list_caps_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_NODE_DEVICE_CAPS_LIST_MAX>; /* insert@1 */
|
2008-11-21 12:31:04 +00:00
|
|
|
};
|
|
|
|
|
2009-03-02 16:30:59 +00:00
|
|
|
struct remote_node_device_dettach_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
2013-04-24 17:42:04 +00:00
|
|
|
struct remote_node_device_detach_flags_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
remote_string driverName;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2009-03-02 16:30:59 +00:00
|
|
|
struct remote_node_device_re_attach_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_reset_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
2009-04-24 13:11:23 +00:00
|
|
|
struct remote_node_device_create_xml_args {
|
|
|
|
remote_nonnull_string xml_desc;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2009-04-24 13:11:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_create_xml_ret {
|
|
|
|
remote_nonnull_node_device dev;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_destroy_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
2020-05-11 16:40:26 +00:00
|
|
|
struct remote_node_device_define_xml_args {
|
|
|
|
remote_nonnull_string xml_desc;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_define_xml_ret {
|
|
|
|
remote_nonnull_node_device dev;
|
|
|
|
};
|
|
|
|
|
2020-07-02 20:14:30 +00:00
|
|
|
struct remote_node_device_undefine_args {
|
|
|
|
remote_nonnull_string name;
|
2021-04-09 15:50:03 +00:00
|
|
|
unsigned int flags;
|
2020-07-02 20:14:30 +00:00
|
|
|
};
|
|
|
|
|
2020-06-18 15:21:13 +00:00
|
|
|
struct remote_node_device_create_args {
|
|
|
|
remote_nonnull_string name;
|
2021-04-09 15:50:03 +00:00
|
|
|
unsigned int flags;
|
2020-06-18 15:21:13 +00:00
|
|
|
};
|
|
|
|
|
2021-05-26 14:06:12 +00:00
|
|
|
struct remote_node_device_get_autostart_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_get_autostart_ret {
|
|
|
|
int autostart;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_set_autostart_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
int autostart;
|
|
|
|
};
|
|
|
|
|
2021-06-03 18:21:00 +00:00
|
|
|
struct remote_node_device_is_persistent_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_is_persistent_ret {
|
|
|
|
int persistent;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_is_active_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_is_active_ret {
|
|
|
|
int active;
|
|
|
|
};
|
|
|
|
|
2008-11-21 12:31:04 +00:00
|
|
|
|
2013-04-17 12:04:27 +00:00
|
|
|
/*
|
2008-10-23 13:18:18 +00:00
|
|
|
* Events Register/Deregister:
|
event: filter global events by domain:getattr ACL [CVE-2014-0028]
Ever since ACL filtering was added in commit 7639736 (v1.1.1), a
user could still use event registration to obtain access to a
domain that they could not normally access via virDomainLookup*
or virConnectListAllDomains and friends. We already have the
framework in the RPC generator for creating the filter, and
previous cleanup patches got us to the point that we can now
wire the filter through the entire object event stack.
Furthermore, whether or not domain:getattr is honored, use of
global events is a form of obtaining a list of networks, which
is covered by connect:search_domains added in a93cd08 (v1.1.0).
Ideally, we'd have a way to enforce connect:search_domains when
doing global registrations while omitting that check on a
per-domain registration. But this patch just unconditionally
requires connect:search_domains, even when no list could be
obtained, based on the following observations:
1. Administrators are unlikely to grant domain:getattr for one
or all domains while still denying connect:search_domains - a
user that is able to manage domains will want to be able to
manage them efficiently, but efficient management includes being
able to list the domains they can access. The idea of denying
connect:search_domains while still granting access to individual
domains is therefore not adding any real security, but just
serves as a layer of obscurity to annoy the end user.
2. In the current implementation, domain events are filtered
on the client; the server has no idea if a domain filter was
requested, and must therefore assume that all domain event
requests are global. Even if we fix the RPC protocol to
allow for server-side filtering for newer client/server combos,
making the connect:serach_domains ACL check conditional on
whether the domain argument was NULL won't benefit older clients.
Therefore, we choose to document that connect:search_domains
is a pre-requisite to any domain event management.
Network events need the same treatment, with the obvious
change of using connect:search_networks and network:getattr.
* src/access/viraccessperm.h
(VIR_ACCESS_PERM_CONNECT_SEARCH_DOMAINS)
(VIR_ACCESS_PERM_CONNECT_SEARCH_NETWORKS): Document additional
effect of the permission.
* src/conf/domain_event.h (virDomainEventStateRegister)
(virDomainEventStateRegisterID): Add new parameter.
* src/conf/network_event.h (virNetworkEventStateRegisterID):
Likewise.
* src/conf/object_event_private.h (virObjectEventStateRegisterID):
Likewise.
* src/conf/object_event.c (_virObjectEventCallback): Track a filter.
(virObjectEventDispatchMatchCallback): Use filter.
(virObjectEventCallbackListAddID): Register filter.
* src/conf/domain_event.c (virDomainEventFilter): New function.
(virDomainEventStateRegister, virDomainEventStateRegisterID):
Adjust callers.
* src/conf/network_event.c (virNetworkEventFilter): New function.
(virNetworkEventStateRegisterID): Adjust caller.
* src/remote/remote_protocol.x
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER)
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER_ANY)
(REMOTE_PROC_CONNECT_NETWORK_EVENT_REGISTER_ANY): Generate a
filter, and require connect:search_domains instead of weaker
connect:read.
* src/test/test_driver.c (testConnectDomainEventRegister)
(testConnectDomainEventRegisterAny)
(testConnectNetworkEventRegisterAny): Update callers.
* src/remote/remote_driver.c (remoteConnectDomainEventRegister)
(remoteConnectDomainEventRegisterAny): Likewise.
* src/xen/xen_driver.c (xenUnifiedConnectDomainEventRegister)
(xenUnifiedConnectDomainEventRegisterAny): Likewise.
* src/vbox/vbox_tmpl.c (vboxDomainGetXMLDesc): Likewise.
* src/libxl/libxl_driver.c (libxlConnectDomainEventRegister)
(libxlConnectDomainEventRegisterAny): Likewise.
* src/qemu/qemu_driver.c (qemuConnectDomainEventRegister)
(qemuConnectDomainEventRegisterAny): Likewise.
* src/uml/uml_driver.c (umlConnectDomainEventRegister)
(umlConnectDomainEventRegisterAny): Likewise.
* src/network/bridge_driver.c
(networkConnectNetworkEventRegisterAny): Likewise.
* src/lxc/lxc_driver.c (lxcConnectDomainEventRegister)
(lxcConnectDomainEventRegisterAny): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:34:48 +00:00
|
|
|
* It would seem rpcgen does not like both args and ret
|
2008-10-23 13:18:18 +00:00
|
|
|
* to be null. It will not generate the prototype otherwise.
|
|
|
|
* Pass back a redundant boolean to force prototype generation.
|
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_domain_event_register_ret {
|
2008-10-23 13:18:18 +00:00
|
|
|
int cb_registered;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_domain_event_deregister_ret {
|
2008-10-23 13:18:18 +00:00
|
|
|
int cb_registered;
|
|
|
|
};
|
|
|
|
|
2010-03-19 14:28:23 +00:00
|
|
|
struct remote_domain_event_lifecycle_msg {
|
2008-10-23 13:18:18 +00:00
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int event;
|
2008-11-17 16:43:00 +00:00
|
|
|
int detail;
|
2008-10-23 13:18:18 +00:00
|
|
|
};
|
event: server RPC protocol tweaks for domain lifecycle events
This patch adds some new RPC call numbers, but for ease of review,
they sit idle until a later patch adds the client counterpart to
drive the new RPCs. Also for ease of review, I limited this patch
to just the lifecycle event; although converting the remaining
15 domain events will be quite mechanical. On the server side,
we have to have a function per RPC call, largely with duplicated
bodies (the key difference being that we store in our callback
opaque pointer whether events should be fired with old or new
style); meanwhile, a single function can drive multiple RPC
messages. With a strategic choice of XDR struct layout, we can
make the event generation code for both styles fairly compact.
I debated about adding a tri-state witness variable per
connection (values 'unknown', 'legacy', 'modern'). It would start
as 'unknown', move to 'legacy' if any RPC call is made to a legacy
event call, and move to 'modern' if the feature probe is made;
then the event code could issue an error if the witness state is
incorrect (a legacy RPC call while in 'modern', a modern RPC call
while in 'unknown' or 'legacy', and a feature probe while in
'legacy' or 'modern'). But while it might prevent odd behavior
caused by protocol fuzzing, I don't see that it would prevent
any security holes, so I considered it bloat.
Note that sticking @acl markers on the new RPCs generates unused
functions in access/viraccessapicheck.c, because there is no new
API call that needs to use the new checks; however, having a
consistent .x file is worth the dead code.
* src/libvirt_internal.h (VIR_DRV_FEATURE_REMOTE_EVENT_CALLBACK):
New feature.
* src/remote/remote_protocol.x
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_REGISTER_ANY)
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_DEREGISTER_ANY)
(REMOTE_PROC_DOMAIN_EVENT_CALLBACK_LIFECYCLE): New RPCs.
* daemon/remote.c (daemonClientCallback): Add field.
(remoteDispatchConnectDomainEventCallbackRegisterAny)
(remoteDispatchConnectDomainEventCallbackDeregisterAny): New
functions.
(remoteDispatchConnectDomainEventRegisterAny)
(remoteDispatchConnectDomainEventDeregisterAny): Mark legacy use.
(remoteRelayDomainEventLifecycle): Change message based on legacy
or new use.
(remoteDispatchConnectSupportsFeature): Advertise new feature.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:59:35 +00:00
|
|
|
struct remote_domain_event_callback_lifecycle_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_lifecycle_msg msg;
|
|
|
|
};
|
2008-10-23 13:18:18 +00:00
|
|
|
|
2009-05-21 13:50:56 +00:00
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_domain_xml_from_native_args {
|
2009-05-21 13:50:56 +00:00
|
|
|
remote_nonnull_string nativeFormat;
|
|
|
|
remote_nonnull_string nativeConfig;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2009-05-21 13:50:56 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_domain_xml_from_native_ret {
|
2009-05-21 13:50:56 +00:00
|
|
|
remote_nonnull_string domainXml;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_domain_xml_to_native_args {
|
2009-05-21 13:50:56 +00:00
|
|
|
remote_nonnull_string nativeFormat;
|
|
|
|
remote_nonnull_string domainXml;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2009-05-21 13:50:56 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_domain_xml_to_native_ret {
|
2009-05-21 13:50:56 +00:00
|
|
|
remote_nonnull_string nativeConfig;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_num_of_secrets_ret {
|
2009-07-28 02:01:00 +00:00
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_secrets_args {
|
2009-07-28 02:01:00 +00:00
|
|
|
int maxuuids;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_list_secrets_ret {
|
2013-08-19 13:49:57 +00:00
|
|
|
remote_nonnull_string uuids<REMOTE_SECRET_LIST_MAX>; /* insert@1 */
|
2009-07-28 02:01:00 +00:00
|
|
|
};
|
|
|
|
|
Fix UUID handling in secrets/storage encryption APIs
Convert all the secret/storage encryption APIs / wire format to
handle UUIDs in raw format instead of non-canonical printable
format. Guarentees data format correctness.
* docs/schemas/storageencryption.rng: Make UUID mandatory for a secret
and validate fully
* docs/schemas/secret.rng: Fully validate UUID
* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in, Add
virSecretLookupByUUID and virSecretGetUUID. Make
virSecretGetUUIDString follow normal API design pattern
* python/generator.py: Skip generation of virSecretGetUUID,
virSecretGetUUIDString and virSecretLookupByUUID
* python/libvir.c, python/libvirt-python-api.xml: Manual impl
of virSecretGetUUID,virSecretGetUUIDString and virSecretLookupByUUID
* qemud/remote.c: s/virSecretLookupByUUIDString/virSecretLookupByUUID/
Fix get_nonnull_secret/make_nonnull_secret to use unsigned char
* qemud/remote_protocol.x: Fix remote_nonnull_secret to use a
remote_uuid instead of remote_nonnull_string for UUID field.
Rename REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING to
REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING and make it take an
remote_uuid value
* qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
* src/datatypes.h, src/datatypes.c: Store UUID in raw format instead
of printable. Change virGetSecret to use raw format UUID
* src/driver.h: Rename virDrvSecretLookupByUUIDString to
virDrvSecretLookupByUUID and use raw format UUID
* src/libvirt.c: Add virSecretLookupByUUID and virSecretGetUUID
and re-implement virSecretLookupByUUIDString and
virSecretGetUUIDString in terms of those
* src/libvirt_public.syms: Add virSecretLookupByUUID and
virSecretGetUUID
* src/remote_internal.c: Rename remoteSecretLookupByUUIDString
to remoteSecretLookupByUUID. Fix typo in args for
remoteSecretDefineXML impl. Use raw UUID format for
get_nonnull_secret and make_nonnull_secret
* src/storage_encryption_conf.c, src/storage_encryption_conf.h:
Storage UUID in raw format, and require it to be present in
XML. Use UUID parser to validate.
* secret_conf.h, secret_conf.c: Generate a UUID if none is provided.
Storage UUID in raw format.
* src/secret_driver.c: Adjust to deal with raw UUIDs. Save secrets
in a filed with printable UUID, instead of base64 UUID.
* src/virsh.c: Adjust for changed public API contract of
virSecretGetUUIDString.
* src/storage_Backend.c: DOn't undefine secret we just generated
upon successful volume creation. Fix to handle raw UUIDs. Generate
a non-clashing UUID
* src/qemu_driver.c: Change to use lookupByUUID instead of
lookupByUUIDString
2009-09-10 16:44:12 +00:00
|
|
|
struct remote_secret_lookup_by_uuid_args {
|
|
|
|
remote_uuid uuid;
|
2009-07-28 02:01:00 +00:00
|
|
|
};
|
|
|
|
|
Fix UUID handling in secrets/storage encryption APIs
Convert all the secret/storage encryption APIs / wire format to
handle UUIDs in raw format instead of non-canonical printable
format. Guarentees data format correctness.
* docs/schemas/storageencryption.rng: Make UUID mandatory for a secret
and validate fully
* docs/schemas/secret.rng: Fully validate UUID
* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in, Add
virSecretLookupByUUID and virSecretGetUUID. Make
virSecretGetUUIDString follow normal API design pattern
* python/generator.py: Skip generation of virSecretGetUUID,
virSecretGetUUIDString and virSecretLookupByUUID
* python/libvir.c, python/libvirt-python-api.xml: Manual impl
of virSecretGetUUID,virSecretGetUUIDString and virSecretLookupByUUID
* qemud/remote.c: s/virSecretLookupByUUIDString/virSecretLookupByUUID/
Fix get_nonnull_secret/make_nonnull_secret to use unsigned char
* qemud/remote_protocol.x: Fix remote_nonnull_secret to use a
remote_uuid instead of remote_nonnull_string for UUID field.
Rename REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING to
REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING and make it take an
remote_uuid value
* qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
* src/datatypes.h, src/datatypes.c: Store UUID in raw format instead
of printable. Change virGetSecret to use raw format UUID
* src/driver.h: Rename virDrvSecretLookupByUUIDString to
virDrvSecretLookupByUUID and use raw format UUID
* src/libvirt.c: Add virSecretLookupByUUID and virSecretGetUUID
and re-implement virSecretLookupByUUIDString and
virSecretGetUUIDString in terms of those
* src/libvirt_public.syms: Add virSecretLookupByUUID and
virSecretGetUUID
* src/remote_internal.c: Rename remoteSecretLookupByUUIDString
to remoteSecretLookupByUUID. Fix typo in args for
remoteSecretDefineXML impl. Use raw UUID format for
get_nonnull_secret and make_nonnull_secret
* src/storage_encryption_conf.c, src/storage_encryption_conf.h:
Storage UUID in raw format, and require it to be present in
XML. Use UUID parser to validate.
* secret_conf.h, secret_conf.c: Generate a UUID if none is provided.
Storage UUID in raw format.
* src/secret_driver.c: Adjust to deal with raw UUIDs. Save secrets
in a filed with printable UUID, instead of base64 UUID.
* src/virsh.c: Adjust for changed public API contract of
virSecretGetUUIDString.
* src/storage_Backend.c: DOn't undefine secret we just generated
upon successful volume creation. Fix to handle raw UUIDs. Generate
a non-clashing UUID
* src/qemu_driver.c: Change to use lookupByUUID instead of
lookupByUUIDString
2009-09-10 16:44:12 +00:00
|
|
|
struct remote_secret_lookup_by_uuid_ret {
|
2009-07-28 02:01:00 +00:00
|
|
|
remote_nonnull_secret secret;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_define_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2009-07-28 02:01:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_define_xml_ret {
|
|
|
|
remote_nonnull_secret secret;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_get_xml_desc_args {
|
|
|
|
remote_nonnull_secret secret;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2009-07-28 02:01:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_get_xml_desc_ret {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_set_value_args {
|
|
|
|
remote_nonnull_secret secret;
|
2011-06-16 09:30:23 +00:00
|
|
|
opaque value<REMOTE_SECRET_VALUE_MAX>; /* (const unsigned char *) */
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2009-07-28 02:01:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_get_value_args {
|
|
|
|
remote_nonnull_secret secret;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2009-07-28 02:01:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_get_value_ret {
|
|
|
|
opaque value<REMOTE_SECRET_VALUE_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_undefine_args {
|
|
|
|
remote_nonnull_secret secret;
|
|
|
|
};
|
|
|
|
|
Add usage type/id as a public API property of virSecret
* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in: Add
virSecretGetUsageType, virSecretGetUsageID and virLookupSecretByUsage
* python/generator.py: Mark virSecretGetUsageType, virSecretGetUsageID
as not throwing exceptions
* qemud/remote.c: Implement dispatch for virLookupSecretByUsage
* qemud/remote_protocol.x: Add usage type & ID as attributes of
remote_nonnull_secret. Add RPC calls for new public APIs
* qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
* src/datatypes.c, src/datatypes.h: Add usageType and usageID as
properties of virSecretPtr
* src/driver.h: Add virLookupSecretByUsage driver entry point
* src/libvirt.c: Implement virSecretGetUsageType, virSecretGetUsageID
and virLookupSecretByUsage
* src/libvirt_public.syms: Export virSecretGetUsageType, virSecretGetUsageID
and virLookupSecretByUsage
* src/remote_internal.c: Implement virLookupSecretByUsage entry
* src/secret_conf.c, src/secret_conf.h: Remove the
virSecretUsageType enum, now in public API. Make volume
path mandatory when parsing XML
* src/secret_driver.c: Enforce usage uniqueness when defining secrets.
Implement virSecretLookupByUsage api method
* src/virsh.c: Include usage for secret-list command
2009-09-11 13:06:15 +00:00
|
|
|
struct remote_secret_lookup_by_usage_args {
|
|
|
|
int usageType;
|
|
|
|
remote_nonnull_string usageID;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_lookup_by_usage_ret {
|
|
|
|
remote_nonnull_secret secret;
|
|
|
|
};
|
|
|
|
|
2009-09-30 10:51:54 +00:00
|
|
|
struct remote_domain_migrate_prepare_tunnel_args {
|
|
|
|
unsigned hyper flags;
|
|
|
|
remote_string dname;
|
|
|
|
unsigned hyper resource;
|
|
|
|
remote_nonnull_string dom_xml;
|
|
|
|
};
|
|
|
|
|
Implmentation of new APIs to checking state/persistence of objects
This implements the virConnectIsSecure, virConnectIsEncrypted,
virDomainIsPersistent, virDomainIsActive, virNetworkIsActive,
virNetworkIsPersistent, virStoragePoolIsActive,
virStoragePoolIsPersistent, virInterfaceIsActive APIs in
(nearly) all drivers. Exceptions are:
phyp: missing domainIsActive/Persistent
esx: missing domainIsPersistent
opennebula: missing domainIsActive/Persistent
* src/remote/remote_protocol.x: Define remote wire ABI for newly
added APIs.
* daemon/remote_dispatch*.h: Re-generated from remote_protocol.x
* src/esx/esx_driver.c, src/lxc/lxc_driver.c, src/network/bridge_driver.c,
src/opennebula/one_driver.c, src/openvz/openvz_conf.c,
src/openvz/openvz_driver.c, src/phyp/phyp_driver.c,
src/remote/remote_driver.c, src/storage/storage_driver.c,
src/test/test_driver.c, src/uml/uml_driver.c, src/vbox/vbox_tmpl.c,
src/xen/xen_driver.c, src/xen/xen_driver.h, src/xen/xen_inotify.c,
src/xen/xen_inotify.h: Implement all the new APIs where possible
2009-10-20 14:12:03 +00:00
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_is_secure_ret {
|
Implmentation of new APIs to checking state/persistence of objects
This implements the virConnectIsSecure, virConnectIsEncrypted,
virDomainIsPersistent, virDomainIsActive, virNetworkIsActive,
virNetworkIsPersistent, virStoragePoolIsActive,
virStoragePoolIsPersistent, virInterfaceIsActive APIs in
(nearly) all drivers. Exceptions are:
phyp: missing domainIsActive/Persistent
esx: missing domainIsPersistent
opennebula: missing domainIsActive/Persistent
* src/remote/remote_protocol.x: Define remote wire ABI for newly
added APIs.
* daemon/remote_dispatch*.h: Re-generated from remote_protocol.x
* src/esx/esx_driver.c, src/lxc/lxc_driver.c, src/network/bridge_driver.c,
src/opennebula/one_driver.c, src/openvz/openvz_conf.c,
src/openvz/openvz_driver.c, src/phyp/phyp_driver.c,
src/remote/remote_driver.c, src/storage/storage_driver.c,
src/test/test_driver.c, src/uml/uml_driver.c, src/vbox/vbox_tmpl.c,
src/xen/xen_driver.c, src/xen/xen_driver.h, src/xen/xen_inotify.c,
src/xen/xen_inotify.h: Implement all the new APIs where possible
2009-10-20 14:12:03 +00:00
|
|
|
int secure;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct remote_domain_is_active_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_is_active_ret {
|
|
|
|
int active;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct remote_domain_is_persistent_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_is_persistent_ret {
|
|
|
|
int persistent;
|
|
|
|
};
|
|
|
|
|
2010-11-15 03:23:34 +00:00
|
|
|
struct remote_domain_is_updated_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_is_updated_ret {
|
|
|
|
int updated;
|
|
|
|
};
|
Implmentation of new APIs to checking state/persistence of objects
This implements the virConnectIsSecure, virConnectIsEncrypted,
virDomainIsPersistent, virDomainIsActive, virNetworkIsActive,
virNetworkIsPersistent, virStoragePoolIsActive,
virStoragePoolIsPersistent, virInterfaceIsActive APIs in
(nearly) all drivers. Exceptions are:
phyp: missing domainIsActive/Persistent
esx: missing domainIsPersistent
opennebula: missing domainIsActive/Persistent
* src/remote/remote_protocol.x: Define remote wire ABI for newly
added APIs.
* daemon/remote_dispatch*.h: Re-generated from remote_protocol.x
* src/esx/esx_driver.c, src/lxc/lxc_driver.c, src/network/bridge_driver.c,
src/opennebula/one_driver.c, src/openvz/openvz_conf.c,
src/openvz/openvz_driver.c, src/phyp/phyp_driver.c,
src/remote/remote_driver.c, src/storage/storage_driver.c,
src/test/test_driver.c, src/uml/uml_driver.c, src/vbox/vbox_tmpl.c,
src/xen/xen_driver.c, src/xen/xen_driver.h, src/xen/xen_inotify.c,
src/xen/xen_inotify.h: Implement all the new APIs where possible
2009-10-20 14:12:03 +00:00
|
|
|
|
|
|
|
struct remote_network_is_active_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_is_active_ret {
|
|
|
|
int active;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_is_persistent_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_is_persistent_ret {
|
|
|
|
int persistent;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct remote_storage_pool_is_active_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_is_active_ret {
|
|
|
|
int active;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_is_persistent_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_is_persistent_ret {
|
|
|
|
int persistent;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct remote_interface_is_active_args {
|
|
|
|
remote_nonnull_interface iface;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_interface_is_active_ret {
|
|
|
|
int active;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_compare_cpu_args {
|
2009-12-18 14:49:34 +00:00
|
|
|
remote_nonnull_string xml;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2009-12-18 14:49:34 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_compare_cpu_ret {
|
2009-12-18 14:49:34 +00:00
|
|
|
int result;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_baseline_cpu_args {
|
2011-06-16 09:30:23 +00:00
|
|
|
remote_nonnull_string xmlCPUs<REMOTE_CPU_BASELINE_MAX>; /* (const char **) */
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2010-02-02 13:39:05 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_baseline_cpu_ret {
|
2010-02-02 13:39:05 +00:00
|
|
|
remote_nonnull_string cpu;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-02-03 14:10:13 +00:00
|
|
|
struct remote_domain_get_job_info_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2011-06-15 13:38:31 +00:00
|
|
|
struct remote_domain_get_job_info_ret { /* insert@1 */
|
2010-02-03 14:10:13 +00:00
|
|
|
int type;
|
|
|
|
|
|
|
|
unsigned hyper timeElapsed;
|
|
|
|
unsigned hyper timeRemaining;
|
|
|
|
|
|
|
|
unsigned hyper dataTotal;
|
|
|
|
unsigned hyper dataProcessed;
|
|
|
|
unsigned hyper dataRemaining;
|
|
|
|
|
|
|
|
unsigned hyper memTotal;
|
|
|
|
unsigned hyper memProcessed;
|
|
|
|
unsigned hyper memRemaining;
|
|
|
|
|
|
|
|
unsigned hyper fileTotal;
|
|
|
|
unsigned hyper fileProcessed;
|
|
|
|
unsigned hyper fileRemaining;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-01-30 09:49:28 +00:00
|
|
|
struct remote_domain_get_job_stats_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_job_stats_ret {
|
|
|
|
int type;
|
2013-08-19 11:42:31 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_JOB_STATS_MAX>;
|
2013-01-30 09:49:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-02-04 16:18:57 +00:00
|
|
|
struct remote_domain_abort_job_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-05-10 13:20:25 +00:00
|
|
|
struct remote_domain_abort_job_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-08-17 22:17:20 +00:00
|
|
|
struct remote_domain_migrate_get_max_downtime_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_get_max_downtime_ret {
|
|
|
|
unsigned hyper downtime; /* insert@1 */
|
|
|
|
};
|
|
|
|
|
2010-03-12 15:21:10 +00:00
|
|
|
struct remote_domain_migrate_set_max_downtime_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned hyper downtime;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2010-03-12 15:21:10 +00:00
|
|
|
};
|
|
|
|
|
2013-02-18 19:20:04 +00:00
|
|
|
struct remote_domain_migrate_get_compression_cache_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_get_compression_cache_ret {
|
|
|
|
unsigned hyper cacheSize; /* insert@1 */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_set_compression_cache_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned hyper cacheSize;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-02-17 14:26:14 +00:00
|
|
|
struct remote_domain_migrate_set_max_speed_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned hyper bandwidth;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2011-02-17 14:26:14 +00:00
|
|
|
};
|
|
|
|
|
2011-08-26 18:10:21 +00:00
|
|
|
struct remote_domain_migrate_get_max_speed_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_get_max_speed_ret {
|
|
|
|
unsigned hyper bandwidth; /* insert@1 */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_domain_event_register_any_args {
|
Remote driver & daemon impl of new event API
This wires up the remote driver to handle the new events APIs.
The public API allows an application to request a callback filters
events to a specific domain object, and register multiple callbacks
for the same event type. On the wire there are two strategies for
this
- Register multiple callbacks with the remote daemon, each
with filtering as needed
- Register only one callback per event type, with no filtering
Both approaches have potential inefficiency. In the first scheme,
the same event gets sent over the wire many times if multiple
callbacks are registered. With the second scheme, unneccessary
events get sent over the wire if a per-domain filter is set on
the client. The second scheme is far easier to implement though,
so this patch takes that approach.
* daemon/dispatch.h: Don't export remoteRelayDomainEvent since it
is no longer needed for unregistering callbacks, instead the
unique callback ID is used
* daemon/libvirtd.c, daemon/libvirtd.h: Track and unregister
callbacks based on callback ID, instead of function pointer
* daemon/remote.c: Switch over to using virConnectDomainEventRegisterAny
instead of legacy virConnectDomainEventRegister function. Refactor
remoteDispatchDomainEventSend() to cope with arbitrary event types
* src/driver.h, src/driver.c: Move verify() call into source file
instead of header, to avoid polluting the global namespace with
the verify function name
* src/remote/remote_driver.c: Implement new APIs for event
registration. Refactor processCallDispatchMessage() to cope
with arbitrary incoming event types. Merge remoteDomainQueueEvent()
into processCallDispatchMessage() to avoid duplication of code.
Rename remoteDomainReadEvent() to remoteDomainReadEventLifecycle()
* src/remote/remote_protocol.x: Define wire format for the new
virConnectDomainEventRegisterAny and virConnectDomainEventDeregisterAny
functions
2010-03-18 14:56:56 +00:00
|
|
|
int eventID;
|
|
|
|
};
|
|
|
|
|
2013-04-18 11:07:23 +00:00
|
|
|
struct remote_connect_domain_event_deregister_any_args {
|
Remote driver & daemon impl of new event API
This wires up the remote driver to handle the new events APIs.
The public API allows an application to request a callback filters
events to a specific domain object, and register multiple callbacks
for the same event type. On the wire there are two strategies for
this
- Register multiple callbacks with the remote daemon, each
with filtering as needed
- Register only one callback per event type, with no filtering
Both approaches have potential inefficiency. In the first scheme,
the same event gets sent over the wire many times if multiple
callbacks are registered. With the second scheme, unneccessary
events get sent over the wire if a per-domain filter is set on
the client. The second scheme is far easier to implement though,
so this patch takes that approach.
* daemon/dispatch.h: Don't export remoteRelayDomainEvent since it
is no longer needed for unregistering callbacks, instead the
unique callback ID is used
* daemon/libvirtd.c, daemon/libvirtd.h: Track and unregister
callbacks based on callback ID, instead of function pointer
* daemon/remote.c: Switch over to using virConnectDomainEventRegisterAny
instead of legacy virConnectDomainEventRegister function. Refactor
remoteDispatchDomainEventSend() to cope with arbitrary event types
* src/driver.h, src/driver.c: Move verify() call into source file
instead of header, to avoid polluting the global namespace with
the verify function name
* src/remote/remote_driver.c: Implement new APIs for event
registration. Refactor processCallDispatchMessage() to cope
with arbitrary incoming event types. Merge remoteDomainQueueEvent()
into processCallDispatchMessage() to avoid duplication of code.
Rename remoteDomainReadEvent() to remoteDomainReadEventLifecycle()
* src/remote/remote_protocol.x: Define wire format for the new
virConnectDomainEventRegisterAny and virConnectDomainEventDeregisterAny
functions
2010-03-18 14:56:56 +00:00
|
|
|
int eventID;
|
|
|
|
};
|
|
|
|
|
event: server RPC protocol tweaks for domain lifecycle events
This patch adds some new RPC call numbers, but for ease of review,
they sit idle until a later patch adds the client counterpart to
drive the new RPCs. Also for ease of review, I limited this patch
to just the lifecycle event; although converting the remaining
15 domain events will be quite mechanical. On the server side,
we have to have a function per RPC call, largely with duplicated
bodies (the key difference being that we store in our callback
opaque pointer whether events should be fired with old or new
style); meanwhile, a single function can drive multiple RPC
messages. With a strategic choice of XDR struct layout, we can
make the event generation code for both styles fairly compact.
I debated about adding a tri-state witness variable per
connection (values 'unknown', 'legacy', 'modern'). It would start
as 'unknown', move to 'legacy' if any RPC call is made to a legacy
event call, and move to 'modern' if the feature probe is made;
then the event code could issue an error if the witness state is
incorrect (a legacy RPC call while in 'modern', a modern RPC call
while in 'unknown' or 'legacy', and a feature probe while in
'legacy' or 'modern'). But while it might prevent odd behavior
caused by protocol fuzzing, I don't see that it would prevent
any security holes, so I considered it bloat.
Note that sticking @acl markers on the new RPCs generates unused
functions in access/viraccessapicheck.c, because there is no new
API call that needs to use the new checks; however, having a
consistent .x file is worth the dead code.
* src/libvirt_internal.h (VIR_DRV_FEATURE_REMOTE_EVENT_CALLBACK):
New feature.
* src/remote/remote_protocol.x
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_REGISTER_ANY)
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_DEREGISTER_ANY)
(REMOTE_PROC_DOMAIN_EVENT_CALLBACK_LIFECYCLE): New RPCs.
* daemon/remote.c (daemonClientCallback): Add field.
(remoteDispatchConnectDomainEventCallbackRegisterAny)
(remoteDispatchConnectDomainEventCallbackDeregisterAny): New
functions.
(remoteDispatchConnectDomainEventRegisterAny)
(remoteDispatchConnectDomainEventDeregisterAny): Mark legacy use.
(remoteRelayDomainEventLifecycle): Change message based on legacy
or new use.
(remoteDispatchConnectSupportsFeature): Advertise new feature.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:59:35 +00:00
|
|
|
struct remote_connect_domain_event_callback_register_any_args {
|
|
|
|
int eventID;
|
|
|
|
remote_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_domain_event_callback_register_any_ret {
|
|
|
|
int callbackID;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_domain_event_callback_deregister_any_args {
|
|
|
|
int callbackID;
|
|
|
|
};
|
|
|
|
|
2010-03-18 15:25:38 +00:00
|
|
|
struct remote_domain_event_reboot_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_reboot_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_reboot_msg msg;
|
|
|
|
};
|
2010-03-12 15:21:10 +00:00
|
|
|
|
2010-03-18 18:28:15 +00:00
|
|
|
struct remote_domain_event_rtc_change_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
hyper offset;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_rtc_change_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_rtc_change_msg msg;
|
|
|
|
};
|
2010-03-18 18:28:15 +00:00
|
|
|
|
Add support for an explicit watchdog event
This introduces a new event type
VIR_DOMAIN_EVENT_ID_WATCHDOG
This event includes the action that is about to be taken
as a result of the watchdog triggering
typedef enum {
VIR_DOMAIN_EVENT_WATCHDOG_NONE = 0,
VIR_DOMAIN_EVENT_WATCHDOG_PAUSE,
VIR_DOMAIN_EVENT_WATCHDOG_RESET,
VIR_DOMAIN_EVENT_WATCHDOG_POWEROFF,
VIR_DOMAIN_EVENT_WATCHDOG_SHUTDOWN,
VIR_DOMAIN_EVENT_WATCHDOG_DEBUG,
} virDomainEventWatchdogAction;
Thus there is a new callback definition for this event type
typedef void (*virConnectDomainEventWatchdogCallback)(virConnectPtr conn,
virDomainPtr dom,
int action,
void *opaque);
* daemon/remote.c: Dispatch watchdog events to client
* examples/domain-events/events-c/event-test.c: Watch for
watchdog events
* include/libvirt/libvirt.h.in: Define new watchdg event ID
and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
src/libvirt_private.syms: Extend API to handle watchdog events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
for watchdogs and emit a libvirt watchdog event
* src/remote/remote_driver.c: Receive and dispatch watchdog
events to application
* src/remote/remote_protocol.x: Wire protocol definition for
watchdog events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
src/qemu/qemu_monitor_json.c: Watch for WATCHDOG event
from QEMU monitor
2010-03-18 19:07:48 +00:00
|
|
|
struct remote_domain_event_watchdog_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int action;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_watchdog_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_watchdog_msg msg;
|
|
|
|
};
|
Add support for an explicit watchdog event
This introduces a new event type
VIR_DOMAIN_EVENT_ID_WATCHDOG
This event includes the action that is about to be taken
as a result of the watchdog triggering
typedef enum {
VIR_DOMAIN_EVENT_WATCHDOG_NONE = 0,
VIR_DOMAIN_EVENT_WATCHDOG_PAUSE,
VIR_DOMAIN_EVENT_WATCHDOG_RESET,
VIR_DOMAIN_EVENT_WATCHDOG_POWEROFF,
VIR_DOMAIN_EVENT_WATCHDOG_SHUTDOWN,
VIR_DOMAIN_EVENT_WATCHDOG_DEBUG,
} virDomainEventWatchdogAction;
Thus there is a new callback definition for this event type
typedef void (*virConnectDomainEventWatchdogCallback)(virConnectPtr conn,
virDomainPtr dom,
int action,
void *opaque);
* daemon/remote.c: Dispatch watchdog events to client
* examples/domain-events/events-c/event-test.c: Watch for
watchdog events
* include/libvirt/libvirt.h.in: Define new watchdg event ID
and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
src/libvirt_private.syms: Extend API to handle watchdog events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
for watchdogs and emit a libvirt watchdog event
* src/remote/remote_driver.c: Receive and dispatch watchdog
events to application
* src/remote/remote_protocol.x: Wire protocol definition for
watchdog events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
src/qemu/qemu_monitor_json.c: Watch for WATCHDOG event
from QEMU monitor
2010-03-18 19:07:48 +00:00
|
|
|
|
Add support for an explicit IO error event
This introduces a new event type
VIR_DOMAIN_EVENT_ID_IO_ERROR
This event includes the action that is about to be taken
as a result of the watchdog triggering
typedef enum {
VIR_DOMAIN_EVENT_IO_ERROR_NONE = 0,
VIR_DOMAIN_EVENT_IO_ERROR_PAUSE,
VIR_DOMAIN_EVENT_IO_ERROR_REPORT,
} virDomainEventIOErrorAction;
In addition it has the source path of the disk that had the
error and its unique device alias. It does not include the
target device name (/dev/sda), since this would preclude
triggering IO errors from other file backed devices (eg
serial ports connected to a file)
Thus there is a new callback definition for this event type
typedef void (*virConnectDomainEventIOErrorCallback)(virConnectPtr conn,
virDomainPtr dom,
const char *srcPath,
const char *devAlias,
int action,
void *opaque);
This is currently wired up to the QEMU block IO error events
* daemon/remote.c: Dispatch IO error events to client
* examples/domain-events/events-c/event-test.c: Watch for
IO error events
* include/libvirt/libvirt.h.in: Define new IO error event ID
and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
src/libvirt_private.syms: Extend API to handle IO error events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
for block IO errors and emit a libvirt IO error event
* src/remote/remote_driver.c: Receive and dispatch IO error
events to application
* src/remote/remote_protocol.x: Wire protocol definition for
IO error events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
src/qemu/qemu_monitor_json.c: Watch for BLOCK_IO_ERROR event
from QEMU monitor
2010-03-18 19:37:44 +00:00
|
|
|
struct remote_domain_event_io_error_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string srcPath;
|
|
|
|
remote_nonnull_string devAlias;
|
|
|
|
int action;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_io_error_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_io_error_msg msg;
|
|
|
|
};
|
Add support for an explicit IO error event
This introduces a new event type
VIR_DOMAIN_EVENT_ID_IO_ERROR
This event includes the action that is about to be taken
as a result of the watchdog triggering
typedef enum {
VIR_DOMAIN_EVENT_IO_ERROR_NONE = 0,
VIR_DOMAIN_EVENT_IO_ERROR_PAUSE,
VIR_DOMAIN_EVENT_IO_ERROR_REPORT,
} virDomainEventIOErrorAction;
In addition it has the source path of the disk that had the
error and its unique device alias. It does not include the
target device name (/dev/sda), since this would preclude
triggering IO errors from other file backed devices (eg
serial ports connected to a file)
Thus there is a new callback definition for this event type
typedef void (*virConnectDomainEventIOErrorCallback)(virConnectPtr conn,
virDomainPtr dom,
const char *srcPath,
const char *devAlias,
int action,
void *opaque);
This is currently wired up to the QEMU block IO error events
* daemon/remote.c: Dispatch IO error events to client
* examples/domain-events/events-c/event-test.c: Watch for
IO error events
* include/libvirt/libvirt.h.in: Define new IO error event ID
and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
src/libvirt_private.syms: Extend API to handle IO error events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
for block IO errors and emit a libvirt IO error event
* src/remote/remote_driver.c: Receive and dispatch IO error
events to application
* src/remote/remote_protocol.x: Wire protocol definition for
IO error events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
src/qemu/qemu_monitor_json.c: Watch for BLOCK_IO_ERROR event
from QEMU monitor
2010-03-18 19:37:44 +00:00
|
|
|
|
Add support for another explicit IO error event
This introduces a new event type
VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON
This event is the same as the previous VIR_DOMAIN_ID_IO_ERROR
event, but also includes a string describing the cause of
the event.
Thus there is a new callback definition for this event type
typedef void (*virConnectDomainEventIOErrorReasonCallback)(virConnectPtr conn,
virDomainPtr dom,
const char *srcPath,
const char *devAlias,
int action,
const char *reason,
void *opaque);
This is currently wired up to the QEMU block IO error events
* daemon/remote.c: Dispatch IO error events to client
* examples/domain-events/events-c/event-test.c: Watch for
IO error events
* include/libvirt/libvirt.h.in: Define new IO error event ID
and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
src/libvirt_private.syms: Extend API to handle IO error events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
for block IO errors and emit a libvirt IO error event
* src/remote/remote_driver.c: Receive and dispatch IO error
events to application
* src/remote/remote_protocol.x: Wire protocol definition for
IO error events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
src/qemu/qemu_monitor_json.c: Watch for BLOCK_IO_ERROR event
from QEMU monitor
2010-03-18 19:37:44 +00:00
|
|
|
struct remote_domain_event_io_error_reason_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string srcPath;
|
|
|
|
remote_nonnull_string devAlias;
|
|
|
|
int action;
|
|
|
|
remote_nonnull_string reason;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_io_error_reason_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_io_error_reason_msg msg;
|
|
|
|
};
|
Add support for another explicit IO error event
This introduces a new event type
VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON
This event is the same as the previous VIR_DOMAIN_ID_IO_ERROR
event, but also includes a string describing the cause of
the event.
Thus there is a new callback definition for this event type
typedef void (*virConnectDomainEventIOErrorReasonCallback)(virConnectPtr conn,
virDomainPtr dom,
const char *srcPath,
const char *devAlias,
int action,
const char *reason,
void *opaque);
This is currently wired up to the QEMU block IO error events
* daemon/remote.c: Dispatch IO error events to client
* examples/domain-events/events-c/event-test.c: Watch for
IO error events
* include/libvirt/libvirt.h.in: Define new IO error event ID
and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
src/libvirt_private.syms: Extend API to handle IO error events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
for block IO errors and emit a libvirt IO error event
* src/remote/remote_driver.c: Receive and dispatch IO error
events to application
* src/remote/remote_protocol.x: Wire protocol definition for
IO error events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
src/qemu/qemu_monitor_json.c: Watch for BLOCK_IO_ERROR event
from QEMU monitor
2010-03-18 19:37:44 +00:00
|
|
|
|
Add domain events for graphics network clients
This introduces a new event type
VIR_DOMAIN_EVENT_ID_GRAPHICS
The same event can be emitted in 3 scenarios
typedef enum {
VIR_DOMAIN_EVENT_GRAPHICS_CONNECT = 0,
VIR_DOMAIN_EVENT_GRAPHICS_INITIALIZE,
VIR_DOMAIN_EVENT_GRAPHICS_DISCONNECT,
} virDomainEventGraphicsPhase;
Connect/disconnect are triggered at socket accept/close.
The initialize phase is immediately after the protocol
setup and authentication has completed. ie when the
client is authorized and about to start interacting with
the graphical desktop
This event comes with *a lot* of potential information
- IP address, port & address family of client
- IP address, port & address family of server
- Authentication scheme (arbitrary string)
- Authenticated subject identity. A subject may have
multiple identities with some authentication schemes.
For example, vencrypt+sasl results in a x509dname
and saslUsername identities.
This results in a very complicated callback :-(
typedef enum {
VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4,
VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV6,
} virDomainEventGraphicsAddressType;
struct _virDomainEventGraphicsAddress {
int family;
const char *node;
const char *service;
};
typedef struct _virDomainEventGraphicsAddress virDomainEventGraphicsAddress;
typedef virDomainEventGraphicsAddress *virDomainEventGraphicsAddressPtr;
struct _virDomainEventGraphicsSubject {
int nidentity;
struct {
const char *type;
const char *name;
} *identities;
};
typedef struct _virDomainEventGraphicsSubject virDomainEventGraphicsSubject;
typedef virDomainEventGraphicsSubject *virDomainEventGraphicsSubjectPtr;
typedef void (*virConnectDomainEventGraphicsCallback)(virConnectPtr conn,
virDomainPtr dom,
int phase,
virDomainEventGraphicsAddressPtr local,
virDomainEventGraphicsAddressPtr remote,
const char *authScheme,
virDomainEventGraphicsSubjectPtr subject,
void *opaque);
The wire protocol is similarly complex
struct remote_domain_event_graphics_address {
int family;
remote_nonnull_string node;
remote_nonnull_string service;
};
const REMOTE_DOMAIN_EVENT_GRAPHICS_IDENTITY_MAX = 20;
struct remote_domain_event_graphics_identity {
remote_nonnull_string type;
remote_nonnull_string name;
};
struct remote_domain_event_graphics_msg {
remote_nonnull_domain dom;
int phase;
remote_domain_event_graphics_address local;
remote_domain_event_graphics_address remote;
remote_nonnull_string authScheme;
remote_domain_event_graphics_identity subject<REMOTE_DOMAIN_EVENT_GRAPHICS_IDENTITY_MAX>;
};
This is currently implemented in QEMU for the VNC graphics
protocol, but designed to be usable with SPICE graphics in
the future too.
* daemon/remote.c: Dispatch graphics events to client
* examples/domain-events/events-c/event-test.c: Watch for
graphics events
* include/libvirt/libvirt.h.in: Define new graphics event ID
and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
src/libvirt_private.syms: Extend API to handle graphics events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
for VNC events and emit a libvirt graphics event
* src/remote/remote_driver.c: Receive and dispatch graphics
events to application
* src/remote/remote_protocol.x: Wire protocol definition for
graphics events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
src/qemu/qemu_monitor_json.c: Watch for VNC_CONNECTED,
VNC_INITIALIZED & VNC_DISCONNETED events from QEMU monitor
2010-03-19 13:27:45 +00:00
|
|
|
struct remote_domain_event_graphics_address {
|
|
|
|
int family;
|
|
|
|
remote_nonnull_string node;
|
|
|
|
remote_nonnull_string service;
|
|
|
|
};
|
|
|
|
|
|
|
|
const REMOTE_DOMAIN_EVENT_GRAPHICS_IDENTITY_MAX = 20;
|
|
|
|
|
|
|
|
struct remote_domain_event_graphics_identity {
|
|
|
|
remote_nonnull_string type;
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_event_graphics_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int phase;
|
|
|
|
remote_domain_event_graphics_address local;
|
|
|
|
remote_domain_event_graphics_address remote;
|
|
|
|
remote_nonnull_string authScheme;
|
|
|
|
remote_domain_event_graphics_identity subject<REMOTE_DOMAIN_EVENT_GRAPHICS_IDENTITY_MAX>;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_graphics_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_graphics_msg msg;
|
|
|
|
};
|
Add domain events for graphics network clients
This introduces a new event type
VIR_DOMAIN_EVENT_ID_GRAPHICS
The same event can be emitted in 3 scenarios
typedef enum {
VIR_DOMAIN_EVENT_GRAPHICS_CONNECT = 0,
VIR_DOMAIN_EVENT_GRAPHICS_INITIALIZE,
VIR_DOMAIN_EVENT_GRAPHICS_DISCONNECT,
} virDomainEventGraphicsPhase;
Connect/disconnect are triggered at socket accept/close.
The initialize phase is immediately after the protocol
setup and authentication has completed. ie when the
client is authorized and about to start interacting with
the graphical desktop
This event comes with *a lot* of potential information
- IP address, port & address family of client
- IP address, port & address family of server
- Authentication scheme (arbitrary string)
- Authenticated subject identity. A subject may have
multiple identities with some authentication schemes.
For example, vencrypt+sasl results in a x509dname
and saslUsername identities.
This results in a very complicated callback :-(
typedef enum {
VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4,
VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV6,
} virDomainEventGraphicsAddressType;
struct _virDomainEventGraphicsAddress {
int family;
const char *node;
const char *service;
};
typedef struct _virDomainEventGraphicsAddress virDomainEventGraphicsAddress;
typedef virDomainEventGraphicsAddress *virDomainEventGraphicsAddressPtr;
struct _virDomainEventGraphicsSubject {
int nidentity;
struct {
const char *type;
const char *name;
} *identities;
};
typedef struct _virDomainEventGraphicsSubject virDomainEventGraphicsSubject;
typedef virDomainEventGraphicsSubject *virDomainEventGraphicsSubjectPtr;
typedef void (*virConnectDomainEventGraphicsCallback)(virConnectPtr conn,
virDomainPtr dom,
int phase,
virDomainEventGraphicsAddressPtr local,
virDomainEventGraphicsAddressPtr remote,
const char *authScheme,
virDomainEventGraphicsSubjectPtr subject,
void *opaque);
The wire protocol is similarly complex
struct remote_domain_event_graphics_address {
int family;
remote_nonnull_string node;
remote_nonnull_string service;
};
const REMOTE_DOMAIN_EVENT_GRAPHICS_IDENTITY_MAX = 20;
struct remote_domain_event_graphics_identity {
remote_nonnull_string type;
remote_nonnull_string name;
};
struct remote_domain_event_graphics_msg {
remote_nonnull_domain dom;
int phase;
remote_domain_event_graphics_address local;
remote_domain_event_graphics_address remote;
remote_nonnull_string authScheme;
remote_domain_event_graphics_identity subject<REMOTE_DOMAIN_EVENT_GRAPHICS_IDENTITY_MAX>;
};
This is currently implemented in QEMU for the VNC graphics
protocol, but designed to be usable with SPICE graphics in
the future too.
* daemon/remote.c: Dispatch graphics events to client
* examples/domain-events/events-c/event-test.c: Watch for
graphics events
* include/libvirt/libvirt.h.in: Define new graphics event ID
and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
src/libvirt_private.syms: Extend API to handle graphics events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
for VNC events and emit a libvirt graphics event
* src/remote/remote_driver.c: Receive and dispatch graphics
events to application
* src/remote/remote_protocol.x: Wire protocol definition for
graphics events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
src/qemu/qemu_monitor_json.c: Watch for VNC_CONNECTED,
VNC_INITIALIZED & VNC_DISCONNETED events from QEMU monitor
2010-03-19 13:27:45 +00:00
|
|
|
|
2011-07-22 05:57:42 +00:00
|
|
|
struct remote_domain_event_block_job_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
int type;
|
|
|
|
int status;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_block_job_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_block_job_msg msg;
|
|
|
|
};
|
2011-07-22 05:57:42 +00:00
|
|
|
|
2011-10-18 14:15:42 +00:00
|
|
|
struct remote_domain_event_disk_change_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_string oldSrcPath;
|
|
|
|
remote_string newSrcPath;
|
|
|
|
remote_nonnull_string devAlias;
|
|
|
|
int reason;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_disk_change_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_disk_change_msg msg;
|
|
|
|
};
|
2011-10-18 14:15:42 +00:00
|
|
|
|
2012-03-23 13:44:50 +00:00
|
|
|
struct remote_domain_event_tray_change_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string devAlias;
|
|
|
|
int reason;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_tray_change_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_tray_change_msg msg;
|
|
|
|
};
|
2012-03-23 13:44:50 +00:00
|
|
|
|
2012-03-23 14:43:14 +00:00
|
|
|
struct remote_domain_event_pmwakeup_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_pmwakeup_msg {
|
|
|
|
int callbackID;
|
2014-01-29 00:41:34 +00:00
|
|
|
int reason;
|
2014-01-09 18:22:53 +00:00
|
|
|
remote_domain_event_pmwakeup_msg msg;
|
|
|
|
};
|
2012-03-23 14:43:14 +00:00
|
|
|
|
2012-03-23 14:50:36 +00:00
|
|
|
struct remote_domain_event_pmsuspend_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_pmsuspend_msg {
|
|
|
|
int callbackID;
|
2014-01-29 00:41:34 +00:00
|
|
|
int reason;
|
2014-01-09 18:22:53 +00:00
|
|
|
remote_domain_event_pmsuspend_msg msg;
|
|
|
|
};
|
2012-03-23 14:50:36 +00:00
|
|
|
|
2012-07-13 09:05:17 +00:00
|
|
|
struct remote_domain_event_balloon_change_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned hyper actual;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_balloon_change_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_balloon_change_msg msg;
|
|
|
|
};
|
2012-07-13 09:05:17 +00:00
|
|
|
|
2012-10-12 19:13:39 +00:00
|
|
|
struct remote_domain_event_pmsuspend_disk_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_pmsuspend_disk_msg {
|
|
|
|
int callbackID;
|
2014-01-29 00:41:34 +00:00
|
|
|
int reason;
|
2014-01-09 18:22:53 +00:00
|
|
|
remote_domain_event_pmsuspend_disk_msg msg;
|
|
|
|
};
|
2012-10-12 19:13:39 +00:00
|
|
|
|
2010-04-01 08:54:12 +00:00
|
|
|
struct remote_domain_managed_save_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2010-04-01 08:54:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_has_managed_save_image_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2010-04-01 08:54:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_has_managed_save_image_ret {
|
2011-04-22 13:40:31 +00:00
|
|
|
int result;
|
2010-04-01 08:54:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_managed_save_remove_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2010-04-01 08:54:12 +00:00
|
|
|
};
|
|
|
|
|
2017-08-08 08:02:49 +00:00
|
|
|
struct remote_domain_managed_save_get_xml_desc_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_managed_save_get_xml_desc_ret {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
2017-08-08 08:02:50 +00:00
|
|
|
struct remote_domain_managed_save_define_xml_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_string dxml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2010-03-31 20:33:13 +00:00
|
|
|
struct remote_domain_snapshot_create_xml_args {
|
2011-04-22 13:40:31 +00:00
|
|
|
remote_nonnull_domain dom;
|
2010-03-31 20:33:13 +00:00
|
|
|
remote_nonnull_string xml_desc;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_create_xml_ret {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_domain_snapshot_get_xml_desc_args {
|
2010-03-31 20:33:13 +00:00
|
|
|
remote_nonnull_domain_snapshot snap;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
2011-05-06 19:53:10 +00:00
|
|
|
struct remote_domain_snapshot_get_xml_desc_ret {
|
2010-03-31 20:33:13 +00:00
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_num_args {
|
2011-04-22 13:40:31 +00:00
|
|
|
remote_nonnull_domain dom;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_num_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_list_names_args {
|
2011-04-22 13:40:31 +00:00
|
|
|
remote_nonnull_domain dom;
|
2011-04-22 20:45:02 +00:00
|
|
|
int maxnames;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_list_names_ret {
|
2013-08-19 11:55:53 +00:00
|
|
|
remote_nonnull_string names<REMOTE_DOMAIN_SNAPSHOT_LIST_MAX>; /* insert@1 */
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
2012-06-10 03:24:57 +00:00
|
|
|
struct remote_domain_list_all_snapshots_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_domain_list_all_snapshots_ret { /* insert@1 */
|
2013-08-19 11:55:53 +00:00
|
|
|
remote_nonnull_domain_snapshot snapshots<REMOTE_DOMAIN_SNAPSHOT_LIST_MAX>;
|
2012-06-10 03:24:57 +00:00
|
|
|
int ret;
|
|
|
|
};
|
|
|
|
|
2011-09-29 18:06:49 +00:00
|
|
|
struct remote_domain_snapshot_num_children_args {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_num_children_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_list_children_names_args {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
|
|
|
int maxnames;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_list_children_names_ret {
|
2013-08-19 11:55:53 +00:00
|
|
|
remote_nonnull_string names<REMOTE_DOMAIN_SNAPSHOT_LIST_MAX>; /* insert@1 */
|
2011-09-29 18:06:49 +00:00
|
|
|
};
|
|
|
|
|
2012-06-10 03:24:57 +00:00
|
|
|
struct remote_domain_snapshot_list_all_children_args {
|
|
|
|
remote_nonnull_domain_snapshot snapshot;
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_domain_snapshot_list_all_children_ret { /* insert@1 */
|
2013-08-19 11:55:53 +00:00
|
|
|
remote_nonnull_domain_snapshot snapshots<REMOTE_DOMAIN_SNAPSHOT_LIST_MAX>;
|
2012-06-10 03:24:57 +00:00
|
|
|
int ret;
|
|
|
|
};
|
|
|
|
|
2010-03-31 20:33:13 +00:00
|
|
|
struct remote_domain_snapshot_lookup_by_name_args {
|
2011-04-22 13:40:31 +00:00
|
|
|
remote_nonnull_domain dom;
|
2010-03-31 20:33:13 +00:00
|
|
|
remote_nonnull_string name;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_lookup_by_name_ret {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_has_current_snapshot_args {
|
2011-04-22 13:40:31 +00:00
|
|
|
remote_nonnull_domain dom;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_has_current_snapshot_ret {
|
|
|
|
int result;
|
|
|
|
};
|
|
|
|
|
2011-09-24 19:19:35 +00:00
|
|
|
struct remote_domain_snapshot_get_parent_args {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_get_parent_ret {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
|
|
|
};
|
|
|
|
|
2010-03-31 20:33:13 +00:00
|
|
|
struct remote_domain_snapshot_current_args {
|
2011-04-22 13:40:31 +00:00
|
|
|
remote_nonnull_domain dom;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_current_ret {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
|
|
|
};
|
|
|
|
|
2012-05-24 22:47:04 +00:00
|
|
|
struct remote_domain_snapshot_is_current_args {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_is_current_ret {
|
|
|
|
int current;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_has_metadata_args {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_has_metadata_ret {
|
|
|
|
int metadata;
|
|
|
|
};
|
|
|
|
|
2010-03-31 20:33:13 +00:00
|
|
|
struct remote_domain_revert_to_snapshot_args {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_snapshot_delete_args {
|
|
|
|
remote_nonnull_domain_snapshot snap;
|
2011-05-21 14:20:44 +00:00
|
|
|
unsigned int flags;
|
2010-03-31 20:33:13 +00:00
|
|
|
};
|
|
|
|
|
2010-07-23 12:57:14 +00:00
|
|
|
struct remote_domain_open_console_args {
|
2011-04-22 13:40:31 +00:00
|
|
|
remote_nonnull_domain dom;
|
2011-09-19 14:14:34 +00:00
|
|
|
remote_string dev_name;
|
2010-07-23 12:57:14 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
2010-03-31 20:33:13 +00:00
|
|
|
|
2012-12-13 16:24:16 +00:00
|
|
|
struct remote_domain_open_channel_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_string name;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2009-07-14 22:46:15 +00:00
|
|
|
struct remote_storage_vol_upload_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
unsigned hyper offset;
|
|
|
|
unsigned hyper length;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_download_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
unsigned hyper offset;
|
|
|
|
unsigned hyper length;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-04-26 14:47:22 +00:00
|
|
|
struct remote_domain_get_state_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_state_ret {
|
|
|
|
int state;
|
|
|
|
int reason;
|
|
|
|
};
|
|
|
|
|
2011-02-01 14:23:40 +00:00
|
|
|
struct remote_domain_migrate_begin3_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-18 09:26:30 +00:00
|
|
|
remote_string xmlin;
|
2011-02-01 14:23:40 +00:00
|
|
|
unsigned hyper flags;
|
|
|
|
remote_string dname;
|
|
|
|
unsigned hyper resource;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_begin3_ret {
|
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare3_args {
|
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_string uri_in;
|
|
|
|
unsigned hyper flags;
|
|
|
|
remote_string dname;
|
|
|
|
unsigned hyper resource;
|
|
|
|
remote_nonnull_string dom_xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare3_ret {
|
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_string uri_out;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare_tunnel3_args {
|
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
unsigned hyper flags;
|
|
|
|
remote_string dname;
|
|
|
|
unsigned hyper resource;
|
|
|
|
remote_nonnull_string dom_xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare_tunnel3_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>; /* insert@3 */
|
2011-02-01 14:23:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_perform3_args {
|
|
|
|
remote_nonnull_domain dom;
|
2011-05-18 09:26:30 +00:00
|
|
|
remote_string xmlin;
|
2011-02-01 14:23:40 +00:00
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
Add a second URI parameter to virDomainMigratePerform3 method
The virDomainMigratePerform3 currently has a single URI parameter
whose meaning varies. It is either
- A QEMU migration URI (normal migration)
- A libvirtd connection URI (peer2peer migration)
Unfortunately when using peer2peer migration, without also
using tunnelled migration, it is possible that both URIs are
required.
This adds a second URI parameter to the virDomainMigratePerform3
method, to cope with this scenario. Each parameter how has a fixed
meaning.
NB, there is no way to actually take advantage of this yet,
since virDomainMigrate/virDomainMigrateToURI do not have any
way to provide the 2 separate URIs
* daemon/remote.c, src/remote/remote_driver.c,
src/remote/remote_protocol.x, src/remote_protocol-structs: Add
the second URI parameter to perform3 message
* src/driver.h, src/libvirt.c, src/libvirt_internal.h: Add
the second URI parameter to Perform3 method
* src/libvirt_internal.h, src/qemu/qemu_migration.c,
src/qemu/qemu_migration.h: Update to handle URIs correctly
2011-05-18 13:18:53 +00:00
|
|
|
remote_string dconnuri;
|
|
|
|
remote_string uri;
|
2011-02-01 14:23:40 +00:00
|
|
|
unsigned hyper flags;
|
|
|
|
remote_string dname;
|
|
|
|
unsigned hyper resource;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_perform3_ret {
|
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_finish3_args {
|
|
|
|
remote_nonnull_string dname;
|
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
Add a second URI parameter to virDomainMigratePerform3 method
The virDomainMigratePerform3 currently has a single URI parameter
whose meaning varies. It is either
- A QEMU migration URI (normal migration)
- A libvirtd connection URI (peer2peer migration)
Unfortunately when using peer2peer migration, without also
using tunnelled migration, it is possible that both URIs are
required.
This adds a second URI parameter to the virDomainMigratePerform3
method, to cope with this scenario. Each parameter how has a fixed
meaning.
NB, there is no way to actually take advantage of this yet,
since virDomainMigrate/virDomainMigrateToURI do not have any
way to provide the 2 separate URIs
* daemon/remote.c, src/remote/remote_driver.c,
src/remote/remote_protocol.x, src/remote_protocol-structs: Add
the second URI parameter to perform3 message
* src/driver.h, src/libvirt.c, src/libvirt_internal.h: Add
the second URI parameter to Perform3 method
* src/libvirt_internal.h, src/qemu/qemu_migration.c,
src/qemu/qemu_migration.h: Update to handle URIs correctly
2011-05-18 13:18:53 +00:00
|
|
|
remote_string dconnuri;
|
|
|
|
remote_string uri;
|
2011-02-01 14:23:40 +00:00
|
|
|
unsigned hyper flags;
|
|
|
|
int cancelled;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_finish3_ret {
|
Fix the signature of virDomainMigrateFinish3 for error reporting
The current virDomainMigrateFinish3 method signature attempts to
distinguish two types of errors, by allowing return with ret== 0,
but ddomain == NULL, to indicate a failure to start the guest.
This is flawed, because when ret == 0, there is no way for the
virErrorPtr details to be sent back to the client.
Change the signature of virDomainMigrateFinish3 so it simply
returns a virDomainPtr, in the same way as virDomainMigrateFinish2
The disk locking code will protect against the only possible
failure mode this doesn't account for (loosing conenctivity to
libvirtd after Finish3 starts the CPUs, but before the client
sees the reply for Finish3).
* src/driver.h, src/libvirt.c, src/libvirt_internal.h: Change
virDomainMigrateFinish3 to return a virDomainPtr instead of int
* src/remote/remote_driver.c, src/remote/remote_protocol.x,
daemon/remote.c, src/qemu/qemu_driver.c, src/qemu/qemu_migration.c:
Update for API change
2011-05-24 12:05:33 +00:00
|
|
|
remote_nonnull_domain dom;
|
2011-02-01 14:23:40 +00:00
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_confirm3_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
unsigned hyper flags;
|
|
|
|
int cancelled;
|
|
|
|
};
|
2009-07-14 22:46:15 +00:00
|
|
|
|
2011-05-29 12:21:53 +00:00
|
|
|
struct remote_domain_event_control_error_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_control_error_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_control_error_msg msg;
|
|
|
|
};
|
2011-05-29 12:21:53 +00:00
|
|
|
|
2011-05-31 15:37:00 +00:00
|
|
|
struct remote_domain_get_control_info_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_control_info_ret { /* insert@1 */
|
|
|
|
unsigned int state;
|
|
|
|
unsigned int details;
|
|
|
|
unsigned hyper stateTime;
|
|
|
|
};
|
|
|
|
|
2011-10-21 11:49:23 +00:00
|
|
|
struct remote_domain_open_graphics_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int idx;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2014-08-25 16:55:20 +00:00
|
|
|
struct remote_domain_open_graphics_fd_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int idx;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-11-29 07:15:14 +00:00
|
|
|
struct remote_node_suspend_for_duration_args {
|
|
|
|
unsigned int target;
|
|
|
|
unsigned hyper duration;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2011-10-05 17:31:55 +00:00
|
|
|
struct remote_domain_shutdown_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2012-01-31 06:42:31 +00:00
|
|
|
struct remote_domain_get_disk_errors_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int maxerrors;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_disk_errors_ret {
|
|
|
|
remote_domain_disk_error errors<REMOTE_DOMAIN_DISK_ERRORS_MAX>;
|
|
|
|
int nerrors;
|
|
|
|
};
|
|
|
|
|
2012-05-20 14:26:36 +00:00
|
|
|
struct remote_connect_list_all_domains_args {
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_connect_list_all_domains_ret { /* insert@1 */
|
2013-08-19 13:23:31 +00:00
|
|
|
remote_nonnull_domain domains<REMOTE_DOMAIN_LIST_MAX>;
|
2012-05-20 14:26:36 +00:00
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2012-09-04 15:16:26 +00:00
|
|
|
struct remote_connect_list_all_storage_pools_args {
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_connect_list_all_storage_pools_ret { /* insert@1 */
|
2013-08-19 13:27:56 +00:00
|
|
|
remote_nonnull_storage_pool pools<REMOTE_STORAGE_POOL_LIST_MAX>;
|
2012-09-04 15:16:26 +00:00
|
|
|
unsigned int ret;
|
|
|
|
};
|
2011-11-29 07:15:14 +00:00
|
|
|
|
2012-09-04 15:32:54 +00:00
|
|
|
struct remote_storage_pool_list_all_volumes_args {
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_storage_pool_list_all_volumes_ret { /* insert@1 */
|
2013-08-19 13:33:58 +00:00
|
|
|
remote_nonnull_storage_vol vols<REMOTE_STORAGE_VOL_LIST_MAX>;
|
2012-09-04 15:32:54 +00:00
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2012-09-04 15:55:16 +00:00
|
|
|
struct remote_connect_list_all_networks_args {
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_connect_list_all_networks_ret { /* insert@1 */
|
2013-08-19 13:37:29 +00:00
|
|
|
remote_nonnull_network nets<REMOTE_NETWORK_LIST_MAX>;
|
2012-09-04 15:55:16 +00:00
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2012-09-04 16:10:16 +00:00
|
|
|
struct remote_connect_list_all_interfaces_args {
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_connect_list_all_interfaces_ret { /* insert@1 */
|
2013-08-19 13:41:56 +00:00
|
|
|
remote_nonnull_interface ifaces<REMOTE_INTERFACE_LIST_MAX>;
|
2012-09-04 16:10:16 +00:00
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2012-09-05 05:34:08 +00:00
|
|
|
struct remote_connect_list_all_node_devices_args {
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_connect_list_all_node_devices_ret { /* insert@1 */
|
2013-08-19 13:44:52 +00:00
|
|
|
remote_nonnull_node_device devices<REMOTE_NODE_DEVICE_LIST_MAX>;
|
2012-09-05 05:34:08 +00:00
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2012-09-05 06:02:04 +00:00
|
|
|
struct remote_connect_list_all_nwfilters_args {
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_connect_list_all_nwfilters_ret { /* insert@1 */
|
2013-08-19 13:47:22 +00:00
|
|
|
remote_nonnull_nwfilter filters<REMOTE_NWFILTER_LIST_MAX>;
|
2012-09-05 06:02:04 +00:00
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2012-09-14 08:38:49 +00:00
|
|
|
struct remote_connect_list_all_secrets_args {
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-09 12:33:56 +00:00
|
|
|
struct remote_connect_list_all_secrets_ret { /* insert@1 */
|
2013-08-19 13:49:57 +00:00
|
|
|
remote_nonnull_secret secrets<REMOTE_SECRET_LIST_MAX>;
|
2012-09-14 08:38:49 +00:00
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2012-09-14 14:42:15 +00:00
|
|
|
struct remote_node_set_memory_parameters_args {
|
|
|
|
remote_typed_param params<REMOTE_NODE_MEMORY_PARAMETERS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_get_memory_parameters_args {
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_get_memory_parameters_ret {
|
|
|
|
remote_typed_param params<REMOTE_NODE_MEMORY_PARAMETERS_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2012-10-16 14:05:11 +00:00
|
|
|
struct remote_node_get_cpu_map_args {
|
2012-11-01 23:55:43 +00:00
|
|
|
int need_map;
|
|
|
|
int need_online;
|
2012-10-16 14:05:11 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_get_cpu_map_ret {
|
|
|
|
opaque cpumap<REMOTE_CPUMAP_MAX>;
|
|
|
|
unsigned int online;
|
|
|
|
int ret;
|
|
|
|
};
|
|
|
|
|
2012-11-20 18:01:21 +00:00
|
|
|
struct remote_domain_fstrim_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_string mountPoint;
|
|
|
|
unsigned hyper minimum;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2014-04-02 16:25:07 +00:00
|
|
|
struct remote_domain_get_time_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_time_ret {
|
|
|
|
hyper seconds;
|
|
|
|
unsigned int nseconds;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_set_time_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
hyper seconds;
|
|
|
|
unsigned int nseconds;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2013-05-20 14:59:08 +00:00
|
|
|
struct remote_domain_migrate_begin3_params_args {
|
|
|
|
remote_nonnull_domain dom;
|
2013-08-19 13:55:21 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
|
2013-05-20 14:59:08 +00:00
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_begin3_params_ret {
|
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare3_params_args {
|
2013-08-19 13:55:21 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
|
2013-05-20 14:59:08 +00:00
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare3_params_ret {
|
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
remote_string uri_out;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare_tunnel3_params_args {
|
2013-08-19 13:55:21 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
|
2013-05-20 14:59:08 +00:00
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_prepare_tunnel3_params_ret {
|
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_perform3_params_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_string dconnuri;
|
2013-08-19 13:55:21 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
|
2013-05-20 14:59:08 +00:00
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_perform3_params_ret {
|
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_finish3_params_args {
|
2013-08-19 13:55:21 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
|
2013-05-20 14:59:08 +00:00
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
int cancelled;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_finish3_params_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_migrate_confirm3_params_args {
|
|
|
|
remote_nonnull_domain dom;
|
2013-08-19 13:55:21 +00:00
|
|
|
remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
|
2013-05-20 14:59:08 +00:00
|
|
|
opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
int cancelled;
|
|
|
|
};
|
|
|
|
|
2014-01-09 18:22:53 +00:00
|
|
|
/* The device removed event is the last event where we have to support
|
|
|
|
* dual forms for back-compat to older clients; all future events can
|
|
|
|
* use just the modern form with callbackID. */
|
2013-06-19 13:27:29 +00:00
|
|
|
struct remote_domain_event_device_removed_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string devAlias;
|
|
|
|
};
|
2014-01-09 18:22:53 +00:00
|
|
|
struct remote_domain_event_callback_device_removed_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_domain_event_device_removed_msg msg;
|
|
|
|
};
|
2013-06-19 13:27:29 +00:00
|
|
|
|
blockjob: use stable disk string in job event
When the block job event was first added, it was for block pull,
where the active layer of the disk remains the same name. It was
also in a day where we only cared about local files, and so we
always had a canonical absolute file name. But two things have
changed since then: we now have network disks, where determining
a single absolute string does not really make sense; and we have
two-phase jobs (copy and active commit) where the name of the
active layer changes between the first event (ready, on the old
name) and second (complete, on the pivoted name).
Adam Litke reported that having an unstable string between events
makes life harder for clients. Furthermore, all of our API that
operate on a particular disk of a domain accept multiple strings:
not only the absolute name of the active layer, but also the
destination device name (such as 'vda'). As this latter name is
stable, even for network sources, it serves as a better string
to supply in block job events.
But backwards-compatibility demands that we should not change the
name handed to users unless they explicitly request it. Therefore,
this patch adds a new event, BLOCK_JOB_2 (alas, I couldn't think of
any nicer name - but at least Migrate2 and Migrate3 are precedent
for a number suffix). We must double up on emitting both old-style
and new-style events according to what clients have registered for
(see also how IOError and IOErrorReason emits double events, but
there the difference was a larger struct rather than changed
meaning of one of the struct members).
Unfortunately, adding a new event isn't something that can easily
be broken into pieces, so the commit is rather large.
* include/libvirt/libvirt.h.in (virDomainEventID): Add a new id
for VIR_DOMAIN_EVENT_ID_BLOCK_JOB_2.
(virConnectDomainEventBlockJobCallback): Document new semantics.
* src/conf/domain_event.c (_virDomainEventBlockJob): Rename field,
to ensure we catch all clients.
(virDomainEventBlockJobNew): Add parameter.
(virDomainEventBlockJobDispose)
(virDomainEventBlockJobNewFromObj)
(virDomainEventBlockJobNewFromDom)
(virDomainEventDispatchDefaultFunc): Adjust clients.
(virDomainEventBlockJob2NewFromObj)
(virDomainEventBlockJob2NewFromDom): New functions.
* src/conf/domain_event.h: Add new prototypes.
* src/libvirt_private.syms (domain_event.h): Export new functions.
* src/qemu/qemu_driver.c (qemuDomainBlockJobImpl): Generate two
different events.
* src/qemu/qemu_process.c (qemuProcessHandleBlockJob): Likewise.
* src/remote/remote_protocol.x
(remote_domain_event_block_job_2_msg): New struct.
(REMOTE_PROC_DOMAIN_EVENT_BLOCK_JOB_2): New RPC.
* src/remote/remote_driver.c
(remoteDomainBuildEventBlockJob2): New handler.
(remoteEvents): Register new event.
* daemon/remote.c (remoteRelayDomainEventBlockJob2): New handler.
(domainEventCallbacks): Register new event.
* tools/virsh-domain.c (vshEventCallbacks): Likewise.
(vshEventBlockJobPrint): Adjust client.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-06-14 13:18:04 +00:00
|
|
|
struct remote_domain_event_block_job_2_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string dst;
|
|
|
|
int type;
|
|
|
|
int status;
|
|
|
|
};
|
|
|
|
|
2017-02-21 14:03:07 +00:00
|
|
|
struct remote_domain_event_block_threshold_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string dev;
|
|
|
|
remote_string path;
|
|
|
|
unsigned hyper threshold;
|
|
|
|
unsigned hyper excess;
|
|
|
|
};
|
|
|
|
|
2014-09-10 11:28:24 +00:00
|
|
|
struct remote_domain_event_callback_tunable_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_EVENT_TUNABLE_MAX>;
|
|
|
|
};
|
|
|
|
|
2015-03-30 16:46:21 +00:00
|
|
|
struct remote_domain_event_callback_device_added_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string devAlias;
|
|
|
|
};
|
|
|
|
|
2016-02-17 12:15:02 +00:00
|
|
|
struct remote_connect_event_connection_closed_msg {
|
|
|
|
int reason;
|
|
|
|
};
|
|
|
|
|
2013-09-23 09:46:00 +00:00
|
|
|
struct remote_connect_get_cpu_model_names_args {
|
|
|
|
remote_nonnull_string arch;
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_get_cpu_model_names_ret {
|
|
|
|
remote_nonnull_string models<REMOTE_CONNECT_CPU_MODELS_MAX>;
|
|
|
|
int ret;
|
|
|
|
};
|
|
|
|
|
2013-12-11 10:38:01 +00:00
|
|
|
struct remote_connect_network_event_register_any_args {
|
|
|
|
int eventID;
|
event: wire up RPC for server-side network event filtering
We haven't had a release with network events yet, so we are free
to fix the RPC so that it actually does what we want. Doing
client-side filtering of per-network events is inefficient if a
connection is only interested in events on a single network out
of hundreds available on the server. But to do server-side
per-network filtering, the server needs to know which network
to filter on - so we need to pass an optional network over on
registration. Furthermore, it is possible to have a client with
both a global and per-network filter; in the existing code, the
server sends only one event and the client replicates to both
callbacks. But with server-side filtering, the server will send
the event twice, so we need a way for the client to know which
callbackID is sending an event, to ensure that the client can
filter out events from a registration that does not match the
callbackID from the server. Likewise, the existing style of
deregistering by eventID alone is fine; but in the new style,
we have to remember which callbackID to delete.
This patch fixes the RPC wire definition to contain all the
needed pieces of information, and hooks into the server and
client side improvements of the previous patches, in order to
switch over to full server-side filtering of network events.
Also, since we fixed this in time, all released versions of
libvirtd that support network events also support per-network
filtering, so we can hard-code that assumption into
network_event.c.
Converting domain events to server-side filtering will require
the introduction of new RPC numbers, as well as a server
feature bit that the client can use to tell whether to use
old-style (server only supports global events) or new-style
(server supports filtered events), so that is deferred to a
later set of patches.
* src/conf/network_event.c (virNetworkEventStateRegisterClient):
Assume server-side filtering.
* src/remote/remote_protocol.x
(remote_connect_network_event_register_any_args): Add network
argument.
(remote_connect_network_event_register_any_ret): Return callbackID
instead of count.
(remote_connect_network_event_deregister_any_args): Pass
callbackID instead of eventID.
(remote_connect_network_event_deregister_any_ret): Drop unused
type.
(remote_network_event_lifecycle_msg): Add callbackID.
* daemon/remote.c
(remoteDispatchConnectNetworkEventDeregisterAny): Drop unused arg,
and deal with callbackID from client.
(remoteRelayNetworkEventLifecycle): Pass callbackID.
(remoteDispatchConnectNetworkEventRegisterAny): Likewise, and
recognize non-NULL network.
* src/remote/remote_driver.c
(remoteConnectNetworkEventRegisterAny): Pass network, and track
server side id.
(remoteConnectNetworkEventDeregisterAny): Deregister by callback id.
(remoteNetworkBuildEventLifecycle): Pass remote id to event queue.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:24:22 +00:00
|
|
|
remote_network net;
|
2013-12-11 10:38:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_network_event_register_any_ret {
|
event: wire up RPC for server-side network event filtering
We haven't had a release with network events yet, so we are free
to fix the RPC so that it actually does what we want. Doing
client-side filtering of per-network events is inefficient if a
connection is only interested in events on a single network out
of hundreds available on the server. But to do server-side
per-network filtering, the server needs to know which network
to filter on - so we need to pass an optional network over on
registration. Furthermore, it is possible to have a client with
both a global and per-network filter; in the existing code, the
server sends only one event and the client replicates to both
callbacks. But with server-side filtering, the server will send
the event twice, so we need a way for the client to know which
callbackID is sending an event, to ensure that the client can
filter out events from a registration that does not match the
callbackID from the server. Likewise, the existing style of
deregistering by eventID alone is fine; but in the new style,
we have to remember which callbackID to delete.
This patch fixes the RPC wire definition to contain all the
needed pieces of information, and hooks into the server and
client side improvements of the previous patches, in order to
switch over to full server-side filtering of network events.
Also, since we fixed this in time, all released versions of
libvirtd that support network events also support per-network
filtering, so we can hard-code that assumption into
network_event.c.
Converting domain events to server-side filtering will require
the introduction of new RPC numbers, as well as a server
feature bit that the client can use to tell whether to use
old-style (server only supports global events) or new-style
(server supports filtered events), so that is deferred to a
later set of patches.
* src/conf/network_event.c (virNetworkEventStateRegisterClient):
Assume server-side filtering.
* src/remote/remote_protocol.x
(remote_connect_network_event_register_any_args): Add network
argument.
(remote_connect_network_event_register_any_ret): Return callbackID
instead of count.
(remote_connect_network_event_deregister_any_args): Pass
callbackID instead of eventID.
(remote_connect_network_event_deregister_any_ret): Drop unused
type.
(remote_network_event_lifecycle_msg): Add callbackID.
* daemon/remote.c
(remoteDispatchConnectNetworkEventDeregisterAny): Drop unused arg,
and deal with callbackID from client.
(remoteRelayNetworkEventLifecycle): Pass callbackID.
(remoteDispatchConnectNetworkEventRegisterAny): Likewise, and
recognize non-NULL network.
* src/remote/remote_driver.c
(remoteConnectNetworkEventRegisterAny): Pass network, and track
server side id.
(remoteConnectNetworkEventDeregisterAny): Deregister by callback id.
(remoteNetworkBuildEventLifecycle): Pass remote id to event queue.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:24:22 +00:00
|
|
|
int callbackID;
|
2013-12-11 10:38:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_network_event_deregister_any_args {
|
event: wire up RPC for server-side network event filtering
We haven't had a release with network events yet, so we are free
to fix the RPC so that it actually does what we want. Doing
client-side filtering of per-network events is inefficient if a
connection is only interested in events on a single network out
of hundreds available on the server. But to do server-side
per-network filtering, the server needs to know which network
to filter on - so we need to pass an optional network over on
registration. Furthermore, it is possible to have a client with
both a global and per-network filter; in the existing code, the
server sends only one event and the client replicates to both
callbacks. But with server-side filtering, the server will send
the event twice, so we need a way for the client to know which
callbackID is sending an event, to ensure that the client can
filter out events from a registration that does not match the
callbackID from the server. Likewise, the existing style of
deregistering by eventID alone is fine; but in the new style,
we have to remember which callbackID to delete.
This patch fixes the RPC wire definition to contain all the
needed pieces of information, and hooks into the server and
client side improvements of the previous patches, in order to
switch over to full server-side filtering of network events.
Also, since we fixed this in time, all released versions of
libvirtd that support network events also support per-network
filtering, so we can hard-code that assumption into
network_event.c.
Converting domain events to server-side filtering will require
the introduction of new RPC numbers, as well as a server
feature bit that the client can use to tell whether to use
old-style (server only supports global events) or new-style
(server supports filtered events), so that is deferred to a
later set of patches.
* src/conf/network_event.c (virNetworkEventStateRegisterClient):
Assume server-side filtering.
* src/remote/remote_protocol.x
(remote_connect_network_event_register_any_args): Add network
argument.
(remote_connect_network_event_register_any_ret): Return callbackID
instead of count.
(remote_connect_network_event_deregister_any_args): Pass
callbackID instead of eventID.
(remote_connect_network_event_deregister_any_ret): Drop unused
type.
(remote_network_event_lifecycle_msg): Add callbackID.
* daemon/remote.c
(remoteDispatchConnectNetworkEventDeregisterAny): Drop unused arg,
and deal with callbackID from client.
(remoteRelayNetworkEventLifecycle): Pass callbackID.
(remoteDispatchConnectNetworkEventRegisterAny): Likewise, and
recognize non-NULL network.
* src/remote/remote_driver.c
(remoteConnectNetworkEventRegisterAny): Pass network, and track
server side id.
(remoteConnectNetworkEventDeregisterAny): Deregister by callback id.
(remoteNetworkBuildEventLifecycle): Pass remote id to event queue.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:24:22 +00:00
|
|
|
int callbackID;
|
2013-12-11 10:38:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_event_lifecycle_msg {
|
event: wire up RPC for server-side network event filtering
We haven't had a release with network events yet, so we are free
to fix the RPC so that it actually does what we want. Doing
client-side filtering of per-network events is inefficient if a
connection is only interested in events on a single network out
of hundreds available on the server. But to do server-side
per-network filtering, the server needs to know which network
to filter on - so we need to pass an optional network over on
registration. Furthermore, it is possible to have a client with
both a global and per-network filter; in the existing code, the
server sends only one event and the client replicates to both
callbacks. But with server-side filtering, the server will send
the event twice, so we need a way for the client to know which
callbackID is sending an event, to ensure that the client can
filter out events from a registration that does not match the
callbackID from the server. Likewise, the existing style of
deregistering by eventID alone is fine; but in the new style,
we have to remember which callbackID to delete.
This patch fixes the RPC wire definition to contain all the
needed pieces of information, and hooks into the server and
client side improvements of the previous patches, in order to
switch over to full server-side filtering of network events.
Also, since we fixed this in time, all released versions of
libvirtd that support network events also support per-network
filtering, so we can hard-code that assumption into
network_event.c.
Converting domain events to server-side filtering will require
the introduction of new RPC numbers, as well as a server
feature bit that the client can use to tell whether to use
old-style (server only supports global events) or new-style
(server supports filtered events), so that is deferred to a
later set of patches.
* src/conf/network_event.c (virNetworkEventStateRegisterClient):
Assume server-side filtering.
* src/remote/remote_protocol.x
(remote_connect_network_event_register_any_args): Add network
argument.
(remote_connect_network_event_register_any_ret): Return callbackID
instead of count.
(remote_connect_network_event_deregister_any_args): Pass
callbackID instead of eventID.
(remote_connect_network_event_deregister_any_ret): Drop unused
type.
(remote_network_event_lifecycle_msg): Add callbackID.
* daemon/remote.c
(remoteDispatchConnectNetworkEventDeregisterAny): Drop unused arg,
and deal with callbackID from client.
(remoteRelayNetworkEventLifecycle): Pass callbackID.
(remoteDispatchConnectNetworkEventRegisterAny): Likewise, and
recognize non-NULL network.
* src/remote/remote_driver.c
(remoteConnectNetworkEventRegisterAny): Pass network, and track
server side id.
(remoteConnectNetworkEventDeregisterAny): Deregister by callback id.
(remoteNetworkBuildEventLifecycle): Pass remote id to event queue.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:24:22 +00:00
|
|
|
int callbackID;
|
2013-12-11 10:38:01 +00:00
|
|
|
remote_nonnull_network net;
|
|
|
|
int event;
|
|
|
|
int detail;
|
|
|
|
};
|
|
|
|
|
2023-09-03 14:58:33 +00:00
|
|
|
struct remote_network_event_callback_metadata_change_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_network net;
|
|
|
|
int type;
|
|
|
|
remote_string nsuri;
|
|
|
|
};
|
|
|
|
|
2023-08-16 18:47:11 +00:00
|
|
|
struct remote_network_set_metadata_args {
|
|
|
|
remote_nonnull_network network;
|
|
|
|
int type;
|
|
|
|
remote_string metadata;
|
|
|
|
remote_string key;
|
|
|
|
remote_string uri;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_get_metadata_args {
|
|
|
|
remote_nonnull_network network;
|
|
|
|
int type;
|
|
|
|
remote_string uri;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_get_metadata_ret {
|
|
|
|
remote_nonnull_string metadata;
|
|
|
|
};
|
|
|
|
|
2016-06-15 18:35:45 +00:00
|
|
|
struct remote_connect_storage_pool_event_register_any_args {
|
|
|
|
int eventID;
|
|
|
|
remote_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_storage_pool_event_register_any_ret {
|
|
|
|
int callbackID;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_storage_pool_event_deregister_any_args {
|
|
|
|
int callbackID;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_pool_event_lifecycle_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
int event;
|
|
|
|
int detail;
|
|
|
|
};
|
|
|
|
|
2016-06-24 16:35:51 +00:00
|
|
|
struct remote_storage_pool_event_refresh_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_storage_pool pool;
|
|
|
|
};
|
|
|
|
|
2016-07-28 12:02:53 +00:00
|
|
|
struct remote_connect_node_device_event_register_any_args {
|
|
|
|
int eventID;
|
|
|
|
remote_node_device dev;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_node_device_event_register_any_ret {
|
|
|
|
int callbackID;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_node_device_event_deregister_any_args {
|
|
|
|
int callbackID;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_device_event_lifecycle_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_node_device dev;
|
|
|
|
int event;
|
|
|
|
int detail;
|
|
|
|
};
|
|
|
|
|
2016-08-11 15:15:23 +00:00
|
|
|
struct remote_node_device_event_update_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_node_device dev;
|
|
|
|
};
|
|
|
|
|
2014-05-02 00:05:54 +00:00
|
|
|
struct remote_domain_fsfreeze_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string mountpoints<REMOTE_DOMAIN_FSFREEZE_MOUNTPOINTS_MAX>; /* (const char **) */
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_fsfreeze_ret {
|
|
|
|
int filesystems;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_fsthaw_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string mountpoints<REMOTE_DOMAIN_FSFREEZE_MOUNTPOINTS_MAX>; /* (const char **) */
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_fsthaw_ret {
|
|
|
|
int filesystems;
|
|
|
|
};
|
2013-12-11 10:38:01 +00:00
|
|
|
|
2014-06-09 15:14:47 +00:00
|
|
|
struct remote_node_get_free_pages_args {
|
|
|
|
unsigned int pages<REMOTE_NODE_MAX_CELLS>;
|
|
|
|
int startCell;
|
|
|
|
unsigned int cellCount;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_get_free_pages_ret {
|
|
|
|
unsigned hyper counts<REMOTE_NODE_MAX_CELLS>;
|
|
|
|
};
|
|
|
|
|
2014-09-16 16:17:22 +00:00
|
|
|
struct remote_node_alloc_pages_args {
|
|
|
|
unsigned int pageSizes<REMOTE_NODE_MAX_CELLS>;
|
|
|
|
unsigned hyper pageCounts<REMOTE_NODE_MAX_CELLS>;
|
|
|
|
int startCell;
|
|
|
|
unsigned int cellCount;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_alloc_pages_ret {
|
|
|
|
int ret;
|
|
|
|
};
|
|
|
|
|
2014-06-23 21:01:50 +00:00
|
|
|
struct remote_network_dhcp_lease {
|
2014-06-24 12:23:59 +00:00
|
|
|
remote_nonnull_string iface;
|
2014-06-23 21:01:50 +00:00
|
|
|
hyper expirytime;
|
|
|
|
int type;
|
|
|
|
remote_string mac;
|
|
|
|
remote_string iaid;
|
|
|
|
remote_nonnull_string ipaddr;
|
|
|
|
unsigned int prefix;
|
|
|
|
remote_string hostname;
|
|
|
|
remote_string clientid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_get_dhcp_leases_args {
|
|
|
|
remote_nonnull_network net;
|
2014-06-26 14:08:34 +00:00
|
|
|
remote_string mac;
|
2014-06-23 21:01:50 +00:00
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_get_dhcp_leases_ret {
|
|
|
|
remote_network_dhcp_lease leases<REMOTE_NETWORK_DHCP_LEASES_MAX>;
|
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2014-08-25 11:22:13 +00:00
|
|
|
struct remote_domain_stats_record {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_typed_param params<REMOTE_CONNECT_GET_ALL_DOMAIN_STATS_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_get_all_domain_stats_args {
|
|
|
|
remote_nonnull_domain doms<REMOTE_DOMAIN_LIST_MAX>;
|
|
|
|
unsigned int stats;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2014-11-19 09:32:20 +00:00
|
|
|
struct remote_domain_event_callback_agent_lifecycle_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
|
|
|
|
int state;
|
|
|
|
int reason;
|
|
|
|
};
|
|
|
|
|
2014-08-25 11:22:13 +00:00
|
|
|
struct remote_connect_get_all_domain_stats_ret {
|
|
|
|
remote_domain_stats_record retStats<REMOTE_DOMAIN_LIST_MAX>;
|
|
|
|
};
|
2014-11-22 01:27:31 +00:00
|
|
|
|
|
|
|
struct remote_domain_fsinfo {
|
|
|
|
remote_nonnull_string mountpoint;
|
|
|
|
remote_nonnull_string name;
|
|
|
|
remote_nonnull_string fstype;
|
|
|
|
remote_nonnull_string dev_aliases<REMOTE_DOMAIN_FSINFO_DISKS_MAX>; /* (const char **) */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_fsinfo_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_fsinfo_ret {
|
|
|
|
remote_domain_fsinfo info<REMOTE_DOMAIN_FSINFO_MAX>;
|
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2015-01-25 18:38:47 +00:00
|
|
|
struct remote_domain_ip_addr {
|
|
|
|
int type;
|
|
|
|
remote_nonnull_string addr;
|
|
|
|
unsigned int prefix;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_interface {
|
|
|
|
remote_nonnull_string name;
|
2015-03-17 16:18:02 +00:00
|
|
|
remote_string hwaddr;
|
2015-01-25 18:38:47 +00:00
|
|
|
remote_domain_ip_addr addrs<REMOTE_DOMAIN_IP_ADDR_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_interface_addresses_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int source;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_interface_addresses_ret {
|
|
|
|
remote_domain_interface ifaces<REMOTE_DOMAIN_INTERFACE_MAX>;
|
|
|
|
};
|
|
|
|
|
2015-05-18 08:33:18 +00:00
|
|
|
struct remote_domain_set_user_password_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_string user;
|
|
|
|
remote_string password;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2015-08-10 19:59:14 +00:00
|
|
|
struct remote_domain_rename_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_string new_name;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_rename_ret {
|
2015-08-15 14:44:38 +00:00
|
|
|
int retcode;
|
2015-08-10 19:59:14 +00:00
|
|
|
};
|
2015-01-25 18:38:47 +00:00
|
|
|
|
2015-12-10 15:09:09 +00:00
|
|
|
struct remote_domain_event_callback_migration_iteration_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int iteration;
|
|
|
|
};
|
|
|
|
|
2016-02-17 20:20:11 +00:00
|
|
|
struct remote_domain_event_callback_job_completed_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_JOB_STATS_MAX>;
|
|
|
|
};
|
|
|
|
|
2014-12-01 15:59:53 +00:00
|
|
|
struct remote_domain_migrate_start_post_copy_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-03-30 16:09:45 +00:00
|
|
|
struct remote_domain_event_callback_device_removal_failed_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string devAlias;
|
|
|
|
};
|
|
|
|
|
2016-06-16 17:15:45 +00:00
|
|
|
struct remote_domain_get_guest_vcpus_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_guest_vcpus_ret {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_GUEST_VCPU_PARAMS_MAX>; /* alloc@1@unsigned int@2 */
|
|
|
|
};
|
|
|
|
|
2016-06-20 07:16:47 +00:00
|
|
|
struct remote_domain_set_guest_vcpus_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string cpumap;
|
|
|
|
int state;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-06-21 08:44:51 +00:00
|
|
|
struct remote_domain_set_vcpu_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string cpumap;
|
|
|
|
int state;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-06-16 17:15:45 +00:00
|
|
|
|
2016-12-22 14:41:30 +00:00
|
|
|
struct remote_domain_event_callback_metadata_change_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int type;
|
|
|
|
remote_string nsuri;
|
|
|
|
};
|
|
|
|
|
2020-10-14 10:37:50 +00:00
|
|
|
struct remote_domain_event_memory_failure_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int recipient;
|
|
|
|
int action;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2016-12-22 16:11:06 +00:00
|
|
|
struct remote_connect_secret_event_register_any_args {
|
|
|
|
int eventID;
|
|
|
|
remote_secret secret;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_secret_event_register_any_ret {
|
|
|
|
int callbackID;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_secret_event_deregister_any_args {
|
|
|
|
int callbackID;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_secret_event_lifecycle_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_secret secret;
|
|
|
|
int event;
|
|
|
|
int detail;
|
|
|
|
};
|
|
|
|
|
2017-01-05 13:51:07 +00:00
|
|
|
struct remote_secret_event_value_changed_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_secret secret;
|
|
|
|
};
|
|
|
|
|
2017-02-23 12:09:12 +00:00
|
|
|
struct remote_domain_set_block_threshold_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string dev;
|
|
|
|
unsigned hyper threshold;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2017-10-11 12:02:01 +00:00
|
|
|
struct remote_domain_set_lifecycle_action_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int type;
|
|
|
|
unsigned int action;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
2017-02-23 12:09:12 +00:00
|
|
|
|
2018-04-24 20:19:03 +00:00
|
|
|
struct remote_connect_compare_hypervisor_cpu_args {
|
|
|
|
remote_string emulator;
|
|
|
|
remote_string arch;
|
|
|
|
remote_string machine;
|
|
|
|
remote_string virttype;
|
|
|
|
remote_nonnull_string xmlCPU;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_compare_hypervisor_cpu_ret {
|
|
|
|
int result;
|
|
|
|
};
|
|
|
|
|
2018-04-25 11:43:24 +00:00
|
|
|
struct remote_connect_baseline_hypervisor_cpu_args {
|
|
|
|
remote_string emulator;
|
|
|
|
remote_string arch;
|
|
|
|
remote_string machine;
|
|
|
|
remote_string virttype;
|
|
|
|
remote_nonnull_string xmlCPUs<REMOTE_CPU_BASELINE_MAX>; /* (const char **) */
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_baseline_hypervisor_cpu_ret {
|
|
|
|
remote_nonnull_string cpu;
|
|
|
|
};
|
|
|
|
|
2018-06-08 14:40:54 +00:00
|
|
|
struct remote_node_get_sev_info_args {
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_node_get_sev_info_ret {
|
|
|
|
remote_typed_param params<REMOTE_NODE_SEV_INFO_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
2018-06-08 14:41:00 +00:00
|
|
|
struct remote_domain_get_launch_security_info_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_launch_security_info_ret {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_LAUNCH_SECURITY_INFO_PARAMS_MAX>;
|
|
|
|
};
|
2018-06-08 14:40:54 +00:00
|
|
|
|
2021-11-16 23:39:44 +00:00
|
|
|
struct remote_domain_set_launch_security_state_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_LAUNCH_SECURITY_STATE_PARAMS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2018-05-09 16:18:58 +00:00
|
|
|
/* nwfilter binding */
|
|
|
|
|
|
|
|
struct remote_nwfilter_binding_lookup_by_port_dev_args {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_binding_lookup_by_port_dev_ret {
|
|
|
|
remote_nonnull_nwfilter_binding nwfilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_binding_create_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_binding_create_xml_ret {
|
|
|
|
remote_nonnull_nwfilter_binding nwfilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_binding_delete_args {
|
|
|
|
remote_nonnull_nwfilter_binding nwfilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_binding_get_xml_desc_args {
|
|
|
|
remote_nonnull_nwfilter_binding nwfilter;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_binding_get_xml_desc_ret {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_list_all_nwfilter_bindings_args {
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_list_all_nwfilter_bindings_ret { /* insert@1 */
|
|
|
|
remote_nonnull_nwfilter_binding bindings<REMOTE_NWFILTER_BINDING_LIST_MAX>;
|
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
2019-02-07 17:02:25 +00:00
|
|
|
struct remote_connect_get_storage_pool_capabilities_args {
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_connect_get_storage_pool_capabilities_ret {
|
|
|
|
remote_nonnull_string capabilities;
|
|
|
|
};
|
|
|
|
|
2018-12-10 17:43:42 +00:00
|
|
|
struct remote_network_list_all_ports_args {
|
|
|
|
remote_nonnull_network network;
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_list_all_ports_ret { /* insert@1 */
|
|
|
|
remote_nonnull_network_port ports<REMOTE_NETWORK_PORT_LIST_MAX>;
|
|
|
|
unsigned int ret;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_lookup_by_uuid_args {
|
|
|
|
remote_nonnull_network network;
|
|
|
|
remote_uuid uuid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_lookup_by_uuid_ret {
|
|
|
|
remote_nonnull_network_port port;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_create_xml_args {
|
|
|
|
remote_nonnull_network network;
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_create_xml_ret {
|
|
|
|
remote_nonnull_network_port port;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_set_parameters_args {
|
|
|
|
remote_nonnull_network_port port;
|
|
|
|
remote_typed_param params<REMOTE_NETWORK_PORT_PARAMETERS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_get_parameters_args {
|
|
|
|
remote_nonnull_network_port port;
|
|
|
|
int nparams;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_get_parameters_ret {
|
|
|
|
remote_typed_param params<REMOTE_NETWORK_PORT_PARAMETERS_MAX>;
|
|
|
|
int nparams;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_get_xml_desc_args {
|
|
|
|
remote_nonnull_network_port port;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_get_xml_desc_ret {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_port_delete_args {
|
|
|
|
remote_nonnull_network_port port;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2019-03-06 17:54:47 +00:00
|
|
|
struct remote_domain_checkpoint_create_xml_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string xml_desc;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_create_xml_ret {
|
|
|
|
remote_nonnull_domain_checkpoint checkpoint;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_get_xml_desc_args {
|
|
|
|
remote_nonnull_domain_checkpoint checkpoint;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_get_xml_desc_ret {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_list_all_checkpoints_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_list_all_checkpoints_ret { /* insert@1 */
|
|
|
|
remote_nonnull_domain_checkpoint checkpoints<REMOTE_DOMAIN_CHECKPOINT_LIST_MAX>;
|
|
|
|
int ret;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_list_all_children_args {
|
|
|
|
remote_nonnull_domain_checkpoint checkpoint;
|
|
|
|
int need_results;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_list_all_children_ret { /* insert@1 */
|
|
|
|
remote_nonnull_domain_checkpoint checkpoints<REMOTE_DOMAIN_CHECKPOINT_LIST_MAX>;
|
|
|
|
int ret;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_lookup_by_name_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string name;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_lookup_by_name_ret {
|
|
|
|
remote_nonnull_domain_checkpoint checkpoint;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_get_parent_args {
|
|
|
|
remote_nonnull_domain_checkpoint checkpoint;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_get_parent_ret {
|
|
|
|
remote_nonnull_domain_checkpoint parent;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_checkpoint_delete_args {
|
|
|
|
remote_nonnull_domain_checkpoint checkpoint;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
2018-12-10 17:43:42 +00:00
|
|
|
|
2019-08-23 16:31:16 +00:00
|
|
|
struct remote_domain_get_guest_info_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int types;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_guest_info_ret {
|
|
|
|
remote_typed_param params<REMOTE_DOMAIN_GUEST_INFO_PARAMS_MAX>;
|
|
|
|
};
|
|
|
|
|
2019-07-26 15:34:15 +00:00
|
|
|
struct remote_connect_set_identity_args {
|
|
|
|
remote_typed_param params<REMOTE_CONNECT_IDENTITY_PARAMS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
Add API to change qemu agent response timeout
Some layered products such as oVirt have requested a way to avoid being
blocked by guest agent commands when querying a loaded vm. For example,
many guest agent commands are polled periodically to monitor changes,
and rather than blocking the calling process, they'd prefer to simply
time out when an agent query is taking too long.
This patch adds a way for the user to specify a custom agent timeout
that is applied to all agent commands.
One special case to note here is the 'guest-sync' command. 'guest-sync'
is issued internally prior to calling any other command. (For example,
when libvirt wants to call 'guest-get-fsinfo', we first call
'guest-sync' and then call 'guest-get-fsinfo').
Previously, the 'guest-sync' command used a 5-second timeout
(VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT), whereas the actual command that
followed always blocked indefinitely
(VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK). As part of this patch, if a
custom timeout is specified that is shorter than
5 seconds, this new timeout is also used for 'guest-sync'. If there is
no custom timeout or if the custom timeout is longer than 5 seconds, we
will continue to use the 5-second timeout.
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-11-13 22:06:09 +00:00
|
|
|
struct remote_domain_agent_set_response_timeout_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int timeout;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_agent_set_response_timeout_ret {
|
|
|
|
int result;
|
|
|
|
};
|
|
|
|
|
2019-08-22 01:42:43 +00:00
|
|
|
|
|
|
|
struct remote_domain_backup_begin_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string backup_xml;
|
|
|
|
remote_string checkpoint_xml;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_backup_get_xml_desc_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_backup_get_xml_desc_ret {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
2020-11-09 21:23:44 +00:00
|
|
|
struct remote_domain_authorized_ssh_keys_get_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string user;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_authorized_ssh_keys_get_ret {
|
|
|
|
remote_nonnull_string keys<REMOTE_DOMAIN_AUTHORIZED_SSH_KEYS_MAX>;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_authorized_ssh_keys_set_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string user;
|
|
|
|
remote_nonnull_string keys<REMOTE_DOMAIN_AUTHORIZED_SSH_KEYS_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2021-01-22 14:50:10 +00:00
|
|
|
struct remote_domain_get_messages_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_messages_ret {
|
|
|
|
remote_nonnull_string msgs<REMOTE_DOMAIN_MESSAGES_MAX>;
|
|
|
|
};
|
|
|
|
|
2021-03-16 12:32:45 +00:00
|
|
|
struct remote_domain_start_dirty_rate_calc_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
int seconds;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
2021-01-22 14:50:10 +00:00
|
|
|
|
2021-01-21 13:16:44 +00:00
|
|
|
struct remote_domain_event_memory_device_size_change_msg {
|
|
|
|
int callbackID;
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string alias;
|
|
|
|
unsigned hyper size;
|
|
|
|
};
|
|
|
|
|
2022-02-24 16:01:40 +00:00
|
|
|
|
|
|
|
struct remote_domain_fd_associate_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string name;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
2007-06-11 11:36:17 +00:00
|
|
|
/*----- Protocol. -----*/
|
|
|
|
|
|
|
|
/* Define the program number, protocol version and procedure numbers here. */
|
|
|
|
const REMOTE_PROGRAM = 0x20008086;
|
|
|
|
const REMOTE_PROTOCOL_VERSION = 1;
|
|
|
|
|
|
|
|
enum remote_procedure {
|
2013-04-17 12:04:27 +00:00
|
|
|
/* Each function must be preceded by a comment providing one or
|
|
|
|
* more annotations:
|
|
|
|
*
|
|
|
|
* - @generate: none|client|server|both
|
|
|
|
*
|
|
|
|
* Whether to generate the dispatch stubs for the server
|
|
|
|
* and/or client code.
|
|
|
|
*
|
|
|
|
* - @readstream: paramnumber
|
|
|
|
* - @writestream: paramnumber
|
2011-05-21 09:24:28 +00:00
|
|
|
*
|
2013-04-17 12:04:27 +00:00
|
|
|
* The @readstream or @writestream annotations let daemon and src/remote
|
|
|
|
* create a stream. The direction is defined from the src/remote point
|
|
|
|
* of view. A readstream transfers data from daemon to src/remote. The
|
|
|
|
* <paramnumber> specifies at which offset the stream parameter is inserted
|
|
|
|
* in the function parameter list.
|
2011-05-21 09:24:28 +00:00
|
|
|
*
|
2013-04-17 12:04:27 +00:00
|
|
|
* - @priority: low|high
|
2011-05-21 09:24:28 +00:00
|
|
|
*
|
2013-04-17 12:04:27 +00:00
|
|
|
* Each API that might eventually access hypervisor's monitor (and thus
|
|
|
|
* block) MUST fall into low priority. However, there are some exceptions
|
|
|
|
* to this rule, e.g. domainDestroy. Other APIs MAY be marked as high
|
|
|
|
* priority. If in doubt, it's safe to choose low. Low is taken as default,
|
|
|
|
* and thus can be left out.
|
2013-04-18 11:08:47 +00:00
|
|
|
*
|
|
|
|
* - @acl: <object>:<permission>
|
|
|
|
* - @acl: <object>:<permission>:<flagname>
|
2020-09-18 14:09:25 +00:00
|
|
|
* - @acl: <object>:<permission>::<param>:<value>
|
2013-04-18 11:08:47 +00:00
|
|
|
*
|
|
|
|
* Declare the access control requirements for the API. May be repeated
|
|
|
|
* multiple times, if multiple rules are required.
|
|
|
|
*
|
2023-02-21 13:04:54 +00:00
|
|
|
* <object> is one of 'connect', 'domain', 'interface', 'network',
|
|
|
|
* 'network_port', 'node_device', 'nwfilter',
|
|
|
|
* 'nwfilter_binding', 'secret', 'storage_pool', 'storage_vol'
|
2013-04-18 11:08:47 +00:00
|
|
|
* <permission> is one of the permissions in access/viraccessperm.h
|
|
|
|
* <flagname> indicates the rule only applies if the named flag
|
|
|
|
* is set in the API call
|
2020-09-18 14:09:25 +00:00
|
|
|
* <param> and <value> can be used to check an unsigned int parameter
|
|
|
|
* against value
|
2013-04-18 11:08:47 +00:00
|
|
|
*
|
|
|
|
* - @aclfilter: <object>:<permission>
|
|
|
|
*
|
|
|
|
* Declare an access control filter that will be applied to a list
|
|
|
|
* of objects being returned by an API. This allows the returned
|
|
|
|
* list to be filtered to only show those the user has permissions
|
|
|
|
* against
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_OPEN = 1,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_CLOSE = 2,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_TYPE = 3,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_VERSION = 4,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_MAX_VCPUS = 5,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_GET_INFO = 6,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_CAPABILITIES = 7,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_ATTACH_DEVICE = 8,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:start
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CREATE = 9,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:start
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CREATE_XML = 10,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_DEFINE_XML = 11,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:stop
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_DESTROY = 12,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_DETACH_DEVICE = 13,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
|
|
|
* @acl: domain:read_secure:VIR_DOMAIN_XML_SECURE
|
2014-11-01 04:14:07 +00:00
|
|
|
* @acl: domain:read_secure:VIR_DOMAIN_XML_MIGRATABLE
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_XML_DESC = 14,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_AUTOSTART = 15,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_INFO = 16,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_MAX_MEMORY = 17,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_MAX_VCPUS = 18,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_OS_TYPE = 19,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_VCPUS = 20,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_domains
|
|
|
|
* @aclfilter: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_DEFINED_DOMAINS = 21,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_LOOKUP_BY_ID = 22,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_LOOKUP_BY_NAME = 23,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_LOOKUP_BY_UUID = 24,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_domains
|
|
|
|
* @aclfilter: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_DEFINED_DOMAINS = 25,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_PIN_VCPU = 26,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:init_control
|
api: require write permission for guest agent interaction
I noticed that we allow virDomainGetVcpusFlags even for read-only
connections, but that with a flag, it can require guest agent
interaction. It is feasible that a malicious guest could
intentionally abuse the replies it sends over the guest agent
connection to possibly trigger a bug in libvirt's JSON parser,
or withhold an answer so as to prevent the use of the agent
in a later command such as a shutdown request. Although we
don't know of any such exploits now (and therefore don't mind
posting this patch publicly without trying to get a CVE assigned),
it is better to err on the side of caution and explicitly require
full access to any domain where the API requires guest interaction
to operate correctly.
I audited all commands that are marked as conditionally using a
guest agent. Note that at least virDomainFSTrim is documented
as needing a guest agent, but that such use is unconditional
depending on the hypervisor (so the existing domain:fs_trim ACL
should be sufficient there, rather than also requirng domain:write).
But when designing future APIs, such as the plans for obtaining
a domain's IP addresses, we should copy the approach of this patch
in making interaction with the guest be specified via a flag, and
use that flag to also require stricter access checks.
* src/libvirt.c (virDomainGetVcpusFlags): Forbid guest interaction
on read-only connection.
(virDomainShutdownFlags, virDomainReboot): Improve docs on agent
interaction.
* src/remote/remote_protocol.x
(REMOTE_PROC_DOMAIN_SNAPSHOT_CREATE_XML)
(REMOTE_PROC_DOMAIN_SET_VCPUS_FLAGS)
(REMOTE_PROC_DOMAIN_GET_VCPUS_FLAGS, REMOTE_PROC_DOMAIN_REBOOT)
(REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS): Require domain:write for any
conditional use of a guest agent.
* src/xen/xen_driver.c: Fix clients.
* src/libxl/libxl_driver.c: Likewise.
* src/uml/uml_driver.c: Likewise.
* src/qemu/qemu_driver.c: Likewise.
* src/lxc/lxc_driver.c: Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-21 17:37:29 +00:00
|
|
|
* @acl: domain:write:VIR_DOMAIN_REBOOT_GUEST_AGENT
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_REBOOT = 27,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:suspend
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_RESUME = 28,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_AUTOSTART = 29,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_MAX_MEMORY = 30,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_MEMORY = 31,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_VCPUS = 32,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:init_control
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SHUTDOWN = 33,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:suspend
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SUSPEND = 34,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:delete
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_UNDEFINE = 35,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_networks
|
|
|
|
* @aclfilter: network:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_DEFINED_NETWORKS = 36,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_domains
|
|
|
|
* @aclfilter: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_DOMAINS = 37,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_networks
|
|
|
|
* @aclfilter: network:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_NETWORKS = 38,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:start
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_CREATE = 39,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:write
|
|
|
|
* @acl: network:start
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_CREATE_XML = 40,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:write
|
|
|
|
* @acl: network:save
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_DEFINE_XML = 41,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:stop
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_DESTROY = 42,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_GET_XML_DESC = 43,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_GET_AUTOSTART = 44,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_GET_BRIDGE_NAME = 45,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_LOOKUP_BY_NAME = 46,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_LOOKUP_BY_UUID = 47,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_SET_AUTOSTART = 48,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:delete
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_UNDEFINE = 49,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_networks
|
|
|
|
* @aclfilter: network:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_DEFINED_NETWORKS = 50,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_domains
|
|
|
|
* @aclfilter: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_DOMAINS = 51,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_networks
|
|
|
|
* @aclfilter: network:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_NETWORKS = 52,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:core_dump
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CORE_DUMP = 53,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_RESTORE = 54,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:hibernate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SAVE = 55,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_SCHEDULER_TYPE = 56,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: client
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS = 57,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_SCHEDULER_PARAMETERS = 58,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_HOSTNAME = 59,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: client
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_SUPPORTS_FEATURE = 60,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE = 61,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PERFORM = 62,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_FINISH = 63,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_STATS = 64,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_INTERFACE_STATS = 65,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_AUTH_LIST = 66,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_AUTH_SASL_INIT = 67,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_AUTH_SASL_START = 68,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_AUTH_SASL_STEP = 69,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_AUTH_POLKIT = 70,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_storage_pools
|
|
|
|
* @aclfilter: storage_pool:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_STORAGE_POOLS = 71,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_storage_pools
|
|
|
|
* @aclfilter: storage_pool:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_STORAGE_POOLS = 72,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_storage_pools
|
|
|
|
* @aclfilter: storage_pool:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_DEFINED_STORAGE_POOLS = 73,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_storage_pools
|
|
|
|
* @aclfilter: storage_pool:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_DEFINED_STORAGE_POOLS = 74,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:detect_storage_pools
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_FIND_STORAGE_POOL_SOURCES = 75,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:start
|
|
|
|
* @acl: storage_pool:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_CREATE_XML = 76,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:write
|
|
|
|
* @acl: storage_pool:save
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_DEFINE_XML = 77,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:start
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_CREATE = 78,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:format
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_BUILD = 79,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:stop
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_DESTROY = 80,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:format
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_DELETE = 81,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:delete
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_UNDEFINE = 82,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:refresh
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_REFRESH = 83,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_NAME = 84,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_UUID = 85,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_VOLUME = 86,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_GET_INFO = 87,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_GET_XML_DESC = 88,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_GET_AUTOSTART = 89,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_SET_AUTOSTART = 90,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:search_storage_vols
|
|
|
|
* @aclfilter: storage_vol:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_NUM_OF_VOLUMES = 91,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:search_storage_vols
|
|
|
|
* @aclfilter: storage_vol:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_LIST_VOLUMES = 92,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:create
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_CREATE_XML = 93,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:delete
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_DELETE = 94,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_NAME = 95,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_KEY = 96,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_PATH = 97,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_GET_INFO = 98,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_GET_XML_DESC = 99,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_GET_PATH = 100,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_GET_CELLS_FREE_MEMORY = 101,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_GET_FREE_MEMORY = 102,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:block_read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_PEEK = 103,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:mem_read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MEMORY_PEEK = 104,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
event: filter global events by domain:getattr ACL [CVE-2014-0028]
Ever since ACL filtering was added in commit 7639736 (v1.1.1), a
user could still use event registration to obtain access to a
domain that they could not normally access via virDomainLookup*
or virConnectListAllDomains and friends. We already have the
framework in the RPC generator for creating the filter, and
previous cleanup patches got us to the point that we can now
wire the filter through the entire object event stack.
Furthermore, whether or not domain:getattr is honored, use of
global events is a form of obtaining a list of networks, which
is covered by connect:search_domains added in a93cd08 (v1.1.0).
Ideally, we'd have a way to enforce connect:search_domains when
doing global registrations while omitting that check on a
per-domain registration. But this patch just unconditionally
requires connect:search_domains, even when no list could be
obtained, based on the following observations:
1. Administrators are unlikely to grant domain:getattr for one
or all domains while still denying connect:search_domains - a
user that is able to manage domains will want to be able to
manage them efficiently, but efficient management includes being
able to list the domains they can access. The idea of denying
connect:search_domains while still granting access to individual
domains is therefore not adding any real security, but just
serves as a layer of obscurity to annoy the end user.
2. In the current implementation, domain events are filtered
on the client; the server has no idea if a domain filter was
requested, and must therefore assume that all domain event
requests are global. Even if we fix the RPC protocol to
allow for server-side filtering for newer client/server combos,
making the connect:serach_domains ACL check conditional on
whether the domain argument was NULL won't benefit older clients.
Therefore, we choose to document that connect:search_domains
is a pre-requisite to any domain event management.
Network events need the same treatment, with the obvious
change of using connect:search_networks and network:getattr.
* src/access/viraccessperm.h
(VIR_ACCESS_PERM_CONNECT_SEARCH_DOMAINS)
(VIR_ACCESS_PERM_CONNECT_SEARCH_NETWORKS): Document additional
effect of the permission.
* src/conf/domain_event.h (virDomainEventStateRegister)
(virDomainEventStateRegisterID): Add new parameter.
* src/conf/network_event.h (virNetworkEventStateRegisterID):
Likewise.
* src/conf/object_event_private.h (virObjectEventStateRegisterID):
Likewise.
* src/conf/object_event.c (_virObjectEventCallback): Track a filter.
(virObjectEventDispatchMatchCallback): Use filter.
(virObjectEventCallbackListAddID): Register filter.
* src/conf/domain_event.c (virDomainEventFilter): New function.
(virDomainEventStateRegister, virDomainEventStateRegisterID):
Adjust callers.
* src/conf/network_event.c (virNetworkEventFilter): New function.
(virNetworkEventStateRegisterID): Adjust caller.
* src/remote/remote_protocol.x
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER)
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER_ANY)
(REMOTE_PROC_CONNECT_NETWORK_EVENT_REGISTER_ANY): Generate a
filter, and require connect:search_domains instead of weaker
connect:read.
* src/test/test_driver.c (testConnectDomainEventRegister)
(testConnectDomainEventRegisterAny)
(testConnectNetworkEventRegisterAny): Update callers.
* src/remote/remote_driver.c (remoteConnectDomainEventRegister)
(remoteConnectDomainEventRegisterAny): Likewise.
* src/xen/xen_driver.c (xenUnifiedConnectDomainEventRegister)
(xenUnifiedConnectDomainEventRegisterAny): Likewise.
* src/vbox/vbox_tmpl.c (vboxDomainGetXMLDesc): Likewise.
* src/libxl/libxl_driver.c (libxlConnectDomainEventRegister)
(libxlConnectDomainEventRegisterAny): Likewise.
* src/qemu/qemu_driver.c (qemuConnectDomainEventRegister)
(qemuConnectDomainEventRegisterAny): Likewise.
* src/uml/uml_driver.c (umlConnectDomainEventRegister)
(umlConnectDomainEventRegisterAny): Likewise.
* src/network/bridge_driver.c
(networkConnectNetworkEventRegisterAny): Likewise.
* src/lxc/lxc_driver.c (lxcConnectDomainEventRegister)
(lxcConnectDomainEventRegisterAny): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:34:48 +00:00
|
|
|
* @acl: connect:search_domains
|
|
|
|
* @aclfilter: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER = 105,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_DOMAIN_EVENT_DEREGISTER = 106,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_LIFECYCLE = 107,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE2 = 108,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_FINISH2 = 109,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_URI = 110,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_node_devices
|
|
|
|
* @aclfilter: node_device:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_NUM_OF_DEVICES = 111,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_node_devices
|
|
|
|
* @aclfilter: node_device:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_LIST_DEVICES = 112,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: node_device:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_LOOKUP_BY_NAME = 113,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: node_device:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_GET_XML_DESC = 114,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: client
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: node_device:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_GET_PARENT = 115,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: node_device:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_NUM_OF_CAPS = 116,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: node_device:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_LIST_CAPS = 117,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
2013-09-11 13:23:24 +00:00
|
|
|
* @acl: node_device:detach
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_DETTACH = 118,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
2013-09-11 13:23:24 +00:00
|
|
|
* @acl: node_device:detach
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_RE_ATTACH = 119,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
2013-09-11 13:23:24 +00:00
|
|
|
* @acl: node_device:detach
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_RESET = 120,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_SECURITY_LABEL = 121,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_GET_SECURITY_MODEL = 122,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: node_device:write
|
|
|
|
* @acl: node_device:start
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_CREATE_XML = 123,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: node_device:stop
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_DESTROY = 124,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:create
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_CREATE_XML_FROM = 125,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_interfaces
|
|
|
|
* @aclfilter: interface:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_INTERFACES = 126,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_interfaces
|
|
|
|
* @aclfilter: interface:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_INTERFACES = 127,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: interface:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_LOOKUP_BY_NAME = 128,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: interface:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_LOOKUP_BY_MAC_STRING = 129,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: interface:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_GET_XML_DESC = 130,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: interface:write
|
|
|
|
* @acl: interface:save
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_DEFINE_XML = 131,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: interface:delete
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_UNDEFINE = 132,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: interface:start
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_CREATE = 133,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: interface:stop
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_DESTROY = 134,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-10-03 15:37:57 +00:00
|
|
|
* @acl: connect:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_DOMAIN_XML_FROM_NATIVE = 135,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-10-03 15:37:57 +00:00
|
|
|
* @acl: connect:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_DOMAIN_XML_TO_NATIVE = 136,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_interfaces
|
|
|
|
* @aclfilter: interface:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_DEFINED_INTERFACES = 137,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_interfaces
|
|
|
|
* @aclfilter: interface:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_DEFINED_INTERFACES = 138,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_secrets
|
|
|
|
* @aclfilter: secret:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_SECRETS = 139,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_secrets
|
|
|
|
* @aclfilter: secret:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_SECRETS = 140,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: secret:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_SECRET_LOOKUP_BY_UUID = 141,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: secret:write
|
|
|
|
* @acl: secret:save
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_SECRET_DEFINE_XML = 142,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: secret:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_SECRET_GET_XML_DESC = 143,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: secret:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_SECRET_SET_VALUE = 144,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: secret:read_secure
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_SECRET_GET_VALUE = 145,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: secret:delete
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_SECRET_UNDEFINE = 146,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: secret:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_SECRET_LOOKUP_BY_USAGE = 147,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @writestream: 1
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL = 148,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_IS_SECURE = 149,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_IS_ACTIVE = 150,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_IS_PERSISTENT = 151,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_IS_ACTIVE = 152,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_IS_PERSISTENT = 153,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_IS_ACTIVE = 154,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_IS_PERSISTENT = 155,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: interface:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_IS_ACTIVE = 156,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_LIB_VERSION = 157,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_COMPARE_CPU = 158,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MEMORY_STATS = 159,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_ATTACH_DEVICE_FLAGS = 160,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_DETACH_DEVICE_FLAGS = 161,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_BASELINE_CPU = 162,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_JOB_INFO = 163,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_ABORT_JOB = 164,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:format
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_WIPE = 165,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_DOWNTIME = 166,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
event: filter global events by domain:getattr ACL [CVE-2014-0028]
Ever since ACL filtering was added in commit 7639736 (v1.1.1), a
user could still use event registration to obtain access to a
domain that they could not normally access via virDomainLookup*
or virConnectListAllDomains and friends. We already have the
framework in the RPC generator for creating the filter, and
previous cleanup patches got us to the point that we can now
wire the filter through the entire object event stack.
Furthermore, whether or not domain:getattr is honored, use of
global events is a form of obtaining a list of networks, which
is covered by connect:search_domains added in a93cd08 (v1.1.0).
Ideally, we'd have a way to enforce connect:search_domains when
doing global registrations while omitting that check on a
per-domain registration. But this patch just unconditionally
requires connect:search_domains, even when no list could be
obtained, based on the following observations:
1. Administrators are unlikely to grant domain:getattr for one
or all domains while still denying connect:search_domains - a
user that is able to manage domains will want to be able to
manage them efficiently, but efficient management includes being
able to list the domains they can access. The idea of denying
connect:search_domains while still granting access to individual
domains is therefore not adding any real security, but just
serves as a layer of obscurity to annoy the end user.
2. In the current implementation, domain events are filtered
on the client; the server has no idea if a domain filter was
requested, and must therefore assume that all domain event
requests are global. Even if we fix the RPC protocol to
allow for server-side filtering for newer client/server combos,
making the connect:serach_domains ACL check conditional on
whether the domain argument was NULL won't benefit older clients.
Therefore, we choose to document that connect:search_domains
is a pre-requisite to any domain event management.
Network events need the same treatment, with the obvious
change of using connect:search_networks and network:getattr.
* src/access/viraccessperm.h
(VIR_ACCESS_PERM_CONNECT_SEARCH_DOMAINS)
(VIR_ACCESS_PERM_CONNECT_SEARCH_NETWORKS): Document additional
effect of the permission.
* src/conf/domain_event.h (virDomainEventStateRegister)
(virDomainEventStateRegisterID): Add new parameter.
* src/conf/network_event.h (virNetworkEventStateRegisterID):
Likewise.
* src/conf/object_event_private.h (virObjectEventStateRegisterID):
Likewise.
* src/conf/object_event.c (_virObjectEventCallback): Track a filter.
(virObjectEventDispatchMatchCallback): Use filter.
(virObjectEventCallbackListAddID): Register filter.
* src/conf/domain_event.c (virDomainEventFilter): New function.
(virDomainEventStateRegister, virDomainEventStateRegisterID):
Adjust callers.
* src/conf/network_event.c (virNetworkEventFilter): New function.
(virNetworkEventStateRegisterID): Adjust caller.
* src/remote/remote_protocol.x
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER)
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER_ANY)
(REMOTE_PROC_CONNECT_NETWORK_EVENT_REGISTER_ANY): Generate a
filter, and require connect:search_domains instead of weaker
connect:read.
* src/test/test_driver.c (testConnectDomainEventRegister)
(testConnectDomainEventRegisterAny)
(testConnectNetworkEventRegisterAny): Update callers.
* src/remote/remote_driver.c (remoteConnectDomainEventRegister)
(remoteConnectDomainEventRegisterAny): Likewise.
* src/xen/xen_driver.c (xenUnifiedConnectDomainEventRegister)
(xenUnifiedConnectDomainEventRegisterAny): Likewise.
* src/vbox/vbox_tmpl.c (vboxDomainGetXMLDesc): Likewise.
* src/libxl/libxl_driver.c (libxlConnectDomainEventRegister)
(libxlConnectDomainEventRegisterAny): Likewise.
* src/qemu/qemu_driver.c (qemuConnectDomainEventRegister)
(qemuConnectDomainEventRegisterAny): Likewise.
* src/uml/uml_driver.c (umlConnectDomainEventRegister)
(umlConnectDomainEventRegisterAny): Likewise.
* src/network/bridge_driver.c
(networkConnectNetworkEventRegisterAny): Likewise.
* src/lxc/lxc_driver.c (lxcConnectDomainEventRegister)
(lxcConnectDomainEventRegisterAny): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:34:48 +00:00
|
|
|
* @acl: connect:search_domains
|
|
|
|
* @aclfilter: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER_ANY = 167,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_DOMAIN_EVENT_DEREGISTER_ANY = 168,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_REBOOT = 169,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_RTC_CHANGE = 170,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_WATCHDOG = 171,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_IO_ERROR = 172,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_GRAPHICS = 173,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_UPDATE_DEVICE_FLAGS = 174,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: nwfilter:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NWFILTER_LOOKUP_BY_NAME = 175,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: nwfilter:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NWFILTER_LOOKUP_BY_UUID = 176,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: nwfilter:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NWFILTER_GET_XML_DESC = 177,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_nwfilters
|
|
|
|
* @aclfilter: nwfilter:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_NUM_OF_NWFILTERS = 178,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_nwfilters
|
|
|
|
* @aclfilter: nwfilter:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_NWFILTERS = 179,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: nwfilter:write
|
|
|
|
* @acl: nwfilter:save
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NWFILTER_DEFINE_XML = 180,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: nwfilter:delete
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NWFILTER_UNDEFINE = 181,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:hibernate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MANAGED_SAVE = 182,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_HAS_MANAGED_SAVE_IMAGE = 183,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:hibernate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MANAGED_SAVE_REMOVE = 184,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:snapshot
|
2014-05-02 00:05:54 +00:00
|
|
|
* @acl: domain:fs_freeze:VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_CREATE_XML = 185,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
snapshot: Define explicit flags for snapshot xml
Commit f609cb85 (0.9.5) introduced virDomainSnapshotGetXMLDesc()'s use
of @flags as a subset of virDomainXMLFlags, documenting that 2 of the
3 flags defined at the time would never be valid. Later, commit
28f8dfdc (1.0.0) introduced a new flag, VIR_DOMAIN_XML_MIGRATABLE, but
did not adjust the snapshot documentation to declare it as invalid.
However, since the flag is not accepted as valid by any of the
drivers (remote is just passthrough; esx and vbox don't support flags;
qemu, test, and vz only support VIR_DOMAIN_XML_SECURE), and it is
unlikely that the domain state saved off during a snapshot creation
needs to be migration-friendly (as the snapshot is not the source of
a migration), it is easier to just define an explicit set of supported
flags directly related to the snapshot API rather than trying to
borrow from domain API, and risking confusion if even more domain
flags are added later (in fact, I have an upcoming patch that plans to
add a new flag to virDomainGetXMLDesc that makes no sense for
snapshots).
There is no API or ABI impact (since we purposefully used unsigned int
rather than an enum type in public API, and since the new flag name
carries the same value as the reused name).
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2019-02-13 21:09:05 +00:00
|
|
|
* @acl: domain:read_secure:VIR_DOMAIN_SNAPSHOT_XML_SECURE
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_GET_XML_DESC = 186,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_NUM = 187,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_NAMES = 188,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_LOOKUP_BY_NAME = 189,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_HAS_CURRENT_SNAPSHOT = 190,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_CURRENT = 191,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:snapshot
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_REVERT_TO_SNAPSHOT = 192,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:snapshot
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_DELETE = 193,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_BLOCK_INFO = 194,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_IO_ERROR_REASON = 195,
|
|
|
|
|
|
|
|
/**
|
2017-01-19 20:17:12 +00:00
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:start
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CREATE_WITH_FLAGS = 196,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_MEMORY_PARAMETERS = 197,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_MEMORY_PARAMETERS = 198,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
api: require write permission for guest agent interaction
I noticed that we allow virDomainGetVcpusFlags even for read-only
connections, but that with a flag, it can require guest agent
interaction. It is feasible that a malicious guest could
intentionally abuse the replies it sends over the guest agent
connection to possibly trigger a bug in libvirt's JSON parser,
or withhold an answer so as to prevent the use of the agent
in a later command such as a shutdown request. Although we
don't know of any such exploits now (and therefore don't mind
posting this patch publicly without trying to get a CVE assigned),
it is better to err on the side of caution and explicitly require
full access to any domain where the API requires guest interaction
to operate correctly.
I audited all commands that are marked as conditionally using a
guest agent. Note that at least virDomainFSTrim is documented
as needing a guest agent, but that such use is unconditional
depending on the hypervisor (so the existing domain:fs_trim ACL
should be sufficient there, rather than also requirng domain:write).
But when designing future APIs, such as the plans for obtaining
a domain's IP addresses, we should copy the approach of this patch
in making interaction with the guest be specified via a flag, and
use that flag to also require stricter access checks.
* src/libvirt.c (virDomainGetVcpusFlags): Forbid guest interaction
on read-only connection.
(virDomainShutdownFlags, virDomainReboot): Improve docs on agent
interaction.
* src/remote/remote_protocol.x
(REMOTE_PROC_DOMAIN_SNAPSHOT_CREATE_XML)
(REMOTE_PROC_DOMAIN_SET_VCPUS_FLAGS)
(REMOTE_PROC_DOMAIN_GET_VCPUS_FLAGS, REMOTE_PROC_DOMAIN_REBOOT)
(REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS): Require domain:write for any
conditional use of a guest agent.
* src/xen/xen_driver.c: Fix clients.
* src/libxl/libxl_driver.c: Likewise.
* src/uml/uml_driver.c: Likewise.
* src/qemu/qemu_driver.c: Likewise.
* src/lxc/lxc_driver.c: Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-21 17:37:29 +00:00
|
|
|
* @acl: domain:write:VIR_DOMAIN_VCPU_GUEST
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_VCPUS_FLAGS = 199,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
api: require write permission for guest agent interaction
I noticed that we allow virDomainGetVcpusFlags even for read-only
connections, but that with a flag, it can require guest agent
interaction. It is feasible that a malicious guest could
intentionally abuse the replies it sends over the guest agent
connection to possibly trigger a bug in libvirt's JSON parser,
or withhold an answer so as to prevent the use of the agent
in a later command such as a shutdown request. Although we
don't know of any such exploits now (and therefore don't mind
posting this patch publicly without trying to get a CVE assigned),
it is better to err on the side of caution and explicitly require
full access to any domain where the API requires guest interaction
to operate correctly.
I audited all commands that are marked as conditionally using a
guest agent. Note that at least virDomainFSTrim is documented
as needing a guest agent, but that such use is unconditional
depending on the hypervisor (so the existing domain:fs_trim ACL
should be sufficient there, rather than also requirng domain:write).
But when designing future APIs, such as the plans for obtaining
a domain's IP addresses, we should copy the approach of this patch
in making interaction with the guest be specified via a flag, and
use that flag to also require stricter access checks.
* src/libvirt.c (virDomainGetVcpusFlags): Forbid guest interaction
on read-only connection.
(virDomainShutdownFlags, virDomainReboot): Improve docs on agent
interaction.
* src/remote/remote_protocol.x
(REMOTE_PROC_DOMAIN_SNAPSHOT_CREATE_XML)
(REMOTE_PROC_DOMAIN_SET_VCPUS_FLAGS)
(REMOTE_PROC_DOMAIN_GET_VCPUS_FLAGS, REMOTE_PROC_DOMAIN_REBOOT)
(REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS): Require domain:write for any
conditional use of a guest agent.
* src/xen/xen_driver.c: Fix clients.
* src/libxl/libxl_driver.c: Likewise.
* src/uml/uml_driver.c: Likewise.
* src/qemu/qemu_driver.c: Likewise.
* src/lxc/lxc_driver.c: Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-21 17:37:29 +00:00
|
|
|
* @acl: domain:write:VIR_DOMAIN_VCPU_GUEST
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_VCPUS_FLAGS = 200,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @readstream: 2
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:open_device
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_OPEN_CONSOLE = 201,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_IS_UPDATED = 202,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-18 11:07:23 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_SYSINFO = 203,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_MEMORY_FLAGS = 204,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_BLKIO_PARAMETERS = 205,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_BLKIO_PARAMETERS = 206,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_SPEED = 207,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @writestream: 1
|
2016-04-08 13:41:18 +00:00
|
|
|
* @sparseflag: VIR_STORAGE_VOL_UPLOAD_SPARSE_STREAM
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:data_write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_UPLOAD = 208,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @readstream: 1
|
2016-04-08 13:41:18 +00:00
|
|
|
* @sparseflag: VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAM
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:data_read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_DOWNLOAD = 209,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:inject_nmi
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_INJECT_NMI = 210,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @readstream: 1
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:screenshot
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SCREENSHOT = 211,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_STATE = 212,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_BEGIN3 = 213,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE3 = 214,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
|
|
|
* @writestream: 1
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL3 = 215,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PERFORM3 = 216,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_FINISH3 = 217,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3 = 218,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_SCHEDULER_PARAMETERS_FLAGS = 219,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:interface_transaction
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_CHANGE_BEGIN = 220,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:interface_transaction
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_CHANGE_COMMIT = 221,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:interface_transaction
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_INTERFACE_CHANGE_ROLLBACK = 222,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: client
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS_FLAGS = 223,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CONTROL_ERROR = 224,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_PIN_VCPU_FLAGS = 225,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:send_input
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SEND_KEY = 226,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_GET_CPU_STATS = 227,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_GET_MEMORY_STATS = 228,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_CONTROL_INFO = 229,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_VCPU_PIN_INFO = 230,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:delete
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_UNDEFINE_FLAGS = 231,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:hibernate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:stop
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2019-06-14 06:47:42 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:hibernate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SAVE_IMAGE_DEFINE_XML = 236,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_JOB_ABORT = 237,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_BLOCK_JOB_INFO = 238,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_JOB_SET_SPEED = 239,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:block_write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_PULL = 240,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_BLOCK_JOB = 241,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_GET_MAX_SPEED = 242,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_STATS_FLAGS = 243,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_GET_PARENT = 244,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:reset
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_RESET = 245,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_NUM_CHILDREN = 246,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_CHILDREN_NAMES = 247,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_DISK_CHANGE = 248,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:open_graphics
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_OPEN_GRAPHICS = 249,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:pm_control
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_SUSPEND_FOR_DURATION = 250,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:block_write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_RESIZE = 251,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_BLOCK_IO_TUNE = 252,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_BLOCK_IO_TUNE = 253,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_NUMA_PARAMETERS = 254,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_NUMA_PARAMETERS = 255,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_INTERFACE_PARAMETERS = 256,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_INTERFACE_PARAMETERS = 257,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:init_control
|
api: require write permission for guest agent interaction
I noticed that we allow virDomainGetVcpusFlags even for read-only
connections, but that with a flag, it can require guest agent
interaction. It is feasible that a malicious guest could
intentionally abuse the replies it sends over the guest agent
connection to possibly trigger a bug in libvirt's JSON parser,
or withhold an answer so as to prevent the use of the agent
in a later command such as a shutdown request. Although we
don't know of any such exploits now (and therefore don't mind
posting this patch publicly without trying to get a CVE assigned),
it is better to err on the side of caution and explicitly require
full access to any domain where the API requires guest interaction
to operate correctly.
I audited all commands that are marked as conditionally using a
guest agent. Note that at least virDomainFSTrim is documented
as needing a guest agent, but that such use is unconditional
depending on the hypervisor (so the existing domain:fs_trim ACL
should be sufficient there, rather than also requirng domain:write).
But when designing future APIs, such as the plans for obtaining
a domain's IP addresses, we should copy the approach of this patch
in making interaction with the guest be specified via a flag, and
use that flag to also require stricter access checks.
* src/libvirt.c (virDomainGetVcpusFlags): Forbid guest interaction
on read-only connection.
(virDomainShutdownFlags, virDomainReboot): Improve docs on agent
interaction.
* src/remote/remote_protocol.x
(REMOTE_PROC_DOMAIN_SNAPSHOT_CREATE_XML)
(REMOTE_PROC_DOMAIN_SET_VCPUS_FLAGS)
(REMOTE_PROC_DOMAIN_GET_VCPUS_FLAGS, REMOTE_PROC_DOMAIN_REBOOT)
(REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS): Require domain:write for any
conditional use of a guest agent.
* src/xen/xen_driver.c: Fix clients.
* src/libxl/libxl_driver.c: Likewise.
* src/uml/uml_driver.c: Likewise.
* src/qemu/qemu_driver.c: Likewise.
* src/lxc/lxc_driver.c: Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-21 17:37:29 +00:00
|
|
|
* @acl: domain:write:VIR_DOMAIN_SHUTDOWN_GUEST_AGENT
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS = 258,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:format
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_WIPE_PATTERN = 259,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_vol:resize
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_VOL_RESIZE = 260,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:pm_control
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_PM_SUSPEND_FOR_DURATION = 261,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_CPU_STATS = 262,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_DISK_ERRORS = 263,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SET_METADATA = 264,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_METADATA = 265,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:block_write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_REBASE = 266,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:pm_control
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_PM_WAKEUP = 267,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_TRAY_CHANGE = 268,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_PMWAKEUP = 269,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND = 270,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_IS_CURRENT = 271,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_HAS_METADATA = 272,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_domains
|
|
|
|
* @aclfilter: domain:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_LIST_ALL_DOMAINS = 273,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_LIST_ALL_SNAPSHOTS = 274,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_ALL_CHILDREN = 275,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_BALLOON_CHANGE = 276,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2019-03-27 11:22:49 +00:00
|
|
|
* @acl: domain:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_HOSTNAME = 277,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_SECURITY_LABEL_LIST = 278,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_PIN_EMULATOR = 279,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_EMULATOR_PIN_INFO = 280,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_storage_pools
|
|
|
|
* @aclfilter: storage_pool:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_LIST_ALL_STORAGE_POOLS = 281,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: storage_pool:search_storage_vols
|
|
|
|
* @aclfilter: storage_vol:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_STORAGE_POOL_LIST_ALL_VOLUMES = 282,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_networks
|
|
|
|
* @aclfilter: network:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_LIST_ALL_NETWORKS = 283,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_interfaces
|
|
|
|
* @aclfilter: interface:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_LIST_ALL_INTERFACES = 284,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_node_devices
|
|
|
|
* @aclfilter: node_device:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_LIST_ALL_NODE_DEVICES = 285,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_nwfilters
|
|
|
|
* @aclfilter: nwfilter:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_LIST_ALL_NWFILTERS = 286,
|
|
|
|
|
|
|
|
/**
|
2016-03-09 12:33:56 +00:00
|
|
|
* @generate: both
|
2013-04-17 12:04:27 +00:00
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:search_secrets
|
|
|
|
* @aclfilter: secret:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_LIST_ALL_SECRETS = 287,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_SET_MEMORY_PARAMETERS = 288,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_GET_MEMORY_PARAMETERS = 289,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:block_write
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_COMMIT = 290,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: network:write
|
|
|
|
* @acl: network:save:!VIR_NETWORK_UPDATE_AFFECT_CONFIG|VIR_NETWORK_UPDATE_AFFECT_LIVE
|
|
|
|
* @acl: network:save:VIR_NETWORK_UPDATE_AFFECT_CONFIG
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_UPDATE = 291,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: none
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND_DISK = 292,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: connect:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_GET_CPU_MAP = 293,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:fs_trim
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_FSTRIM = 294,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:send_signal
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_SEND_PROCESS_SIGNAL = 295,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @readstream: 2
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:open_device
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_OPEN_CHANNEL = 296,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: node_device:getattr
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_LOOKUP_SCSI_HOST_BY_WWN = 297,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:read
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_JOB_STATS = 298,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_GET_COMPRESSION_CACHE = 299,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2013-04-18 11:08:47 +00:00
|
|
|
* @acl: domain:migrate
|
2013-04-17 12:04:27 +00:00
|
|
|
*/
|
2013-04-24 17:42:04 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_SET_COMPRESSION_CACHE = 300,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: server
|
2013-09-11 13:23:24 +00:00
|
|
|
* @acl: node_device:detach
|
2013-04-24 17:42:04 +00:00
|
|
|
*/
|
2013-05-20 14:59:08 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_DETACH_FLAGS = 301,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:migrate
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_BEGIN3_PARAMS = 302,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:migrate
|
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE3_PARAMS = 303,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:migrate
|
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL3_PARAMS = 304,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:migrate
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PERFORM3_PARAMS = 305,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:migrate
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_FINISH3_PARAMS = 306,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:migrate
|
|
|
|
*/
|
2013-07-08 16:42:57 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3_PARAMS = 307,
|
2013-04-17 12:04:27 +00:00
|
|
|
|
2013-07-08 16:42:57 +00:00
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
|
|
|
*/
|
2013-07-09 17:03:18 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_MEMORY_STATS_PERIOD = 308,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:start
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CREATE_XML_WITH_FILES = 309,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:start
|
|
|
|
*/
|
2013-06-19 13:27:29 +00:00
|
|
|
REMOTE_PROC_DOMAIN_CREATE_WITH_FILES = 310,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2013-09-23 09:46:00 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_DEVICE_REMOVED = 311,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: connect:read
|
|
|
|
*/
|
2013-12-11 10:38:01 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_CPU_MODEL_NAMES = 312,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
event: filter global events by domain:getattr ACL [CVE-2014-0028]
Ever since ACL filtering was added in commit 7639736 (v1.1.1), a
user could still use event registration to obtain access to a
domain that they could not normally access via virDomainLookup*
or virConnectListAllDomains and friends. We already have the
framework in the RPC generator for creating the filter, and
previous cleanup patches got us to the point that we can now
wire the filter through the entire object event stack.
Furthermore, whether or not domain:getattr is honored, use of
global events is a form of obtaining a list of networks, which
is covered by connect:search_domains added in a93cd08 (v1.1.0).
Ideally, we'd have a way to enforce connect:search_domains when
doing global registrations while omitting that check on a
per-domain registration. But this patch just unconditionally
requires connect:search_domains, even when no list could be
obtained, based on the following observations:
1. Administrators are unlikely to grant domain:getattr for one
or all domains while still denying connect:search_domains - a
user that is able to manage domains will want to be able to
manage them efficiently, but efficient management includes being
able to list the domains they can access. The idea of denying
connect:search_domains while still granting access to individual
domains is therefore not adding any real security, but just
serves as a layer of obscurity to annoy the end user.
2. In the current implementation, domain events are filtered
on the client; the server has no idea if a domain filter was
requested, and must therefore assume that all domain event
requests are global. Even if we fix the RPC protocol to
allow for server-side filtering for newer client/server combos,
making the connect:serach_domains ACL check conditional on
whether the domain argument was NULL won't benefit older clients.
Therefore, we choose to document that connect:search_domains
is a pre-requisite to any domain event management.
Network events need the same treatment, with the obvious
change of using connect:search_networks and network:getattr.
* src/access/viraccessperm.h
(VIR_ACCESS_PERM_CONNECT_SEARCH_DOMAINS)
(VIR_ACCESS_PERM_CONNECT_SEARCH_NETWORKS): Document additional
effect of the permission.
* src/conf/domain_event.h (virDomainEventStateRegister)
(virDomainEventStateRegisterID): Add new parameter.
* src/conf/network_event.h (virNetworkEventStateRegisterID):
Likewise.
* src/conf/object_event_private.h (virObjectEventStateRegisterID):
Likewise.
* src/conf/object_event.c (_virObjectEventCallback): Track a filter.
(virObjectEventDispatchMatchCallback): Use filter.
(virObjectEventCallbackListAddID): Register filter.
* src/conf/domain_event.c (virDomainEventFilter): New function.
(virDomainEventStateRegister, virDomainEventStateRegisterID):
Adjust callers.
* src/conf/network_event.c (virNetworkEventFilter): New function.
(virNetworkEventStateRegisterID): Adjust caller.
* src/remote/remote_protocol.x
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER)
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER_ANY)
(REMOTE_PROC_CONNECT_NETWORK_EVENT_REGISTER_ANY): Generate a
filter, and require connect:search_domains instead of weaker
connect:read.
* src/test/test_driver.c (testConnectDomainEventRegister)
(testConnectDomainEventRegisterAny)
(testConnectNetworkEventRegisterAny): Update callers.
* src/remote/remote_driver.c (remoteConnectDomainEventRegister)
(remoteConnectDomainEventRegisterAny): Likewise.
* src/xen/xen_driver.c (xenUnifiedConnectDomainEventRegister)
(xenUnifiedConnectDomainEventRegisterAny): Likewise.
* src/vbox/vbox_tmpl.c (vboxDomainGetXMLDesc): Likewise.
* src/libxl/libxl_driver.c (libxlConnectDomainEventRegister)
(libxlConnectDomainEventRegisterAny): Likewise.
* src/qemu/qemu_driver.c (qemuConnectDomainEventRegister)
(qemuConnectDomainEventRegisterAny): Likewise.
* src/uml/uml_driver.c (umlConnectDomainEventRegister)
(umlConnectDomainEventRegisterAny): Likewise.
* src/network/bridge_driver.c
(networkConnectNetworkEventRegisterAny): Likewise.
* src/lxc/lxc_driver.c (lxcConnectDomainEventRegister)
(lxcConnectDomainEventRegisterAny): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:34:48 +00:00
|
|
|
* @acl: connect:search_networks
|
|
|
|
* @aclfilter: network:getattr
|
2013-12-11 10:38:01 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_NETWORK_EVENT_REGISTER_ANY = 313,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_NETWORK_EVENT_DEREGISTER_ANY = 314,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
event: server RPC protocol tweaks for domain lifecycle events
This patch adds some new RPC call numbers, but for ease of review,
they sit idle until a later patch adds the client counterpart to
drive the new RPCs. Also for ease of review, I limited this patch
to just the lifecycle event; although converting the remaining
15 domain events will be quite mechanical. On the server side,
we have to have a function per RPC call, largely with duplicated
bodies (the key difference being that we store in our callback
opaque pointer whether events should be fired with old or new
style); meanwhile, a single function can drive multiple RPC
messages. With a strategic choice of XDR struct layout, we can
make the event generation code for both styles fairly compact.
I debated about adding a tri-state witness variable per
connection (values 'unknown', 'legacy', 'modern'). It would start
as 'unknown', move to 'legacy' if any RPC call is made to a legacy
event call, and move to 'modern' if the feature probe is made;
then the event code could issue an error if the witness state is
incorrect (a legacy RPC call while in 'modern', a modern RPC call
while in 'unknown' or 'legacy', and a feature probe while in
'legacy' or 'modern'). But while it might prevent odd behavior
caused by protocol fuzzing, I don't see that it would prevent
any security holes, so I considered it bloat.
Note that sticking @acl markers on the new RPCs generates unused
functions in access/viraccessapicheck.c, because there is no new
API call that needs to use the new checks; however, having a
consistent .x file is worth the dead code.
* src/libvirt_internal.h (VIR_DRV_FEATURE_REMOTE_EVENT_CALLBACK):
New feature.
* src/remote/remote_protocol.x
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_REGISTER_ANY)
(REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_DEREGISTER_ANY)
(REMOTE_PROC_DOMAIN_EVENT_CALLBACK_LIFECYCLE): New RPCs.
* daemon/remote.c (daemonClientCallback): Add field.
(remoteDispatchConnectDomainEventCallbackRegisterAny)
(remoteDispatchConnectDomainEventCallbackDeregisterAny): New
functions.
(remoteDispatchConnectDomainEventRegisterAny)
(remoteDispatchConnectDomainEventDeregisterAny): Mark legacy use.
(remoteRelayDomainEventLifecycle): Change message based on legacy
or new use.
(remoteDispatchConnectSupportsFeature): Advertise new feature.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-01-08 20:59:35 +00:00
|
|
|
REMOTE_PROC_NETWORK_EVENT_LIFECYCLE = 315,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:search_domains
|
|
|
|
* @aclfilter: domain:getattr
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_REGISTER_ANY = 316,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_DEREGISTER_ANY = 317,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2014-01-09 18:22:53 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_LIFECYCLE = 318,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_REBOOT = 319,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_RTC_CHANGE = 320,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_WATCHDOG = 321,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_IO_ERROR = 322,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_GRAPHICS = 323,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_IO_ERROR_REASON = 324,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_CONTROL_ERROR = 325,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_BLOCK_JOB = 326,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_DISK_CHANGE = 327,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_TRAY_CHANGE = 328,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_PMWAKEUP = 329,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_PMSUSPEND = 330,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_BALLOON_CHANGE = 331,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_PMSUSPEND_DISK = 332,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2014-03-23 03:51:12 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_DEVICE_REMOVED = 333,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:core_dump
|
|
|
|
*/
|
2014-05-02 00:05:54 +00:00
|
|
|
REMOTE_PROC_DOMAIN_CORE_DUMP_WITH_FORMAT = 334,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:fs_freeze
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_FSFREEZE = 335,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:fs_freeze
|
|
|
|
*/
|
2014-04-02 16:25:07 +00:00
|
|
|
REMOTE_PROC_DOMAIN_FSTHAW = 336,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2019-03-27 11:22:49 +00:00
|
|
|
* @acl: domain:write
|
2014-04-02 16:25:07 +00:00
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_TIME = 337,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:set_time
|
|
|
|
*/
|
blockjob: use stable disk string in job event
When the block job event was first added, it was for block pull,
where the active layer of the disk remains the same name. It was
also in a day where we only cared about local files, and so we
always had a canonical absolute file name. But two things have
changed since then: we now have network disks, where determining
a single absolute string does not really make sense; and we have
two-phase jobs (copy and active commit) where the name of the
active layer changes between the first event (ready, on the old
name) and second (complete, on the pivoted name).
Adam Litke reported that having an unstable string between events
makes life harder for clients. Furthermore, all of our API that
operate on a particular disk of a domain accept multiple strings:
not only the absolute name of the active layer, but also the
destination device name (such as 'vda'). As this latter name is
stable, even for network sources, it serves as a better string
to supply in block job events.
But backwards-compatibility demands that we should not change the
name handed to users unless they explicitly request it. Therefore,
this patch adds a new event, BLOCK_JOB_2 (alas, I couldn't think of
any nicer name - but at least Migrate2 and Migrate3 are precedent
for a number suffix). We must double up on emitting both old-style
and new-style events according to what clients have registered for
(see also how IOError and IOErrorReason emits double events, but
there the difference was a larger struct rather than changed
meaning of one of the struct members).
Unfortunately, adding a new event isn't something that can easily
be broken into pieces, so the commit is rather large.
* include/libvirt/libvirt.h.in (virDomainEventID): Add a new id
for VIR_DOMAIN_EVENT_ID_BLOCK_JOB_2.
(virConnectDomainEventBlockJobCallback): Document new semantics.
* src/conf/domain_event.c (_virDomainEventBlockJob): Rename field,
to ensure we catch all clients.
(virDomainEventBlockJobNew): Add parameter.
(virDomainEventBlockJobDispose)
(virDomainEventBlockJobNewFromObj)
(virDomainEventBlockJobNewFromDom)
(virDomainEventDispatchDefaultFunc): Adjust clients.
(virDomainEventBlockJob2NewFromObj)
(virDomainEventBlockJob2NewFromDom): New functions.
* src/conf/domain_event.h: Add new prototypes.
* src/libvirt_private.syms (domain_event.h): Export new functions.
* src/qemu/qemu_driver.c (qemuDomainBlockJobImpl): Generate two
different events.
* src/qemu/qemu_process.c (qemuProcessHandleBlockJob): Likewise.
* src/remote/remote_protocol.x
(remote_domain_event_block_job_2_msg): New struct.
(REMOTE_PROC_DOMAIN_EVENT_BLOCK_JOB_2): New RPC.
* src/remote/remote_driver.c
(remoteDomainBuildEventBlockJob2): New handler.
(remoteEvents): Register new event.
* daemon/remote.c (remoteRelayDomainEventBlockJob2): New handler.
(domainEventCallbacks): Register new event.
* tools/virsh-domain.c (vshEventCallbacks): Likewise.
(vshEventBlockJobPrint): Adjust client.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-06-14 13:18:04 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_TIME = 338,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2014-06-09 15:14:47 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_BLOCK_JOB_2 = 339,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:read
|
|
|
|
*/
|
2014-06-23 21:01:50 +00:00
|
|
|
REMOTE_PROC_NODE_GET_FREE_PAGES = 340,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: network:read
|
|
|
|
*/
|
2014-06-25 15:05:20 +00:00
|
|
|
REMOTE_PROC_NETWORK_GET_DHCP_LEASES = 341,
|
2014-06-23 21:01:50 +00:00
|
|
|
|
2014-06-25 15:05:20 +00:00
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: connect:write
|
|
|
|
*/
|
2014-08-25 16:55:20 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_DOMAIN_CAPABILITIES = 342,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:open_graphics
|
|
|
|
*/
|
2014-08-25 11:22:13 +00:00
|
|
|
REMOTE_PROC_DOMAIN_OPEN_GRAPHICS_FD = 343,
|
2014-08-25 16:55:20 +00:00
|
|
|
|
2014-08-25 11:22:13 +00:00
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: connect:search_domains
|
|
|
|
* @aclfilter: domain:read
|
|
|
|
*/
|
2014-08-24 02:09:56 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_ALL_DOMAIN_STATS = 344,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:block_write
|
|
|
|
*/
|
2014-09-10 11:28:24 +00:00
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_COPY = 345,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2014-09-16 16:17:22 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_TUNABLE = 346,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: connect:write
|
|
|
|
*/
|
2014-11-19 09:32:20 +00:00
|
|
|
REMOTE_PROC_NODE_ALLOC_PAGES = 347,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2014-11-22 01:27:31 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_AGENT_LIFECYCLE = 348,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:fs_freeze
|
|
|
|
*/
|
2014-11-18 13:56:20 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_FSINFO = 349,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @priority: high
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save
|
|
|
|
*/
|
2015-02-09 23:59:23 +00:00
|
|
|
REMOTE_PROC_DOMAIN_DEFINE_XML_FLAGS = 350,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:read
|
|
|
|
*/
|
2015-03-25 16:02:26 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_IOTHREAD_INFO = 351,
|
2015-03-05 19:28:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
|
|
|
*/
|
2015-01-25 18:38:47 +00:00
|
|
|
REMOTE_PROC_DOMAIN_PIN_IOTHREAD = 352,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:read
|
2020-09-18 15:54:14 +00:00
|
|
|
* @acl: domain:write::source:VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT
|
2015-01-25 18:38:47 +00:00
|
|
|
*/
|
2015-03-30 16:46:21 +00:00
|
|
|
REMOTE_PROC_DOMAIN_INTERFACE_ADDRESSES = 353,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2015-03-25 21:13:07 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_DEVICE_ADDED = 354,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate:both
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_ADD_IOTHREAD = 355,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate:both
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
|
|
|
*/
|
2015-05-18 08:33:18 +00:00
|
|
|
REMOTE_PROC_DOMAIN_DEL_IOTHREAD = 356,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate:both
|
|
|
|
* @acl: domain:set_password
|
|
|
|
*/
|
2015-08-10 19:59:14 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_USER_PASSWORD = 357,
|
|
|
|
|
|
|
|
/**
|
2015-08-27 10:43:15 +00:00
|
|
|
* @generate: server
|
2015-08-10 19:59:14 +00:00
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save
|
|
|
|
*/
|
2015-12-10 15:09:09 +00:00
|
|
|
REMOTE_PROC_DOMAIN_RENAME = 358,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2016-02-17 12:15:02 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_MIGRATION_ITERATION = 359,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2022-11-23 08:50:29 +00:00
|
|
|
* @priority: high
|
2016-06-24 14:32:38 +00:00
|
|
|
* @acl: connect:getattr
|
2016-02-17 12:15:02 +00:00
|
|
|
*/
|
2016-06-24 14:32:37 +00:00
|
|
|
REMOTE_PROC_CONNECT_REGISTER_CLOSE_CALLBACK = 360,
|
2016-02-17 12:15:02 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
2022-11-23 08:50:29 +00:00
|
|
|
* @priority: high
|
2016-06-24 14:32:38 +00:00
|
|
|
* @acl: connect:getattr
|
2016-02-17 12:15:02 +00:00
|
|
|
*/
|
2016-06-24 14:32:37 +00:00
|
|
|
REMOTE_PROC_CONNECT_UNREGISTER_CLOSE_CALLBACK = 361,
|
2016-02-17 12:15:02 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2016-02-17 20:20:11 +00:00
|
|
|
REMOTE_PROC_CONNECT_EVENT_CONNECTION_CLOSED = 362,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2014-12-01 15:59:53 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_JOB_COMPLETED = 363,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:migrate
|
|
|
|
*/
|
2016-03-28 13:30:27 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_START_POST_COPY = 364,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_GET_PERF_EVENTS = 365,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2016-03-30 16:09:45 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_PERF_EVENTS = 366,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2016-06-15 18:35:45 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_DEVICE_REMOVAL_FAILED = 367,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:search_storage_pools
|
|
|
|
* @aclfilter: storage_pool:getattr
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_STORAGE_POOL_EVENT_REGISTER_ANY = 368,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_STORAGE_POOL_EVENT_DEREGISTER_ANY = 369,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2016-06-16 17:15:45 +00:00
|
|
|
REMOTE_PROC_STORAGE_POOL_EVENT_LIFECYCLE = 370,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2016-06-20 07:16:47 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_GUEST_VCPUS = 371,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2016-06-24 16:35:51 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_GUEST_VCPUS = 372,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2016-07-28 12:02:53 +00:00
|
|
|
REMOTE_PROC_STORAGE_POOL_EVENT_REFRESH = 373,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:search_node_devices
|
|
|
|
* @aclfilter: node_device:getattr
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_NODE_DEVICE_EVENT_REGISTER_ANY = 374,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_NODE_DEVICE_EVENT_DEREGISTER_ANY = 375,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2016-08-11 15:15:23 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_EVENT_LIFECYCLE = 376,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2016-11-29 15:44:36 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_EVENT_UPDATE = 377,
|
|
|
|
|
|
|
|
/**
|
2020-02-01 12:38:19 +00:00
|
|
|
* @generate: server
|
2016-11-29 15:44:36 +00:00
|
|
|
* @priority: high
|
|
|
|
* @acl: storage_vol:read
|
|
|
|
*/
|
2016-12-22 14:41:30 +00:00
|
|
|
REMOTE_PROC_STORAGE_VOL_GET_INFO_FLAGS = 378,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2016-12-22 16:11:06 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_METADATA_CHANGE = 379,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:search_secrets
|
|
|
|
* @aclfilter: secret:getattr
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_SECRET_EVENT_REGISTER_ANY = 380,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_CONNECT_SECRET_EVENT_DEREGISTER_ANY = 381,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2017-01-05 13:51:07 +00:00
|
|
|
REMOTE_PROC_SECRET_EVENT_LIFECYCLE = 382,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2016-06-21 08:44:51 +00:00
|
|
|
REMOTE_PROC_SECRET_EVENT_VALUE_CHANGED = 383,
|
2016-12-22 16:11:06 +00:00
|
|
|
|
2016-06-21 08:44:51 +00:00
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
|
|
|
*/
|
2017-02-21 14:03:07 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_VCPU = 384,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2017-02-23 12:09:12 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_BLOCK_THRESHOLD = 385,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2017-08-17 22:17:20 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_BLOCK_THRESHOLD = 386,
|
2017-02-23 12:09:12 +00:00
|
|
|
|
2017-08-17 22:17:20 +00:00
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:migrate
|
|
|
|
*/
|
2017-08-08 08:02:49 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_GET_MAX_DOWNTIME = 387,
|
2017-02-21 14:03:07 +00:00
|
|
|
|
2017-08-08 08:02:49 +00:00
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:read
|
domain: Define explicit flags for saved image xml
Commit d2a929d4 (0.9.4) defined virDomainSaveImageGetXMLDesc()'s use
of @flags as a subset of virDomainXMLFlags, documenting that 2 of the
3 flags defined at the time would never be valid. Later, commit
28f8dfdc (1.0.0) introduced a new flag, VIR_DOMAIN_XML_MIGRATABLE, but
did not adjust the save image documentation to declare it as invalid.
Later, commit a67e3872 (3.7.0) blindly copied and pasted the same text
into virDomainManagedSaveGetXMLDesc.
However, since the flag is not accepted as valid by any of the
drivers (remote is just passthrough; and qemu is the only supporting
driver for either API, with support for just VIR_DOMAIN_XML_SECURE),
it is easier to just define an explicit set of supported flags
directly related to the save image API rather than trying to borrow
from live domain API, and risking confusion if even more domain flags
are added later (in fact, I have an upcoming patch that plans to add
a new flag to virDomainGetXMLDesc that makes no sense for saved
images). We may someday decide that saved images need to support the
_MIGRATABLE flag, as it is possible to load a saved image with a
different version of libvirt than the one that created it, but that
can be a separate patch if it is ever needed. Meanwhile, it DOES make
sense to reuse the same flags for SaveImage and for ManagedSave (since
ManagedSave is really just sugar for creating a normal SaveImage in a
location controlled by libvirt instead of by the user).
There is no API or ABI impact (since we purposefully used unsigned int
rather than an enum type in public API, and since the new flag name
carries the same value as the old reused name).
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2019-02-13 21:09:05 +00:00
|
|
|
* @acl: domain:read_secure:VIR_DOMAIN_SAVE_IMAGE_XML_SECURE
|
2017-08-08 08:02:49 +00:00
|
|
|
*/
|
2017-08-08 08:02:50 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MANAGED_SAVE_GET_XML_DESC = 388,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:hibernate
|
|
|
|
*/
|
2017-10-11 12:02:01 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MANAGED_SAVE_DEFINE_XML = 389,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2018-01-25 09:35:52 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_LIFECYCLE_ACTION = 390,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: storage_pool:getattr
|
|
|
|
*/
|
2018-05-21 11:24:23 +00:00
|
|
|
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_TARGET_PATH = 391,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
|
|
|
*/
|
2018-04-24 20:19:03 +00:00
|
|
|
REMOTE_PROC_DOMAIN_DETACH_DEVICE_ALIAS = 392,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: connect:write
|
|
|
|
*/
|
2018-04-25 11:43:24 +00:00
|
|
|
REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU = 393,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: connect:write
|
|
|
|
*/
|
2018-06-08 14:40:54 +00:00
|
|
|
REMOTE_PROC_CONNECT_BASELINE_HYPERVISOR_CPU = 394,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: connect:read
|
|
|
|
*/
|
2018-06-08 14:41:00 +00:00
|
|
|
REMOTE_PROC_NODE_GET_SEV_INFO = 395,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:read
|
|
|
|
*/
|
2018-05-09 16:18:58 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_LAUNCH_SECURITY_INFO = 396,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: nwfilter_binding:getattr
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NWFILTER_BINDING_LOOKUP_BY_PORT_DEV = 397,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: nwfilter_binding:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NWFILTER_BINDING_GET_XML_DESC = 398,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: nwfilter_binding:create
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NWFILTER_BINDING_CREATE_XML = 399,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: nwfilter_binding:delete
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NWFILTER_BINDING_DELETE = 400,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: connect:search_nwfilter_bindings
|
|
|
|
* @aclfilter: nwfilter_binding:getattr
|
|
|
|
*/
|
2018-10-03 21:57:56 +00:00
|
|
|
REMOTE_PROC_CONNECT_LIST_ALL_NWFILTER_BINDINGS = 401,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
|
|
|
|
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
|
|
|
|
*/
|
2019-02-07 17:02:25 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_IOTHREAD_PARAMS = 402,
|
2018-10-03 21:57:56 +00:00
|
|
|
|
2019-02-07 17:02:25 +00:00
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: connect:read
|
|
|
|
*/
|
2018-12-10 17:43:42 +00:00
|
|
|
REMOTE_PROC_CONNECT_GET_STORAGE_POOL_CAPABILITIES = 403,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: network:search_ports
|
|
|
|
* @aclfilter: network_port:getattr
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_LIST_ALL_PORTS = 404,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: network_port:getattr
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_PORT_LOOKUP_BY_UUID = 405,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: network_port:create
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_PORT_CREATE_XML = 406,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: network_port:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_PORT_GET_PARAMETERS = 407,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: network_port:write
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_PORT_SET_PARAMETERS = 408,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: network_port:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_PORT_GET_XML_DESC = 409,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: network_port:delete
|
|
|
|
*/
|
2019-03-06 17:54:47 +00:00
|
|
|
REMOTE_PROC_NETWORK_PORT_DELETE = 410,
|
|
|
|
|
2019-07-30 21:46:55 +00:00
|
|
|
/**
|
2019-03-06 17:54:47 +00:00
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:checkpoint
|
|
|
|
* @acl: domain:fs_freeze:VIR_DOMAIN_CHECKPOINT_CREATE_QUIESCE
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CHECKPOINT_CREATE_XML = 411,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:read
|
|
|
|
* @acl: domain:read_secure:VIR_DOMAIN_CHECKPOINT_XML_SECURE
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CHECKPOINT_GET_XML_DESC = 412,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: domain:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_LIST_ALL_CHECKPOINTS = 413,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: domain:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CHECKPOINT_LIST_ALL_CHILDREN = 414,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: domain:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CHECKPOINT_LOOKUP_BY_NAME = 415,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: domain:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_CHECKPOINT_GET_PARENT = 416,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:checkpoint
|
|
|
|
*/
|
2019-08-23 16:31:16 +00:00
|
|
|
REMOTE_PROC_DOMAIN_CHECKPOINT_DELETE = 417,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2019-07-26 15:34:15 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_GUEST_INFO = 418,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: client
|
|
|
|
* @acl: connect:write
|
|
|
|
*/
|
Add API to change qemu agent response timeout
Some layered products such as oVirt have requested a way to avoid being
blocked by guest agent commands when querying a loaded vm. For example,
many guest agent commands are polled periodically to monitor changes,
and rather than blocking the calling process, they'd prefer to simply
time out when an agent query is taking too long.
This patch adds a way for the user to specify a custom agent timeout
that is applied to all agent commands.
One special case to note here is the 'guest-sync' command. 'guest-sync'
is issued internally prior to calling any other command. (For example,
when libvirt wants to call 'guest-get-fsinfo', we first call
'guest-sync' and then call 'guest-get-fsinfo').
Previously, the 'guest-sync' command used a 5-second timeout
(VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT), whereas the actual command that
followed always blocked indefinitely
(VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK). As part of this patch, if a
custom timeout is specified that is shorter than
5 seconds, this new timeout is also used for 'guest-sync'. If there is
no custom timeout or if the custom timeout is longer than 5 seconds, we
will continue to use the 5-second timeout.
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-11-13 22:06:09 +00:00
|
|
|
REMOTE_PROC_CONNECT_SET_IDENTITY = 419,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2019-08-22 01:42:43 +00:00
|
|
|
REMOTE_PROC_DOMAIN_AGENT_SET_RESPONSE_TIMEOUT = 420,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:checkpoint
|
|
|
|
* @acl: domain:block_write
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_BACKUP_BEGIN = 421,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: domain:read
|
|
|
|
*/
|
2020-10-14 10:37:50 +00:00
|
|
|
REMOTE_PROC_DOMAIN_BACKUP_GET_XML_DESC = 422,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2020-11-09 21:23:44 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_MEMORY_FAILURE = 423,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_DOMAIN_AUTHORIZED_SSH_KEYS_GET = 424,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2021-01-22 14:50:10 +00:00
|
|
|
REMOTE_PROC_DOMAIN_AUTHORIZED_SSH_KEYS_SET = 425,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:read
|
|
|
|
*/
|
2021-03-16 12:32:45 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_MESSAGES = 426,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
2021-03-29 10:27:42 +00:00
|
|
|
* @acl: domain:write
|
2021-03-16 12:32:45 +00:00
|
|
|
*/
|
2020-05-11 16:40:26 +00:00
|
|
|
REMOTE_PROC_DOMAIN_START_DIRTY_RATE_CALC = 427,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: node_device:write
|
|
|
|
*/
|
2020-07-02 20:14:30 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_DEFINE_XML = 428,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: node_device:delete
|
|
|
|
*/
|
2020-06-18 15:21:13 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_UNDEFINE = 429,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: node_device:start
|
|
|
|
*/
|
2021-08-20 11:57:05 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_CREATE = 430,
|
2020-07-02 20:14:30 +00:00
|
|
|
|
2021-08-20 11:57:05 +00:00
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: nwfilter:write
|
|
|
|
* @acl: nwfilter:save
|
|
|
|
*/
|
2021-08-23 16:50:08 +00:00
|
|
|
REMOTE_PROC_NWFILTER_DEFINE_XML_FLAGS = 431,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: network:write
|
|
|
|
* @acl: network:save
|
|
|
|
*/
|
2021-05-26 14:06:12 +00:00
|
|
|
REMOTE_PROC_NETWORK_DEFINE_XML_FLAGS = 432,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: node_device:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_GET_AUTOSTART = 433,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: node_device:write
|
|
|
|
*/
|
2021-06-03 18:21:00 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_SET_AUTOSTART = 434,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: node_device:read
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NODE_DEVICE_IS_PERSISTENT = 435,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: node_device:read
|
|
|
|
*/
|
2021-09-15 11:07:27 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_IS_ACTIVE = 436,
|
2021-06-03 18:21:00 +00:00
|
|
|
|
2021-09-15 11:07:27 +00:00
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @priority: high
|
|
|
|
* @acl: network:write
|
|
|
|
* @acl: network:start
|
|
|
|
*/
|
2021-01-21 13:16:44 +00:00
|
|
|
REMOTE_PROC_NETWORK_CREATE_XML_FLAGS = 437,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
2021-11-16 23:39:44 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_MEMORY_DEVICE_SIZE_CHANGE = 438,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2022-05-06 13:10:53 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_LAUNCH_SECURITY_STATE = 439,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:hibernate
|
|
|
|
*/
|
2022-05-06 13:10:55 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SAVE_PARAMS = 440,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:start
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2022-05-10 13:20:25 +00:00
|
|
|
REMOTE_PROC_DOMAIN_RESTORE_PARAMS = 441,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2022-02-24 16:01:40 +00:00
|
|
|
REMOTE_PROC_DOMAIN_ABORT_JOB_FLAGS = 442,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: none
|
|
|
|
* @acl: domain:write
|
|
|
|
*/
|
2023-08-16 18:47:11 +00:00
|
|
|
REMOTE_PROC_DOMAIN_FD_ASSOCIATE = 443,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: network:write
|
|
|
|
* @acl: network:save:!VIR_NETWORK_UPDATE_AFFECT_CONFIG|VIR_NETWORK_UPDATE_AFFECT_LIVE
|
|
|
|
* @acl: network:save:VIR_NETWORK_UPDATE_AFFECT_CONFIG
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_SET_METADATA = 444,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: network:read
|
|
|
|
*/
|
2023-09-03 14:58:33 +00:00
|
|
|
REMOTE_PROC_NETWORK_GET_METADATA = 445,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @generate: both
|
|
|
|
* @acl: none
|
|
|
|
*/
|
|
|
|
REMOTE_PROC_NETWORK_EVENT_CALLBACK_METADATA_CHANGE = 446
|
Implmentation of new APIs to checking state/persistence of objects
This implements the virConnectIsSecure, virConnectIsEncrypted,
virDomainIsPersistent, virDomainIsActive, virNetworkIsActive,
virNetworkIsPersistent, virStoragePoolIsActive,
virStoragePoolIsPersistent, virInterfaceIsActive APIs in
(nearly) all drivers. Exceptions are:
phyp: missing domainIsActive/Persistent
esx: missing domainIsPersistent
opennebula: missing domainIsActive/Persistent
* src/remote/remote_protocol.x: Define remote wire ABI for newly
added APIs.
* daemon/remote_dispatch*.h: Re-generated from remote_protocol.x
* src/esx/esx_driver.c, src/lxc/lxc_driver.c, src/network/bridge_driver.c,
src/opennebula/one_driver.c, src/openvz/openvz_conf.c,
src/openvz/openvz_driver.c, src/phyp/phyp_driver.c,
src/remote/remote_driver.c, src/storage/storage_driver.c,
src/test/test_driver.c, src/uml/uml_driver.c, src/vbox/vbox_tmpl.c,
src/xen/xen_driver.c, src/xen/xen_driver.h, src/xen/xen_inotify.c,
src/xen/xen_inotify.h: Implement all the new APIs where possible
2009-10-20 14:12:03 +00:00
|
|
|
};
|