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.
|
|
|
|
*
|
2011-02-07 22:04:17 +00:00
|
|
|
* Copyright (C) 2006-2011 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
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
* Author: Richard Jones <rjones@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* 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.
|
|
|
|
*/
|
|
|
|
|
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"
|
2008-10-28 19:09:04 +00:00
|
|
|
%#include <arpa/inet.h>
|
2007-06-11 11:36:17 +00:00
|
|
|
|
2010-04-25 11:31:31 +00:00
|
|
|
/* cygwin's xdr implementation defines xdr_u_int64_t instead of xdr_uint64_t
|
|
|
|
* and lacks IXDR_PUT_INT32 and IXDR_GET_INT32
|
|
|
|
*/
|
|
|
|
%#ifdef HAVE_XDR_U_INT64_T
|
|
|
|
%# define xdr_uint64_t xdr_u_int64_t
|
|
|
|
%#endif
|
|
|
|
%#ifndef IXDR_PUT_INT32
|
|
|
|
%# define IXDR_PUT_INT32 IXDR_PUT_LONG
|
|
|
|
%#endif
|
|
|
|
%#ifndef IXDR_GET_INT32
|
|
|
|
%# define IXDR_GET_INT32 IXDR_GET_LONG
|
|
|
|
%#endif
|
2010-08-17 10:37:27 +00:00
|
|
|
%#ifndef IXDR_PUT_U_INT32
|
|
|
|
%# define IXDR_PUT_U_INT32 IXDR_PUT_U_LONG
|
|
|
|
%#endif
|
|
|
|
%#ifndef IXDR_GET_U_INT32
|
|
|
|
%# define IXDR_GET_U_INT32 IXDR_GET_U_LONG
|
|
|
|
%#endif
|
2010-04-25 11:31:31 +00:00
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
/*----- Data types. -----*/
|
|
|
|
|
|
|
|
/* Maximum total message size (serialised). */
|
|
|
|
const REMOTE_MESSAGE_MAX = 262144;
|
|
|
|
|
2009-07-10 12:06:36 +00:00
|
|
|
/* Size of struct remote_message_header (serialized)*/
|
|
|
|
const REMOTE_MESSAGE_HEADER_MAX = 24;
|
|
|
|
|
|
|
|
/* Size of message payload */
|
|
|
|
const REMOTE_MESSAGE_PAYLOAD_MAX = 262120;
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
/* 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.
|
|
|
|
*/
|
|
|
|
const REMOTE_STRING_MAX = 65536;
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
|
|
|
|
/* This just places an upper limit on the length of lists of
|
|
|
|
* domain IDs which may be sent via the protocol.
|
|
|
|
*/
|
|
|
|
const REMOTE_DOMAIN_ID_LIST_MAX = 16384;
|
|
|
|
|
|
|
|
/* Upper limit on lists of domain names. */
|
|
|
|
const REMOTE_DOMAIN_NAME_LIST_MAX = 1024;
|
|
|
|
|
|
|
|
/* Upper limit on cpumap (bytes) passed to virDomainPinVcpu. */
|
|
|
|
const REMOTE_CPUMAP_MAX = 256;
|
|
|
|
|
|
|
|
/* Upper limit on number of info fields returned by virDomainGetVcpus. */
|
|
|
|
const REMOTE_VCPUINFO_MAX = 2048;
|
|
|
|
|
|
|
|
/* Upper limit on cpumaps (bytes) passed to virDomainGetVcpus. */
|
|
|
|
const REMOTE_CPUMAPS_MAX = 16384;
|
|
|
|
|
2007-08-21 09:31:12 +00:00
|
|
|
/* Upper limit on migrate cookie. */
|
2011-01-24 18:06:16 +00:00
|
|
|
const REMOTE_MIGRATE_COOKIE_MAX = 16384;
|
2007-08-21 09:31:12 +00:00
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
/* Upper limit on lists of network names. */
|
|
|
|
const REMOTE_NETWORK_NAME_LIST_MAX = 256;
|
|
|
|
|
2009-05-20 14:26:49 +00:00
|
|
|
/* Upper limit on lists of interface names. */
|
|
|
|
const REMOTE_INTERFACE_NAME_LIST_MAX = 256;
|
|
|
|
|
2009-07-16 15:58:15 +00:00
|
|
|
/* Upper limit on lists of defined interface names. */
|
|
|
|
const REMOTE_DEFINED_INTERFACE_NAME_LIST_MAX = 256;
|
|
|
|
|
2008-02-20 15:22:35 +00:00
|
|
|
/* Upper limit on lists of storage pool names. */
|
|
|
|
const REMOTE_STORAGE_POOL_NAME_LIST_MAX = 256;
|
|
|
|
|
|
|
|
/* Upper limit on lists of storage vol names. */
|
|
|
|
const REMOTE_STORAGE_VOL_NAME_LIST_MAX = 1024;
|
|
|
|
|
2008-11-21 12:31:04 +00:00
|
|
|
/* Upper limit on lists of node device names. */
|
|
|
|
const REMOTE_NODE_DEVICE_NAME_LIST_MAX = 16384;
|
|
|
|
|
|
|
|
/* Upper limit on lists of node device capabilities. */
|
|
|
|
const REMOTE_NODE_DEVICE_CAPS_LIST_MAX = 16384;
|
|
|
|
|
2010-03-25 17:46:03 +00:00
|
|
|
/* Upper limit on lists of network filter names. */
|
|
|
|
const REMOTE_NWFILTER_NAME_LIST_MAX = 1024;
|
|
|
|
|
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-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;
|
|
|
|
|
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;
|
|
|
|
|
2010-03-31 20:33:13 +00:00
|
|
|
/* Upper limit on lists of domain snapshots. */
|
|
|
|
const REMOTE_DOMAIN_SNAPSHOT_LIST_NAMES_MAX = 1024;
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
const REMOTE_DOMAIN_BLOCK_PEEK_BUFFER_MAX = 65536;
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
const REMOTE_DOMAIN_MEMORY_PEEK_BUFFER_MAX = 65536;
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
const REMOTE_SECRET_UUID_LIST_MAX = 16384;
|
|
|
|
|
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;
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
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;
|
2010-03-25 17:46:03 +00:00
|
|
|
typedef remote_nonnull_nwfilter *remote_nwfilter;
|
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;
|
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-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;
|
|
|
|
};
|
|
|
|
|
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-04-24 07:58:01 +00:00
|
|
|
* parsed by 'remote_generator.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
|
|
|
|
* the function to be called. */
|
2007-06-11 11:36:17 +00:00
|
|
|
|
|
|
|
struct remote_open_args {
|
|
|
|
/* NB. "name" might be NULL although in practice you can't
|
|
|
|
* yet do that using the remote_internal driver.
|
|
|
|
*/
|
|
|
|
remote_string name;
|
|
|
|
int flags;
|
|
|
|
};
|
|
|
|
|
2007-08-21 09:03:55 +00:00
|
|
|
struct remote_supports_feature_args {
|
|
|
|
int feature;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_supports_feature_ret {
|
|
|
|
int supported;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_get_type_ret {
|
|
|
|
remote_nonnull_string type;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_get_version_ret {
|
2011-05-11 22:48:35 +00:00
|
|
|
unsigned hyper hv_ver;
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2009-11-12 15:53:26 +00:00
|
|
|
struct remote_get_lib_version_ret {
|
2011-05-11 22:48:35 +00:00
|
|
|
unsigned hyper lib_ver;
|
2009-11-12 15:53:26 +00:00
|
|
|
};
|
|
|
|
|
2007-06-26 11:42:46 +00:00
|
|
|
struct remote_get_hostname_ret {
|
|
|
|
remote_nonnull_string hostname;
|
|
|
|
};
|
|
|
|
|
2011-02-07 22:04:17 +00:00
|
|
|
struct remote_get_sysinfo_args {
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_get_sysinfo_ret {
|
|
|
|
remote_nonnull_string sysinfo;
|
|
|
|
};
|
|
|
|
|
2008-11-17 11:44:51 +00:00
|
|
|
struct remote_get_uri_ret {
|
|
|
|
remote_nonnull_string uri;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_get_max_vcpus_args {
|
|
|
|
/* The only backend which supports this call is Xen HV, and
|
|
|
|
* there the type is ignored so it could be NULL.
|
|
|
|
*/
|
|
|
|
remote_string type;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_get_max_vcpus_ret {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_get_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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_interface_stats_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_list_domains_args {
|
|
|
|
int maxids;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_domains_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
int ids<REMOTE_DOMAIN_ID_LIST_MAX>; /* insert@1 */
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_num_of_domains_ret {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_resume_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_destroy_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_restore_args {
|
|
|
|
remote_nonnull_string from;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_core_dump_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string to;
|
|
|
|
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;
|
|
|
|
int flags;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_list_defined_domains_args {
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_defined_domains_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_DOMAIN_NAME_LIST_MAX>; /* insert@1 */
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_num_of_defined_domains_ret {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_undefine_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
2007-06-11 11:36:17 +00:00
|
|
|
opaque cpumap<REMOTE_CPUMAP_MAX>;
|
|
|
|
};
|
|
|
|
|
2011-06-13 15:45:29 +00:00
|
|
|
struct remote_domain_pin_vcpu_flags_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
unsigned int vcpu;
|
|
|
|
opaque cpumap<REMOTE_CPUMAP_MAX>;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2011-06-14 14:36:49 +00:00
|
|
|
struct remote_domain_block_pull_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_block_pull_ret {
|
|
|
|
unsigned hyper cur;
|
|
|
|
unsigned hyper end;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_block_pull_all_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_block_pull_abort_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_block_pull_info_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_get_block_pull_info_ret {
|
|
|
|
unsigned hyper cur;
|
|
|
|
unsigned hyper end;
|
|
|
|
};
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
/* Network calls: */
|
|
|
|
|
|
|
|
struct remote_num_of_networks_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_networks_args {
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_networks_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_NETWORK_NAME_LIST_MAX>; /* insert@1 */
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_num_of_defined_networks_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_defined_networks_args {
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_defined_networks_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_NETWORK_NAME_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;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_define_xml_args {
|
|
|
|
remote_nonnull_string xml;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_define_xml_ret {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_network_undefine_args {
|
|
|
|
remote_nonnull_network net;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
int flags;
|
|
|
|
};
|
|
|
|
|
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 */
|
|
|
|
|
|
|
|
struct remote_num_of_nwfilters_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_nwfilters_args {
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_nwfilters_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_NWFILTER_NAME_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;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_undefine_args {
|
|
|
|
remote_nonnull_nwfilter nwfilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_nwfilter_get_xml_desc_args {
|
|
|
|
remote_nonnull_nwfilter nwfilter;
|
|
|
|
int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
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: */
|
|
|
|
|
|
|
|
struct remote_num_of_interfaces_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_interfaces_args {
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_interfaces_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_INTERFACE_NAME_LIST_MAX>; /* insert@1 */
|
2009-05-20 14:26:49 +00:00
|
|
|
};
|
|
|
|
|
2009-07-16 15:58:15 +00:00
|
|
|
struct remote_num_of_defined_interfaces_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_defined_interfaces_args {
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_defined_interfaces_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_DEFINED_INTERFACE_NAME_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: */
|
|
|
|
|
|
|
|
struct remote_num_of_storage_pools_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_storage_pools_args {
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_storage_pools_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_STORAGE_POOL_NAME_LIST_MAX>; /* insert@1 */
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_num_of_defined_storage_pools_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_defined_storage_pools_args {
|
|
|
|
int maxnames;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_defined_storage_pools_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_STORAGE_POOL_NAME_LIST_MAX>; /* insert@1 */
|
2008-02-20 15:22:35 +00:00
|
|
|
};
|
|
|
|
|
2008-08-27 20:05:58 +00:00
|
|
|
struct remote_find_storage_pool_sources_args {
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_find_storage_pool_sources_ret {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
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 {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_STORAGE_VOL_NAME_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
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_get_path_args {
|
|
|
|
remote_nonnull_storage_vol vol;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_storage_vol_get_path_ret {
|
|
|
|
remote_nonnull_string name;
|
|
|
|
};
|
|
|
|
|
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 {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_NODE_DEVICE_NAME_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;
|
|
|
|
};
|
|
|
|
|
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 {
|
|
|
|
remote_string parent;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2008-11-21 12:31:04 +00:00
|
|
|
|
2008-10-23 13:18:18 +00:00
|
|
|
/**
|
|
|
|
* Events Register/Deregister:
|
|
|
|
* It would seem rpcgen does not like both args, and ret
|
|
|
|
* to be null. It will not generate the prototype otherwise.
|
|
|
|
* Pass back a redundant boolean to force prototype generation.
|
|
|
|
*/
|
|
|
|
struct remote_domain_events_register_ret {
|
|
|
|
int cb_registered;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_events_deregister_ret {
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2009-05-21 13:50:56 +00:00
|
|
|
|
|
|
|
struct remote_domain_xml_from_native_args {
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_xml_from_native_ret {
|
|
|
|
remote_nonnull_string domainXml;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct remote_domain_xml_to_native_args {
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_xml_to_native_ret {
|
|
|
|
remote_nonnull_string nativeConfig;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-07-28 02:01:00 +00:00
|
|
|
struct remote_num_of_secrets_ret {
|
|
|
|
int num;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_secrets_args {
|
|
|
|
int maxuuids;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_list_secrets_ret {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string uuids<REMOTE_SECRET_UUID_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;
|
|
|
|
opaque value<REMOTE_SECRET_VALUE_MAX>;
|
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
|
|
|
|
|
|
|
struct remote_is_secure_ret {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-12-18 14:49:34 +00:00
|
|
|
struct remote_cpu_compare_args {
|
|
|
|
remote_nonnull_string xml;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2009-12-18 14:49:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_cpu_compare_ret {
|
|
|
|
int result;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-02-02 13:39:05 +00:00
|
|
|
struct remote_cpu_baseline_args {
|
|
|
|
remote_nonnull_string xmlCPUs<REMOTE_CPU_BASELINE_MAX>;
|
2011-05-07 05:42:04 +00:00
|
|
|
unsigned int flags;
|
2010-02-02 13:39:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_cpu_baseline_ret {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-02-04 16:18:57 +00:00
|
|
|
struct remote_domain_abort_job_args {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
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
|
|
|
struct remote_domain_events_register_any_args {
|
|
|
|
int eventID;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct remote_domain_events_deregister_any_args {
|
|
|
|
int eventID;
|
|
|
|
};
|
|
|
|
|
2010-03-18 15:25:38 +00:00
|
|
|
struct remote_domain_event_reboot_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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>;
|
|
|
|
};
|
|
|
|
|
2011-06-14 14:36:53 +00:00
|
|
|
struct remote_domain_event_block_pull_msg {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
remote_nonnull_string path;
|
|
|
|
int status;
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
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 {
|
2011-05-21 09:16:07 +00:00
|
|
|
remote_nonnull_string names<REMOTE_DOMAIN_SNAPSHOT_LIST_NAMES_MAX>; /* insert@1 */
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2010-07-23 12:57:14 +00:00
|
|
|
remote_string devname;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
2010-03-31 20:33:13 +00:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
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 {
|
2011-05-11 19:28:39 +00:00
|
|
|
/* Each function must have a two-word comment. The first word is
|
|
|
|
* whether remote_generator.pl handles daemon, the second whether
|
2011-05-21 09:24:28 +00:00
|
|
|
* it handles src/remote. Additional flags can be specified after a
|
|
|
|
* pipe.
|
|
|
|
*
|
|
|
|
* The (readstream|writestream)@<offset> flag lets 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
|
|
|
|
* <offset> specifies at which offset the stream parameter is inserted
|
|
|
|
* in the function parameter list. */
|
2011-05-11 19:28:39 +00:00
|
|
|
REMOTE_PROC_OPEN = 1, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_CLOSE = 2, /* skipgen skipgen */
|
2011-05-16 18:10:06 +00:00
|
|
|
REMOTE_PROC_GET_TYPE = 3, /* autogen skipgen */
|
2011-05-11 19:28:39 +00:00
|
|
|
REMOTE_PROC_GET_VERSION = 4, /* autogen autogen */
|
|
|
|
REMOTE_PROC_GET_MAX_VCPUS = 5, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NODE_GET_INFO = 6, /* autogen autogen */
|
|
|
|
REMOTE_PROC_GET_CAPABILITIES = 7, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_ATTACH_DEVICE = 8, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_CREATE = 9, /* autogen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_CREATE_XML = 10, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_DOMAIN_DEFINE_XML = 11, /* autogen autogen */
|
2011-05-14 13:56:03 +00:00
|
|
|
REMOTE_PROC_DOMAIN_DESTROY = 12, /* autogen autogen */
|
2011-05-11 19:28:39 +00:00
|
|
|
REMOTE_PROC_DOMAIN_DETACH_DEVICE = 13, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_XML_DESC = 14, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_AUTOSTART = 15, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_INFO = 16, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_MAX_MEMORY = 17, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_MAX_VCPUS = 18, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_OS_TYPE = 19, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_VCPUS = 20, /* skipgen skipgen */
|
|
|
|
|
|
|
|
REMOTE_PROC_LIST_DEFINED_DOMAINS = 21, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_LOOKUP_BY_ID = 22, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_LOOKUP_BY_NAME = 23, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_LOOKUP_BY_UUID = 24, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NUM_OF_DEFINED_DOMAINS = 25, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_PIN_VCPU = 26, /* skipgen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_REBOOT = 27, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_RESUME = 28, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SET_AUTOSTART = 29, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SET_MAX_MEMORY = 30, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_DOMAIN_SET_MEMORY = 31, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SET_VCPUS = 32, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SHUTDOWN = 33, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SUSPEND = 34, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_UNDEFINE = 35, /* autogen autogen */
|
|
|
|
REMOTE_PROC_LIST_DEFINED_NETWORKS = 36, /* autogen autogen */
|
|
|
|
REMOTE_PROC_LIST_DOMAINS = 37, /* autogen skipgen */
|
|
|
|
REMOTE_PROC_LIST_NETWORKS = 38, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_CREATE = 39, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_CREATE_XML = 40, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_NETWORK_DEFINE_XML = 41, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_DESTROY = 42, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_GET_XML_DESC = 43, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_GET_AUTOSTART = 44, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_GET_BRIDGE_NAME = 45, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_LOOKUP_BY_NAME = 46, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_LOOKUP_BY_UUID = 47, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_SET_AUTOSTART = 48, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_UNDEFINE = 49, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NUM_OF_DEFINED_NETWORKS = 50, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_NUM_OF_DOMAINS = 51, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NUM_OF_NETWORKS = 52, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_CORE_DUMP = 53, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_RESTORE = 54, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SAVE = 55, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_SCHEDULER_TYPE = 56, /* skipgen skipgen */
|
2011-05-30 18:27:37 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS = 57, /* skipgen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SET_SCHEDULER_PARAMETERS = 58, /* autogen autogen */
|
2011-05-11 19:28:39 +00:00
|
|
|
REMOTE_PROC_GET_HOSTNAME = 59, /* autogen autogen */
|
2011-05-14 13:56:03 +00:00
|
|
|
REMOTE_PROC_SUPPORTS_FEATURE = 60, /* autogen autogen */
|
2011-05-11 19:28:39 +00:00
|
|
|
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE = 61, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PERFORM = 62, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_FINISH = 63, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_STATS = 64, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_INTERFACE_STATS = 65, /* autogen autogen */
|
|
|
|
REMOTE_PROC_AUTH_LIST = 66, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_AUTH_SASL_INIT = 67, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_AUTH_SASL_START = 68, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_AUTH_SASL_STEP = 69, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_AUTH_POLKIT = 70, /* skipgen skipgen */
|
|
|
|
|
|
|
|
REMOTE_PROC_NUM_OF_STORAGE_POOLS = 71, /* autogen autogen */
|
|
|
|
REMOTE_PROC_LIST_STORAGE_POOLS = 72, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NUM_OF_DEFINED_STORAGE_POOLS = 73, /* autogen autogen */
|
|
|
|
REMOTE_PROC_LIST_DEFINED_STORAGE_POOLS = 74, /* autogen autogen */
|
|
|
|
REMOTE_PROC_FIND_STORAGE_POOL_SOURCES = 75, /* autogen skipgen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_CREATE_XML = 76, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_DEFINE_XML = 77, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_CREATE = 78, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_BUILD = 79, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_DESTROY = 80, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_STORAGE_POOL_DELETE = 81, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_UNDEFINE = 82, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_REFRESH = 83, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_NAME = 84, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_UUID = 85, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_VOLUME = 86, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_GET_INFO = 87, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_GET_XML_DESC = 88, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_GET_AUTOSTART = 89, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_SET_AUTOSTART = 90, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_STORAGE_POOL_NUM_OF_VOLUMES = 91, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_LIST_VOLUMES = 92, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_CREATE_XML = 93, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_DELETE = 94, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_NAME = 95, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_KEY = 96, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_PATH = 97, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_GET_INFO = 98, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_GET_XML_DESC = 99, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_GET_PATH = 100, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_NODE_GET_CELLS_FREE_MEMORY = 101, /* autogen skipgen */
|
|
|
|
REMOTE_PROC_NODE_GET_FREE_MEMORY = 102, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_PEEK = 103, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_MEMORY_PEEK = 104, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENTS_REGISTER = 105, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENTS_DEREGISTER = 106, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_LIFECYCLE = 107, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE2 = 108, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_FINISH2 = 109, /* autogen autogen */
|
|
|
|
REMOTE_PROC_GET_URI = 110, /* autogen skipgen */
|
|
|
|
|
|
|
|
REMOTE_PROC_NODE_NUM_OF_DEVICES = 111, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NODE_LIST_DEVICES = 112, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NODE_DEVICE_LOOKUP_BY_NAME = 113, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NODE_DEVICE_GET_XML_DESC = 114, /* autogen autogen */
|
2011-05-14 13:35:27 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_GET_PARENT = 115, /* skipgen autogen */
|
2011-05-11 19:28:39 +00:00
|
|
|
REMOTE_PROC_NODE_DEVICE_NUM_OF_CAPS = 116, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NODE_DEVICE_LIST_CAPS = 117, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NODE_DEVICE_DETTACH = 118, /* autogen skipgen */
|
|
|
|
REMOTE_PROC_NODE_DEVICE_RE_ATTACH = 119, /* autogen skipgen */
|
|
|
|
REMOTE_PROC_NODE_DEVICE_RESET = 120, /* autogen skipgen */
|
|
|
|
|
|
|
|
REMOTE_PROC_DOMAIN_GET_SECURITY_LABEL = 121, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_NODE_GET_SECURITY_MODEL = 122, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_NODE_DEVICE_CREATE_XML = 123, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NODE_DEVICE_DESTROY = 124, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_CREATE_XML_FROM = 125, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NUM_OF_INTERFACES = 126, /* autogen autogen */
|
|
|
|
REMOTE_PROC_LIST_INTERFACES = 127, /* autogen autogen */
|
|
|
|
REMOTE_PROC_INTERFACE_LOOKUP_BY_NAME = 128, /* autogen autogen */
|
|
|
|
REMOTE_PROC_INTERFACE_LOOKUP_BY_MAC_STRING = 129, /* autogen autogen */
|
|
|
|
REMOTE_PROC_INTERFACE_GET_XML_DESC = 130, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_INTERFACE_DEFINE_XML = 131, /* autogen autogen */
|
|
|
|
REMOTE_PROC_INTERFACE_UNDEFINE = 132, /* autogen autogen */
|
|
|
|
REMOTE_PROC_INTERFACE_CREATE = 133, /* autogen autogen */
|
|
|
|
REMOTE_PROC_INTERFACE_DESTROY = 134, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_XML_FROM_NATIVE = 135, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_XML_TO_NATIVE = 136, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NUM_OF_DEFINED_INTERFACES = 137, /* autogen autogen */
|
|
|
|
REMOTE_PROC_LIST_DEFINED_INTERFACES = 138, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NUM_OF_SECRETS = 139, /* autogen autogen */
|
|
|
|
REMOTE_PROC_LIST_SECRETS = 140, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_SECRET_LOOKUP_BY_UUID = 141, /* autogen autogen */
|
|
|
|
REMOTE_PROC_SECRET_DEFINE_XML = 142, /* autogen autogen */
|
|
|
|
REMOTE_PROC_SECRET_GET_XML_DESC = 143, /* autogen autogen */
|
|
|
|
REMOTE_PROC_SECRET_SET_VALUE = 144, /* autogen autogen */
|
|
|
|
REMOTE_PROC_SECRET_GET_VALUE = 145, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_SECRET_UNDEFINE = 146, /* autogen autogen */
|
|
|
|
REMOTE_PROC_SECRET_LOOKUP_BY_USAGE = 147, /* autogen autogen */
|
2011-05-21 09:24:28 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL = 148, /* autogen autogen | writestream@1 */
|
2011-05-11 19:28:39 +00:00
|
|
|
REMOTE_PROC_IS_SECURE = 149, /* autogen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_IS_ACTIVE = 150, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_DOMAIN_IS_PERSISTENT = 151, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_IS_ACTIVE = 152, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NETWORK_IS_PERSISTENT = 153, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_IS_ACTIVE = 154, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_POOL_IS_PERSISTENT = 155, /* autogen autogen */
|
|
|
|
REMOTE_PROC_INTERFACE_IS_ACTIVE = 156, /* autogen autogen */
|
|
|
|
REMOTE_PROC_GET_LIB_VERSION = 157, /* autogen autogen */
|
|
|
|
REMOTE_PROC_CPU_COMPARE = 158, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_MEMORY_STATS = 159, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_ATTACH_DEVICE_FLAGS = 160, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_DOMAIN_DETACH_DEVICE_FLAGS = 161, /* autogen autogen */
|
|
|
|
REMOTE_PROC_CPU_BASELINE = 162, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_JOB_INFO = 163, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_ABORT_JOB = 164, /* autogen autogen */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_WIPE = 165, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_DOWNTIME = 166, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENTS_REGISTER_ANY = 167, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENTS_DEREGISTER_ANY = 168, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_REBOOT = 169, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_RTC_CHANGE = 170, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_WATCHDOG = 171, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_IO_ERROR = 172, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_GRAPHICS = 173, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_UPDATE_DEVICE_FLAGS = 174, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NWFILTER_LOOKUP_BY_NAME = 175, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NWFILTER_LOOKUP_BY_UUID = 176, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NWFILTER_GET_XML_DESC = 177, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NUM_OF_NWFILTERS = 178, /* autogen autogen */
|
|
|
|
REMOTE_PROC_LIST_NWFILTERS = 179, /* autogen autogen */
|
|
|
|
REMOTE_PROC_NWFILTER_DEFINE_XML = 180, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_NWFILTER_UNDEFINE = 181, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_MANAGED_SAVE = 182, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_HAS_MANAGED_SAVE_IMAGE = 183, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_MANAGED_SAVE_REMOVE = 184, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_CREATE_XML = 185, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_GET_XML_DESC = 186, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_NUM = 187, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_NAMES = 188, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_LOOKUP_BY_NAME = 189, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_HAS_CURRENT_SNAPSHOT = 190, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_CURRENT = 191, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_REVERT_TO_SNAPSHOT = 192, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SNAPSHOT_DELETE = 193, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_BLOCK_INFO = 194, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_IO_ERROR_REASON = 195, /* autogen autogen */
|
2011-05-20 15:58:34 +00:00
|
|
|
REMOTE_PROC_DOMAIN_CREATE_WITH_FLAGS = 196, /* autogen autogen */
|
2011-05-30 18:27:37 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_MEMORY_PARAMETERS = 197, /* autogen autogen */
|
2011-05-11 19:28:39 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_MEMORY_PARAMETERS = 198, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_SET_VCPUS_FLAGS = 199, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_GET_VCPUS_FLAGS = 200, /* autogen autogen */
|
|
|
|
|
2011-05-21 09:24:28 +00:00
|
|
|
REMOTE_PROC_DOMAIN_OPEN_CONSOLE = 201, /* autogen autogen | readstream@2 */
|
2011-05-11 19:28:39 +00:00
|
|
|
REMOTE_PROC_DOMAIN_IS_UPDATED = 202, /* autogen autogen */
|
|
|
|
REMOTE_PROC_GET_SYSINFO = 203, /* autogen autogen */
|
|
|
|
REMOTE_PROC_DOMAIN_SET_MEMORY_FLAGS = 204, /* autogen autogen */
|
2011-05-30 18:27:37 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_BLKIO_PARAMETERS = 205, /* autogen autogen */
|
2011-05-11 19:28:39 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_BLKIO_PARAMETERS = 206, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_SPEED = 207, /* autogen autogen */
|
2011-05-21 09:24:28 +00:00
|
|
|
REMOTE_PROC_STORAGE_VOL_UPLOAD = 208, /* autogen autogen | writestream@1 */
|
|
|
|
REMOTE_PROC_STORAGE_VOL_DOWNLOAD = 209, /* autogen autogen | readstream@1 */
|
2011-04-04 13:54:48 +00:00
|
|
|
REMOTE_PROC_DOMAIN_INJECT_NMI = 210, /* autogen autogen */
|
2009-07-10 12:02:08 +00:00
|
|
|
|
2011-05-21 09:24:28 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SCREENSHOT = 211, /* skipgen autogen | readstream@1 */
|
2011-02-01 14:23:40 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_STATE = 212, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_BEGIN3 = 213, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE3 = 214, /* skipgen skipgen */
|
2011-05-21 09:24:28 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL3 = 215, /* autogen skipgen | writestream@1 */
|
2011-02-01 14:23:40 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_PERFORM3 = 216, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_FINISH3 = 217, /* skipgen skipgen */
|
2011-05-17 06:20:02 +00:00
|
|
|
REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3 = 218, /* skipgen skipgen */
|
2011-05-30 18:27:37 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SET_SCHEDULER_PARAMETERS_FLAGS = 219, /* autogen autogen */
|
2011-05-05 13:35:40 +00:00
|
|
|
REMOTE_PROC_INTERFACE_CHANGE_BEGIN = 220, /* autogen autogen */
|
2011-04-26 14:47:22 +00:00
|
|
|
|
2011-05-05 13:35:40 +00:00
|
|
|
REMOTE_PROC_INTERFACE_CHANGE_COMMIT = 221, /* autogen autogen */
|
2011-05-17 21:45:03 +00:00
|
|
|
REMOTE_PROC_INTERFACE_CHANGE_ROLLBACK = 222, /* autogen autogen */
|
2011-05-30 18:27:37 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS_FLAGS = 223, /* skipgen autogen */
|
2011-06-13 15:45:29 +00:00
|
|
|
REMOTE_PROC_DOMAIN_EVENT_CONTROL_ERROR = 224, /* skipgen skipgen */
|
2011-06-07 09:11:15 +00:00
|
|
|
REMOTE_PROC_DOMAIN_PIN_VCPU_FLAGS = 225, /* skipgen autogen */
|
2011-06-07 01:01:12 +00:00
|
|
|
REMOTE_PROC_DOMAIN_SEND_KEY = 226, /* autogen autogen */
|
2011-06-07 01:05:40 +00:00
|
|
|
REMOTE_PROC_NODE_GET_CPU_STATS = 227, /* skipgen skipgen */
|
2011-06-14 14:36:49 +00:00
|
|
|
REMOTE_PROC_NODE_GET_MEMORY_STATS = 228, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_PULL = 229, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_PULL_ALL = 230, /* autogen autogen */
|
|
|
|
|
|
|
|
REMOTE_PROC_DOMAIN_BLOCK_PULL_ABORT = 231, /* autogen autogen */
|
2011-06-14 14:36:53 +00:00
|
|
|
REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO = 232, /* skipgen skipgen */
|
|
|
|
REMOTE_PROC_DOMAIN_EVENT_BLOCK_PULL = 233 /* skipgen skipgen */
|
2011-05-29 12:21:53 +00:00
|
|
|
|
2011-05-05 13:35:40 +00:00
|
|
|
/*
|
|
|
|
* Notice how the entries are grouped in sets of 10 ?
|
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
|
|
|
* Nice isn't it. Please keep it this way when adding more.
|
2011-05-21 09:24:28 +00:00
|
|
|
*
|
|
|
|
* Each function must have a two-word comment. The first word is
|
2011-05-11 19:28:39 +00:00
|
|
|
* whether remote_generator.pl handles daemon, the second whether
|
2011-05-21 09:24:28 +00:00
|
|
|
* it handles src/remote. Additional flags can be specified after a
|
|
|
|
* pipe.
|
|
|
|
*
|
|
|
|
* The (readstream|writestream)@<offset> flag lets 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
|
|
|
|
* <offset> specifies at which offset the stream parameter is inserted
|
|
|
|
* in the function parameter list. */
|
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
|
|
|
};
|
|
|
|
|
2009-07-10 12:02:08 +00:00
|
|
|
/*
|
|
|
|
* RPC wire format
|
|
|
|
*
|
|
|
|
* Each message consists of:
|
|
|
|
*
|
|
|
|
* Name | Type | Description
|
|
|
|
* -----------+-----------------------+------------------
|
|
|
|
* Length | int | Total number of bytes in message _including_ length.
|
|
|
|
* Header | remote_message_header | Control information about procedure call
|
|
|
|
* Payload | - | Variable payload data per procedure
|
|
|
|
*
|
|
|
|
* In header, the 'serial' field varies according to:
|
|
|
|
*
|
|
|
|
* - type == REMOTE_CALL
|
|
|
|
* * serial is set by client, incrementing by 1 each time
|
|
|
|
*
|
|
|
|
* - type == REMOTE_REPLY
|
|
|
|
* * serial matches that from the corresponding REMOTE_CALL
|
|
|
|
*
|
|
|
|
* - type == REMOTE_MESSAGE
|
2009-07-10 12:06:36 +00:00
|
|
|
* * serial is always zero
|
|
|
|
*
|
|
|
|
* - type == REMOTE_STREAM
|
|
|
|
* * serial matches that from the corresponding REMOTE_CALL
|
2009-07-10 12:02:08 +00:00
|
|
|
*
|
2009-07-10 12:06:36 +00:00
|
|
|
* and the 'status' field varies according to:
|
|
|
|
*
|
|
|
|
* - type == REMOTE_CALL
|
|
|
|
* * REMOTE_OK always
|
|
|
|
*
|
|
|
|
* - type == REMOTE_REPLY
|
|
|
|
* * REMOTE_OK if RPC finished successfully
|
|
|
|
* * REMOTE_ERROR if something failed
|
|
|
|
*
|
|
|
|
* - type == REMOTE_MESSAGE
|
|
|
|
* * REMOTE_OK always
|
|
|
|
*
|
|
|
|
* - type == REMOTE_STREAM
|
|
|
|
* * REMOTE_CONTINUE if more data is following
|
|
|
|
* * REMOTE_OK if stream is complete
|
|
|
|
* * REMOTE_ERROR if stream had an error
|
2009-07-10 12:02:08 +00:00
|
|
|
*
|
|
|
|
* Payload varies according to type and status:
|
|
|
|
*
|
|
|
|
* - type == REMOTE_CALL
|
|
|
|
* XXX_args for procedure
|
|
|
|
*
|
|
|
|
* - type == REMOTE_REPLY
|
|
|
|
* * status == REMOTE_OK
|
|
|
|
* XXX_ret for procedure
|
|
|
|
* * status == REMOTE_ERROR
|
|
|
|
* remote_error Error information
|
|
|
|
*
|
|
|
|
* - type == REMOTE_MESSAGE
|
|
|
|
* * status == REMOTE_OK
|
|
|
|
* XXX_args for procedure
|
|
|
|
* * status == REMOTE_ERROR
|
|
|
|
* remote_error Error information
|
2007-06-11 11:36:17 +00:00
|
|
|
*
|
2009-07-10 12:06:36 +00:00
|
|
|
* - type == REMOTE_STREAM
|
|
|
|
* * status == REMOTE_CONTINUE
|
|
|
|
* byte[] raw stream data
|
|
|
|
* * status == REMOTE_ERROR
|
|
|
|
* remote_error error information
|
|
|
|
* * status == REMOTE_OK
|
|
|
|
* <empty>
|
2007-06-11 11:36:17 +00:00
|
|
|
*/
|
2009-07-10 12:02:08 +00:00
|
|
|
enum remote_message_type {
|
|
|
|
/* client -> server. args from a method call */
|
|
|
|
REMOTE_CALL = 0,
|
|
|
|
/* server -> client. reply/error from a method call */
|
|
|
|
REMOTE_REPLY = 1,
|
|
|
|
/* either direction. async notification */
|
2009-07-10 12:06:36 +00:00
|
|
|
REMOTE_MESSAGE = 2,
|
|
|
|
/* either direction. stream data packet */
|
|
|
|
REMOTE_STREAM = 3
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum remote_message_status {
|
|
|
|
/* Status is always REMOTE_OK for calls.
|
|
|
|
* For replies, indicates no error.
|
|
|
|
*/
|
|
|
|
REMOTE_OK = 0,
|
|
|
|
|
|
|
|
/* For replies, indicates that an error happened, and a struct
|
|
|
|
* remote_error follows.
|
|
|
|
*/
|
2009-07-10 12:06:36 +00:00
|
|
|
REMOTE_ERROR = 1,
|
|
|
|
|
|
|
|
/* For streams, indicates that more data is still expected
|
|
|
|
*/
|
|
|
|
REMOTE_CONTINUE = 2
|
2007-06-11 11:36:17 +00:00
|
|
|
};
|
|
|
|
|
2007-11-17 11:17:48 +00:00
|
|
|
/* 4 byte length word per header */
|
|
|
|
const REMOTE_MESSAGE_HEADER_XDR_LEN = 4;
|
|
|
|
|
2007-06-11 11:36:17 +00:00
|
|
|
struct remote_message_header {
|
|
|
|
unsigned prog; /* REMOTE_PROGRAM */
|
|
|
|
unsigned vers; /* REMOTE_PROTOCOL_VERSION */
|
2010-04-17 02:09:25 +00:00
|
|
|
int proc; /* REMOTE_PROC_x */
|
2009-07-10 12:02:08 +00:00
|
|
|
remote_message_type type;
|
2007-06-11 11:36:17 +00:00
|
|
|
unsigned serial; /* Serial number of message. */
|
|
|
|
remote_message_status status;
|
|
|
|
};
|