remote_protocol.x 107.3 KB
Newer Older
1 2 3 4 5
/* -*- c -*-
 * remote_protocol.x: private protocol for communicating between
 *   remote_internal driver and libvirtd.  This protocol is
 *   internal and may change at any time.
 *
6
 * Copyright (C) 2006-2013 Red Hat, Inc.
7 8 9 10 11 12 13 14 15 16 17 18
 *
 * 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
19
 * License along with this library.  If not, see
20
 * <http://www.gnu.org/licenses/>.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
 *
 * 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.
 */

39
%#include <libvirt/libvirt.h>
40
%#include "internal.h"
41
%#include <arpa/inet.h>
42

43 44 45 46 47 48 49 50 51 52 53 54
/* 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
S
Stefan Berger 已提交
55 56 57 58 59 60
%#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
61

62 63 64 65 66 67
/*----- Data types. -----*/

/* Length of long, but not unbounded, strings.
 * This is an arbitrary limit designed to stop the decoder from trying
 * to allocate unbounded amounts of memory when fed with a bad message.
 */
68
const REMOTE_STRING_MAX = 4194304;
69 70 71 72 73 74 75 76 77 78 79 80 81

/* 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. */
M
Michal Privoznik 已提交
82
const REMOTE_DOMAIN_NAME_LIST_MAX = 16384;
83 84

/* Upper limit on cpumap (bytes) passed to virDomainPinVcpu. */
85
const REMOTE_CPUMAP_MAX = 2048;
86 87

/* Upper limit on number of info fields returned by virDomainGetVcpus. */
88
const REMOTE_VCPUINFO_MAX = 16384;
89 90

/* Upper limit on cpumaps (bytes) passed to virDomainGetVcpus. */
91
const REMOTE_CPUMAPS_MAX = 8388608;
92

93
/* Upper limit on migrate cookie. */
94
const REMOTE_MIGRATE_COOKIE_MAX = 16384;
95

96
/* Upper limit on lists of network names. */
M
Michal Privoznik 已提交
97
const REMOTE_NETWORK_NAME_LIST_MAX = 16384;
98

D
Daniel Veillard 已提交
99
/* Upper limit on lists of interface names. */
M
Michal Privoznik 已提交
100
const REMOTE_INTERFACE_NAME_LIST_MAX = 16384;
D
Daniel Veillard 已提交
101

102
/* Upper limit on lists of defined interface names. */
M
Michal Privoznik 已提交
103
const REMOTE_DEFINED_INTERFACE_NAME_LIST_MAX = 16384;
104

105
/* Upper limit on lists of storage pool names. */
M
Michal Privoznik 已提交
106
const REMOTE_STORAGE_POOL_NAME_LIST_MAX = 4096;
107 108

/* Upper limit on lists of storage vol names. */
M
Michal Privoznik 已提交
109
const REMOTE_STORAGE_VOL_NAME_LIST_MAX = 16384;
110

111 112 113 114
/* Upper limit on lists of node device names. */
const REMOTE_NODE_DEVICE_NAME_LIST_MAX = 16384;

/* Upper limit on lists of node device capabilities. */
M
Michal Privoznik 已提交
115
const REMOTE_NODE_DEVICE_CAPS_LIST_MAX = 65536;
116

117 118 119
/* Upper limit on lists of network filter names. */
const REMOTE_NWFILTER_NAME_LIST_MAX = 1024;

120 121 122
/* Upper limit on list of scheduler parameters. */
const REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX = 16;

123 124 125
/* Upper limit on list of blkio parameters. */
const REMOTE_DOMAIN_BLKIO_PARAMETERS_MAX = 16;

126 127 128
/* Upper limit on list of memory parameters. */
const REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX = 16;

129 130 131
/* Upper limit on list of blockio tuning parameters. */
const REMOTE_DOMAIN_BLOCK_IO_TUNE_PARAMETERS_MAX = 16;

132 133 134
/* Upper limit on list of numa parameters. */
const REMOTE_DOMAIN_NUMA_PARAMETERS_MAX = 16;

135 136 137
/* Upper limit on list of node cpu stats. */
const REMOTE_NODE_CPU_STATS_MAX = 16;

138 139 140
/* Upper limit on list of node memory stats. */
const REMOTE_NODE_MEMORY_STATS_MAX = 16;

141 142 143
/* Upper limit on list of block stats. */
const REMOTE_DOMAIN_BLOCK_STATS_PARAMETERS_MAX = 16;

144 145 146
/* Upper limit on number of NUMA cells */
const REMOTE_NODE_MAX_CELLS = 1024;

147 148 149 150 151 152
/* 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;

153 154 155
/* Upper limit on list of memory stats */
const REMOTE_DOMAIN_MEMORY_STATS_MAX = 1024;

C
Chris Lalancette 已提交
156 157 158
/* Upper limit on lists of domain snapshots. */
const REMOTE_DOMAIN_SNAPSHOT_LIST_NAMES_MAX = 1024;

R
Richard W.M. Jones 已提交
159
/* Maximum length of a block peek buffer message.
160 161 162
 * Note applications need to be aware of this limit and issue multiple
 * requests for large amounts of data.
 */
163
const REMOTE_DOMAIN_BLOCK_PEEK_BUFFER_MAX = 4194304;
164

R
Richard W.M. Jones 已提交
165 166 167 168
/* 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.
 */
169
const REMOTE_DOMAIN_MEMORY_PEEK_BUFFER_MAX = 4194304;
R
Richard W.M. Jones 已提交
170

M
Marcelo Cerri 已提交
171 172 173 174 175
/*
 * Maximum length of a security label list.
 */
const REMOTE_SECURITY_LABEL_LIST_MAX=64;

176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
/*
 * 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;

191 192 193 194 195 196 197 198 199 200
/*
 * 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;

201 202 203 204 205
/*
 * Upper limit on list of CPUs accepted when computing a baseline CPU.
 */
const REMOTE_CPU_BASELINE_MAX = 256;

206 207 208 209 210
/*
 * Max number of sending keycodes.
 */
const REMOTE_DOMAIN_SEND_KEY_MAX = 16;

211 212 213 214 215
/*
 * Upper limit on list of interface parameters
 */
const REMOTE_DOMAIN_INTERFACE_PARAMETERS_MAX = 16;

216 217 218 219 220 221 222 223 224 225 226
/*
 * Upper limit on cpus involved in per-cpu stats
 */
const REMOTE_DOMAIN_GET_CPU_STATS_NCPUS_MAX = 128;

/*
 * Upper limit on list of per-cpu stats:
 *  REMOTE_NODE_CPU_STATS_MAX * REMOTE_DOMAIN_GET_CPU_STATS_MAX
 */
const REMOTE_DOMAIN_GET_CPU_STATS_MAX = 2048;

227 228 229 230 231
/*
 * Upper limit on number of disks with errors
 */
const REMOTE_DOMAIN_DISK_ERRORS_MAX = 256;

232 233 234 235 236
/*
 * Upper limit on number of memory parameters
 */
const REMOTE_NODE_MEMORY_PARAMETERS_MAX = 64;

237 238 239
/* Upper limit on migrate parameters */
const REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX = 64;

240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
/* 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;
};

256 257 258 259 260 261
/* A network filter which may not be NULL. */
struct remote_nonnull_nwfilter {
    remote_nonnull_string name;
    remote_uuid uuid;
};

D
Daniel Veillard 已提交
262 263 264 265 266 267
/* An interface which may not be NULL. */
struct remote_nonnull_interface {
    remote_nonnull_string name;
    remote_nonnull_string mac;
};

268 269 270 271 272 273 274 275 276 277 278 279 280
/* 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;
};

281 282 283 284 285
/* A node device which may not be NULL. */
struct remote_nonnull_node_device {
    remote_nonnull_string name;
};

286 287
/* A secret which may not be null. */
struct remote_nonnull_secret {
288
    remote_uuid uuid;
289 290
    int usageType;
    remote_nonnull_string usageID;
291 292
};

C
Chris Lalancette 已提交
293 294 295
/* A snapshot which may not be NULL. */
struct remote_nonnull_domain_snapshot {
    remote_nonnull_string name;
296
    remote_nonnull_domain dom;
C
Chris Lalancette 已提交
297 298
};

299 300 301
/* A domain or network which may be NULL. */
typedef remote_nonnull_domain *remote_domain;
typedef remote_nonnull_network *remote_network;
302
typedef remote_nonnull_nwfilter *remote_nwfilter;
303 304
typedef remote_nonnull_storage_pool *remote_storage_pool;
typedef remote_nonnull_storage_vol *remote_storage_vol;
305
typedef remote_nonnull_node_device *remote_node_device;
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328

/* 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;
};

329 330 331
/* Authentication types available thus far.... */
enum remote_auth_type {
    REMOTE_AUTH_NONE = 0,
332 333
    REMOTE_AUTH_SASL = 1,
    REMOTE_AUTH_POLKIT = 2
334 335 336
};


337 338 339 340 341 342 343 344
/* Wire encoding of virVcpuInfo. */
struct remote_vcpu_info {
    unsigned int number;
    int state;
    unsigned hyper cpu_time;
    int cpu;
};

345
/* Wire encoding of virTypedParameter.
346 347
 * Note the enum (type) which must remain binary compatible.
 */
348 349
union remote_typed_param_value switch (int type) {
 case VIR_TYPED_PARAM_INT:
350
     int i;
351
 case VIR_TYPED_PARAM_UINT:
352
     unsigned int ui;
353
 case VIR_TYPED_PARAM_LLONG:
354
     hyper l;
355
 case VIR_TYPED_PARAM_ULLONG:
356
     unsigned hyper ul;
357
 case VIR_TYPED_PARAM_DOUBLE:
358
     double d;
359
 case VIR_TYPED_PARAM_BOOLEAN:
360
     int b;
361 362
 case VIR_TYPED_PARAM_STRING:
     remote_nonnull_string s;
363 364
};

365
struct remote_typed_param {
366
    remote_nonnull_string field;
367
    remote_typed_param_value value;
368 369
};

370 371 372 373 374
struct remote_node_get_cpu_stats {
    remote_nonnull_string field;
    unsigned hyper value;
};

375 376 377 378 379
struct remote_node_get_memory_stats {
    remote_nonnull_string field;
    unsigned hyper value;
};

380 381 382 383
struct remote_domain_disk_error {
    remote_nonnull_string disk;
    int error;
};
384

385 386 387 388 389 390 391 392
/*----- 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
393
 * parsed by 'gendispatch.pl'.
394 395 396
 *
 * '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
397 398 399 400 401
 * 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
402 403 404 405
 * the function to be called.
 *
 * Dynamic opaque and remote_nonnull_string arrays can be annotated with an
 * optional typecast */
406

407
struct remote_connect_open_args {
408 409 410 411
    /* NB. "name" might be NULL although in practice you can't
     * yet do that using the remote_internal driver.
     */
    remote_string name;
412
    unsigned int flags;
413 414
};

415
struct remote_connect_supports_feature_args {
416 417 418
    int feature;
};

419
struct remote_connect_supports_feature_ret {
420 421 422
    int supported;
};

423
struct remote_connect_get_type_ret {
424 425 426
    remote_nonnull_string type;
};

427
struct remote_connect_get_version_ret {
428
    unsigned hyper hv_ver;
429 430
};

431
struct remote_connect_get_lib_version_ret {
432
    unsigned hyper lib_ver;
433 434
};

435
struct remote_connect_get_hostname_ret {
436 437 438
    remote_nonnull_string hostname;
};

439
struct remote_connect_get_sysinfo_args {
440 441 442
    unsigned int flags;
};

443
struct remote_connect_get_sysinfo_ret {
444 445 446
    remote_nonnull_string sysinfo;
};

447
struct remote_connect_get_uri_ret {
448 449 450
    remote_nonnull_string uri;
};

451
struct remote_connect_get_max_vcpus_args {
452 453 454 455 456 457
    /* The only backend which supports this call is Xen HV, and
     * there the type is ignored so it could be NULL.
     */
    remote_string type;
};

458
struct remote_connect_get_max_vcpus_ret {
459 460 461
    int max_vcpus;
};

462
struct remote_node_get_info_ret { /* insert@1 */
463
    char model[32];
464
    unsigned hyper memory;
465 466 467 468 469 470 471 472
    int cpus;
    int mhz;
    int nodes;
    int sockets;
    int cores;
    int threads;
};

473
struct remote_connect_get_capabilities_ret {
474 475 476
    remote_nonnull_string capabilities;
};

477 478 479 480 481 482 483 484 485 486 487
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;
};

488 489 490 491 492 493 494 495 496 497 498
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;
};

499 500
struct remote_node_get_cells_free_memory_args {
    int startCell;
501
    int maxcells;
502 503 504
};

struct remote_node_get_cells_free_memory_ret {
505
    unsigned hyper cells<REMOTE_NODE_MAX_CELLS>; /* insert@1 */
506 507 508
};

struct remote_node_get_free_memory_ret {
509
    unsigned hyper freeMem;
510 511
};

512 513 514 515 516 517 518 519 520 521 522
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;
523
    int nparams; /* call-by-reference */
524 525 526
};

struct remote_domain_get_scheduler_parameters_ret {
527
    remote_typed_param params<REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX>; /* insert@1 */
528 529
};

530 531
struct remote_domain_get_scheduler_parameters_flags_args {
    remote_nonnull_domain dom;
532
    int nparams; /* call-by-reference */
533 534 535 536
    unsigned int flags;
};

struct remote_domain_get_scheduler_parameters_flags_ret {
537
    remote_typed_param params<REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX>; /* insert@1 */
538 539
};

540 541
struct remote_domain_set_scheduler_parameters_args {
    remote_nonnull_domain dom;
542
    remote_typed_param params<REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX>;
543 544
};

545 546
struct remote_domain_set_scheduler_parameters_flags_args {
    remote_nonnull_domain dom;
547
    remote_typed_param params<REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX>;
548 549 550
    unsigned int flags;
};

551 552
struct remote_domain_set_blkio_parameters_args {
    remote_nonnull_domain dom;
553
    remote_typed_param params<REMOTE_DOMAIN_BLKIO_PARAMETERS_MAX>;
554 555 556 557 558 559 560 561 562 563
    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 {
564
    remote_typed_param params<REMOTE_DOMAIN_BLKIO_PARAMETERS_MAX>;
565 566 567
    int nparams;
};

568 569
struct remote_domain_set_memory_parameters_args {
    remote_nonnull_domain dom;
570
    remote_typed_param params<REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX>;
571 572 573 574 575 576 577 578 579 580
    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 {
581
    remote_typed_param params<REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX>;
582 583 584
    int nparams;
};

585 586 587 588 589 590 591
struct remote_domain_block_resize_args {
    remote_nonnull_domain dom;
    remote_nonnull_string disk;
    unsigned hyper size;
    unsigned int flags;
};

592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608
struct remote_domain_set_numa_parameters_args {
    remote_nonnull_domain dom;
    remote_typed_param params<REMOTE_DOMAIN_NUMA_PARAMETERS_MAX>;
    unsigned int flags;
};

struct remote_domain_get_numa_parameters_args {
    remote_nonnull_domain dom;
    int nparams;
    unsigned int flags;
};

struct remote_domain_get_numa_parameters_ret {
    remote_typed_param params<REMOTE_DOMAIN_NUMA_PARAMETERS_MAX>;
    int nparams;
};

609 610 611 612 613
struct remote_domain_block_stats_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
};

614
struct remote_domain_block_stats_ret { /* insert@2 */
615 616 617 618 619 620 621
    hyper rd_req;
    hyper rd_bytes;
    hyper wr_req;
    hyper wr_bytes;
    hyper errs;
};

622 623 624 625 626 627 628 629 630 631 632 633
struct remote_domain_block_stats_flags_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
    int nparams;
    unsigned int flags;
};

struct remote_domain_block_stats_flags_ret {
    remote_typed_param params<REMOTE_DOMAIN_BLOCK_STATS_PARAMETERS_MAX>;
    int nparams;
};

634 635 636 637 638
struct remote_domain_interface_stats_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
};

639
struct remote_domain_interface_stats_ret { /* insert@2 */
640 641 642 643 644 645 646 647 648 649
    hyper rx_bytes;
    hyper rx_packets;
    hyper rx_errs;
    hyper rx_drop;
    hyper tx_bytes;
    hyper tx_packets;
    hyper tx_errs;
    hyper tx_drop;
};

650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668
struct remote_domain_set_interface_parameters_args {
    remote_nonnull_domain dom;
    remote_nonnull_string device;
    remote_typed_param params<REMOTE_DOMAIN_INTERFACE_PARAMETERS_MAX>;
    unsigned int flags;
};

struct remote_domain_get_interface_parameters_args {
    remote_nonnull_domain dom;
    remote_nonnull_string device;
    int nparams;
    unsigned int flags;
};

struct remote_domain_get_interface_parameters_ret {
    remote_typed_param params<REMOTE_DOMAIN_INTERFACE_PARAMETERS_MAX>;
    int nparams;
};

669
struct remote_domain_memory_stats_args {
670
    remote_nonnull_domain dom;
671 672
    unsigned int maxStats;
    unsigned int flags;
673 674 675 676 677 678 679 680 681 682 683
};

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>;
};

684 685 686 687
struct remote_domain_block_peek_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
    unsigned hyper offset;
688 689
    unsigned int size;
    unsigned int flags;
690 691 692 693 694 695
};

struct remote_domain_block_peek_ret {
    opaque buffer<REMOTE_DOMAIN_BLOCK_PEEK_BUFFER_MAX>;
};

R
Richard W.M. Jones 已提交
696 697 698
struct remote_domain_memory_peek_args {
    remote_nonnull_domain dom;
    unsigned hyper offset;
699 700
    unsigned int size;
    unsigned int flags;
R
Richard W.M. Jones 已提交
701 702 703 704 705 706
};

struct remote_domain_memory_peek_ret {
    opaque buffer<REMOTE_DOMAIN_MEMORY_PEEK_BUFFER_MAX>;
};

707 708 709
struct remote_domain_get_block_info_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
710
    unsigned int flags;
711 712
};

713
struct remote_domain_get_block_info_ret { /* insert@2 */
714 715 716 717 718
    unsigned hyper allocation;
    unsigned hyper capacity;
    unsigned hyper physical;
};

719
struct remote_connect_list_domains_args {
720 721 722
    int maxids;
};

723
struct remote_connect_list_domains_ret {
724
    int ids<REMOTE_DOMAIN_ID_LIST_MAX>; /* insert@1 */
725 726
};

727
struct remote_connect_num_of_domains_ret {
728 729 730
    int num;
};

731
struct remote_domain_create_xml_args {
732
    remote_nonnull_string xml_desc;
733
    unsigned int flags;
734 735
};

736
struct remote_domain_create_xml_ret {
737 738 739
    remote_nonnull_domain dom;
};

740 741 742 743 744 745 746 747 748
struct remote_domain_create_xml_with_files_args {
    remote_nonnull_string xml_desc;
    unsigned int flags;
};

struct remote_domain_create_xml_with_files_ret {
    remote_nonnull_domain dom;
};

749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776
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;
};

777 778 779 780
struct remote_domain_resume_args {
    remote_nonnull_domain dom;
};

781 782 783 784 785 786 787
struct remote_domain_pm_suspend_for_duration_args {
    remote_nonnull_domain dom;
    unsigned int target;
    unsigned hyper duration;
    unsigned int flags;
};

788
struct remote_domain_pm_wakeup_args {
789
    remote_nonnull_domain dom;
790
    unsigned int flags;
791 792 793 794 795 796 797 798
};

struct remote_domain_shutdown_args {
    remote_nonnull_domain dom;
};

struct remote_domain_reboot_args {
    remote_nonnull_domain dom;
799
    unsigned int flags;
800 801
};

802 803 804 805 806
struct remote_domain_reset_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

807 808 809 810
struct remote_domain_destroy_args {
    remote_nonnull_domain dom;
};

811 812 813 814 815
struct remote_domain_destroy_flags_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841
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;
};

842 843 844 845 846 847
struct remote_domain_set_memory_flags_args {
    remote_nonnull_domain dom;
    unsigned hyper memory;
    unsigned int flags;
};

848 849 850 851 852 853
struct remote_domain_set_memory_stats_period_args {
    remote_nonnull_domain dom;
    int period;
    unsigned int flags;
};

854 855 856 857
struct remote_domain_get_info_args {
    remote_nonnull_domain dom;
};

858
struct remote_domain_get_info_ret { /* insert@1 */
859
    unsigned char state;
860
    unsigned hyper maxMem;
861
    unsigned hyper memory;
862 863
    unsigned short nrVirtCpu;
    unsigned hyper cpuTime;
864 865 866 867 868 869 870
};

struct remote_domain_save_args {
    remote_nonnull_domain dom;
    remote_nonnull_string to;
};

E
Eric Blake 已提交
871 872 873 874 875 876 877
struct remote_domain_save_flags_args {
    remote_nonnull_domain dom;
    remote_nonnull_string to;
    remote_string dxml;
    unsigned int flags;
};

878 879 880 881
struct remote_domain_restore_args {
    remote_nonnull_string from;
};

E
Eric Blake 已提交
882 883 884 885 886 887
struct remote_domain_restore_flags_args {
    remote_nonnull_string from;
    remote_string dxml;
    unsigned int flags;
};

E
Eric Blake 已提交
888 889 890 891 892 893 894 895 896 897 898 899 900 901 902
struct remote_domain_save_image_get_xml_desc_args {
    remote_nonnull_string file;
    unsigned int flags;
};

struct remote_domain_save_image_get_xml_desc_ret {
    remote_nonnull_string xml;
};

struct remote_domain_save_image_define_xml_args {
    remote_nonnull_string file;
    remote_nonnull_string dxml;
    unsigned int flags;
};

903 904 905
struct remote_domain_core_dump_args {
    remote_nonnull_domain dom;
    remote_nonnull_string to;
906
    unsigned int flags;
907 908
};

909 910 911 912 913 914 915 916 917 918
struct remote_domain_screenshot_args {
    remote_nonnull_domain dom;
    unsigned int screen;
    unsigned int flags;
};

struct remote_domain_screenshot_ret {
    remote_string mime;
};

919
struct remote_domain_get_xml_desc_args {
920
    remote_nonnull_domain dom;
921
    unsigned int flags;
922 923
};

924
struct remote_domain_get_xml_desc_ret {
925 926 927
    remote_nonnull_string xml;
};

928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959
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;
};

D
Daniel Veillard 已提交
960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984
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;
};

985
struct remote_connect_list_defined_domains_args {
986 987 988
    int maxnames;
};

989
struct remote_connect_list_defined_domains_ret {
990
    remote_nonnull_string names<REMOTE_DOMAIN_NAME_LIST_MAX>; /* insert@1 */
991 992
};

993
struct remote_connect_num_of_defined_domains_ret {
994 995 996 997 998 999 1000
    int num;
};

struct remote_domain_create_args {
    remote_nonnull_domain dom;
};

1001 1002 1003 1004 1005 1006 1007 1008 1009
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;
};

1010 1011 1012 1013 1014 1015 1016 1017 1018
struct remote_domain_create_with_files_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

struct remote_domain_create_with_files_ret {
    remote_nonnull_domain dom;
};

1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030
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;
};

1031 1032 1033 1034 1035
struct remote_domain_undefine_flags_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

1036 1037 1038 1039 1040
struct remote_domain_inject_nmi_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

1041 1042 1043 1044 1045 1046 1047 1048
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;
};

1049 1050 1051 1052 1053 1054 1055
struct remote_domain_send_process_signal_args {
    remote_nonnull_domain dom;
    hyper pid_value;
    unsigned int signum;
    unsigned int flags;
};

1056 1057
struct remote_domain_set_vcpus_args {
    remote_nonnull_domain dom;
1058
    unsigned int nvcpus;
1059 1060
};

E
Eric Blake 已提交
1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075
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;
};

1076 1077
struct remote_domain_pin_vcpu_args {
    remote_nonnull_domain dom;
1078
    unsigned int vcpu;
1079
    opaque cpumap<REMOTE_CPUMAP_MAX>; /* (unsigned char *) */
1080 1081
};

1082 1083 1084
struct remote_domain_pin_vcpu_flags_args {
    remote_nonnull_domain dom;
    unsigned int vcpu;
1085
    opaque cpumap<REMOTE_CPUMAP_MAX>; /* (unsigned char *) */
1086 1087 1088
    unsigned int flags;
};

E
Eric Blake 已提交
1089
struct remote_domain_get_vcpu_pin_info_args {
1090 1091 1092 1093 1094 1095
    remote_nonnull_domain dom;
    int ncpumaps;
    int maplen;
    unsigned int flags;
};

E
Eric Blake 已提交
1096
struct remote_domain_get_vcpu_pin_info_ret {
1097 1098 1099 1100
    opaque cpumaps<REMOTE_CPUMAPS_MAX>;
    int num;
};

1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117
struct remote_domain_pin_emulator_args {
    remote_nonnull_domain dom;
    opaque cpumap<REMOTE_CPUMAP_MAX>; /* (unsigned char *) */
    unsigned int flags;
};

struct remote_domain_get_emulator_pin_info_args {
    remote_nonnull_domain dom;
    int maplen;
    unsigned int flags;
};

struct remote_domain_get_emulator_pin_info_ret {
    opaque cpumaps<REMOTE_CPUMAPS_MAX>;
    int ret;
};

1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136
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;
};

1137 1138 1139 1140 1141 1142 1143 1144 1145
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;
};

M
Marcelo Cerri 已提交
1146 1147 1148 1149 1150 1151 1152 1153 1154
struct remote_domain_get_security_label_list_args {
    remote_nonnull_domain dom;
};

struct remote_domain_get_security_label_list_ret {
    remote_domain_get_security_label_ret labels<REMOTE_SECURITY_LABEL_LIST_MAX>;
    int ret;
};

1155 1156 1157 1158 1159
struct remote_node_get_security_model_ret {
    char model<REMOTE_SECURITY_MODEL_MAX>;
    char doi<REMOTE_SECURITY_DOI_MAX>;
};

1160 1161 1162 1163 1164
struct remote_domain_attach_device_args {
    remote_nonnull_domain dom;
    remote_nonnull_string xml;
};

J
Jim Fehlig 已提交
1165 1166 1167 1168 1169 1170
struct remote_domain_attach_device_flags_args {
    remote_nonnull_domain dom;
    remote_nonnull_string xml;
    unsigned int flags;
};

1171 1172 1173 1174 1175
struct remote_domain_detach_device_args {
    remote_nonnull_domain dom;
    remote_nonnull_string xml;
};

J
Jim Fehlig 已提交
1176 1177 1178 1179 1180 1181
struct remote_domain_detach_device_flags_args {
    remote_nonnull_domain dom;
    remote_nonnull_string xml;
    unsigned int flags;
};

1182 1183 1184 1185 1186 1187
struct remote_domain_update_device_flags_args {
    remote_nonnull_domain dom;
    remote_nonnull_string xml;
    unsigned int flags;
};

1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200
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;
};

1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220
struct remote_domain_set_metadata_args {
    remote_nonnull_domain dom;
    int type;
    remote_string metadata;
    remote_string key;
    remote_string uri;
    unsigned int flags;
};

struct remote_domain_get_metadata_args {
    remote_nonnull_domain dom;
    int type;
    remote_string uri;
    unsigned int flags;
};

struct remote_domain_get_metadata_ret {
    remote_nonnull_string metadata;
};

1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253
struct remote_domain_block_job_abort_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
    unsigned int flags;
};

struct remote_domain_get_block_job_info_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
    unsigned int flags;
};

struct remote_domain_get_block_job_info_ret {
    int found;
    int type;
    unsigned hyper bandwidth;
    unsigned hyper cur;
    unsigned hyper end;
};

struct remote_domain_block_job_set_speed_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
    unsigned hyper bandwidth;
    unsigned int flags;
};

struct remote_domain_block_pull_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
    unsigned hyper bandwidth;
    unsigned int flags;
};
1254 1255 1256 1257 1258 1259 1260
struct remote_domain_block_rebase_args {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
    remote_string base;
    unsigned hyper bandwidth;
    unsigned int flags;
};
1261 1262 1263 1264 1265 1266 1267 1268
struct remote_domain_block_commit_args {
    remote_nonnull_domain dom;
    remote_nonnull_string disk;
    remote_string base;
    remote_string top;
    unsigned hyper bandwidth;
    unsigned int flags;
};
1269

1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288
struct remote_domain_set_block_io_tune_args {
    remote_nonnull_domain dom;
    remote_nonnull_string disk;
    remote_typed_param params<REMOTE_DOMAIN_BLOCK_IO_TUNE_PARAMETERS_MAX>;
    unsigned int flags;
};

struct remote_domain_get_block_io_tune_args {
    remote_nonnull_domain dom;
    remote_string disk;
    int nparams;
    unsigned int flags;
};

struct remote_domain_get_block_io_tune_ret {
    remote_typed_param params<REMOTE_DOMAIN_BLOCK_IO_TUNE_PARAMETERS_MAX>;
    int nparams;
};

1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301
struct remote_domain_get_cpu_stats_args {
    remote_nonnull_domain dom;
    unsigned int nparams;
    int          start_cpu;
    unsigned int ncpus;
    unsigned int flags;
};

struct remote_domain_get_cpu_stats_ret {
    remote_typed_param params<REMOTE_DOMAIN_GET_CPU_STATS_MAX>;
    int nparams;
};

1302 1303 1304 1305 1306 1307 1308 1309 1310
struct remote_domain_get_hostname_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

struct remote_domain_get_hostname_ret {
    remote_nonnull_string hostname;
};

1311 1312
/* Network calls: */

1313
struct remote_connect_num_of_networks_ret {
1314 1315 1316
    int num;
};

1317
struct remote_connect_list_networks_args {
1318 1319 1320
    int maxnames;
};

1321
struct remote_connect_list_networks_ret {
1322
    remote_nonnull_string names<REMOTE_NETWORK_NAME_LIST_MAX>; /* insert@1 */
1323 1324
};

1325
struct remote_connect_num_of_defined_networks_ret {
1326 1327 1328
    int num;
};

1329
struct remote_connect_list_defined_networks_args {
1330 1331 1332
    int maxnames;
};

1333
struct remote_connect_list_defined_networks_ret {
1334
    remote_nonnull_string names<REMOTE_NETWORK_NAME_LIST_MAX>; /* insert@1 */
1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372
};

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;
};

1373 1374 1375 1376 1377 1378 1379 1380 1381
struct remote_network_update_args {
    remote_nonnull_network net;
    unsigned int command;
    unsigned int section;
    int parentIndex;
    remote_nonnull_string xml;
    unsigned int flags;
};

1382 1383 1384 1385 1386 1387 1388 1389
struct remote_network_create_args {
    remote_nonnull_network net;
};

struct remote_network_destroy_args {
    remote_nonnull_network net;
};

1390
struct remote_network_get_xml_desc_args {
1391
    remote_nonnull_network net;
1392
    unsigned int flags;
1393 1394
};

1395
struct remote_network_get_xml_desc_ret {
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419
    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;
};

1420 1421
/* network filter calls */

1422
struct remote_connect_num_of_nwfilters_ret {
1423 1424 1425
    int num;
};

1426
struct remote_connect_list_nwfilters_args {
1427 1428 1429
    int maxnames;
};

1430
struct remote_connect_list_nwfilters_ret {
1431
    remote_nonnull_string names<REMOTE_NWFILTER_NAME_LIST_MAX>; /* insert@1 */
1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463
};

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;
1464
    unsigned int flags;
1465 1466 1467 1468 1469 1470
};

struct remote_nwfilter_get_xml_desc_ret {
    remote_nonnull_string xml;
};

1471

D
Daniel Veillard 已提交
1472 1473
/* Interface calls: */

1474
struct remote_connect_num_of_interfaces_ret {
D
Daniel Veillard 已提交
1475 1476 1477
    int num;
};

1478
struct remote_connect_list_interfaces_args {
D
Daniel Veillard 已提交
1479 1480 1481
    int maxnames;
};

1482
struct remote_connect_list_interfaces_ret {
1483
    remote_nonnull_string names<REMOTE_INTERFACE_NAME_LIST_MAX>; /* insert@1 */
D
Daniel Veillard 已提交
1484 1485
};

1486
struct remote_connect_num_of_defined_interfaces_ret {
1487 1488 1489
    int num;
};

1490
struct remote_connect_list_defined_interfaces_args {
1491 1492 1493
    int maxnames;
};

1494
struct remote_connect_list_defined_interfaces_ret {
1495
    remote_nonnull_string names<REMOTE_DEFINED_INTERFACE_NAME_LIST_MAX>; /* insert@1 */
1496 1497
};

D
Daniel Veillard 已提交
1498 1499 1500 1501 1502
struct remote_interface_lookup_by_name_args {
    remote_nonnull_string name;
};

struct remote_interface_lookup_by_name_ret {
1503
    remote_nonnull_interface iface;
D
Daniel Veillard 已提交
1504 1505 1506 1507 1508 1509 1510
};

struct remote_interface_lookup_by_mac_string_args {
    remote_nonnull_string mac;
};

struct remote_interface_lookup_by_mac_string_ret {
1511
    remote_nonnull_interface iface;
D
Daniel Veillard 已提交
1512 1513 1514
};

struct remote_interface_get_xml_desc_args {
1515
    remote_nonnull_interface iface;
D
Daniel Veillard 已提交
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528
    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 {
1529
    remote_nonnull_interface iface;
D
Daniel Veillard 已提交
1530 1531 1532
};

struct remote_interface_undefine_args {
1533
    remote_nonnull_interface iface;
D
Daniel Veillard 已提交
1534 1535 1536
};

struct remote_interface_create_args {
1537
    remote_nonnull_interface iface;
D
Daniel Veillard 已提交
1538 1539 1540 1541
    unsigned int flags;
};

struct remote_interface_destroy_args {
1542
    remote_nonnull_interface iface;
D
Daniel Veillard 已提交
1543 1544 1545
    unsigned int flags;
};

1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557
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;
};

D
Daniel Veillard 已提交
1558 1559 1560

/* Auth calls: */

1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591
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>;
};

1592 1593 1594 1595
struct remote_auth_polkit_ret {
    int complete;
};

1596 1597 1598 1599


/* Storage pool calls: */

1600
struct remote_connect_num_of_storage_pools_ret {
1601 1602 1603
    int num;
};

1604
struct remote_connect_list_storage_pools_args {
1605 1606 1607
    int maxnames;
};

1608
struct remote_connect_list_storage_pools_ret {
1609
    remote_nonnull_string names<REMOTE_STORAGE_POOL_NAME_LIST_MAX>; /* insert@1 */
1610 1611
};

1612
struct remote_connect_num_of_defined_storage_pools_ret {
1613 1614 1615
    int num;
};

1616
struct remote_connect_list_defined_storage_pools_args {
1617 1618 1619
    int maxnames;
};

1620
struct remote_connect_list_defined_storage_pools_ret {
1621
    remote_nonnull_string names<REMOTE_STORAGE_POOL_NAME_LIST_MAX>; /* insert@1 */
1622 1623
};

1624
struct remote_connect_find_storage_pool_sources_args {
1625 1626
    remote_nonnull_string type;
    remote_string srcSpec;
1627
    unsigned int flags;
1628 1629
};

1630
struct remote_connect_find_storage_pool_sources_ret {
1631 1632 1633
    remote_nonnull_string xml;
};

1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659
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;
1660
    unsigned int flags;
1661 1662 1663 1664 1665 1666 1667 1668
};

struct remote_storage_pool_create_xml_ret {
    remote_nonnull_storage_pool pool;
};

struct remote_storage_pool_define_xml_args {
    remote_nonnull_string xml;
1669
    unsigned int flags;
1670 1671 1672 1673 1674 1675 1676 1677
};

struct remote_storage_pool_define_xml_ret {
    remote_nonnull_storage_pool pool;
};

struct remote_storage_pool_build_args {
    remote_nonnull_storage_pool pool;
1678
    unsigned int flags;
1679 1680 1681 1682 1683 1684 1685 1686
};

struct remote_storage_pool_undefine_args {
    remote_nonnull_storage_pool pool;
};

struct remote_storage_pool_create_args {
    remote_nonnull_storage_pool pool;
1687
    unsigned int flags;
1688 1689 1690 1691 1692 1693 1694 1695
};

struct remote_storage_pool_destroy_args {
    remote_nonnull_storage_pool pool;
};

struct remote_storage_pool_delete_args {
    remote_nonnull_storage_pool pool;
1696
    unsigned int flags;
1697 1698 1699 1700
};

struct remote_storage_pool_refresh_args {
    remote_nonnull_storage_pool pool;
1701
    unsigned int flags;
1702 1703
};

1704
struct remote_storage_pool_get_xml_desc_args {
1705
    remote_nonnull_storage_pool pool;
1706
    unsigned int flags;
1707 1708
};

1709
struct remote_storage_pool_get_xml_desc_ret {
1710 1711 1712 1713 1714 1715 1716
    remote_nonnull_string xml;
};

struct remote_storage_pool_get_info_args {
    remote_nonnull_storage_pool pool;
};

1717
struct remote_storage_pool_get_info_ret { /* insert@1 */
1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750
    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 {
1751
    remote_nonnull_string names<REMOTE_STORAGE_VOL_NAME_LIST_MAX>; /* insert@1 */
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785
};



/* 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;
1786
    unsigned int flags;
1787 1788 1789 1790 1791 1792
};

struct remote_storage_vol_create_xml_ret {
    remote_nonnull_storage_vol vol;
};

1793 1794 1795 1796
struct remote_storage_vol_create_xml_from_args {
    remote_nonnull_storage_pool pool;
    remote_nonnull_string xml;
    remote_nonnull_storage_vol clonevol;
1797
    unsigned int flags;
1798 1799 1800 1801 1802 1803
};

struct remote_storage_vol_create_xml_from_ret {
    remote_nonnull_storage_vol vol;
};

1804 1805
struct remote_storage_vol_delete_args {
    remote_nonnull_storage_vol vol;
1806
    unsigned int flags;
1807 1808
};

1809 1810
struct remote_storage_vol_wipe_args {
    remote_nonnull_storage_vol vol;
1811
    unsigned int flags;
1812 1813
};

1814 1815 1816 1817 1818 1819
struct remote_storage_vol_wipe_pattern_args {
    remote_nonnull_storage_vol vol;
    unsigned int algorithm;
    unsigned int flags;
};

1820
struct remote_storage_vol_get_xml_desc_args {
1821
    remote_nonnull_storage_vol vol;
1822
    unsigned int flags;
1823 1824
};

1825
struct remote_storage_vol_get_xml_desc_ret {
1826 1827 1828 1829 1830 1831 1832
    remote_nonnull_string xml;
};

struct remote_storage_vol_get_info_args {
    remote_nonnull_storage_vol vol;
};

1833
struct remote_storage_vol_get_info_ret { /* insert@1 */
1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846
    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;
};

1847 1848
struct remote_storage_vol_resize_args {
    remote_nonnull_storage_vol vol;
E
Eric Blake 已提交
1849
    unsigned hyper capacity;
1850 1851 1852
    unsigned int flags;
};

1853 1854 1855 1856
/* Node driver calls: */

struct remote_node_num_of_devices_args {
    remote_string cap;
1857
    unsigned int flags;
1858 1859 1860 1861 1862 1863 1864 1865 1866
};

struct remote_node_num_of_devices_ret {
    int num;
};

struct remote_node_list_devices_args {
    remote_string cap;
    int maxnames;
1867
    unsigned int flags;
1868 1869 1870
};

struct remote_node_list_devices_ret {
1871
    remote_nonnull_string names<REMOTE_NODE_DEVICE_NAME_LIST_MAX>; /* insert@2 */
1872 1873 1874 1875 1876 1877 1878 1879 1880 1881
};

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;
};

O
Osier Yang 已提交
1882 1883 1884 1885 1886 1887 1888 1889 1890 1891
struct remote_node_device_lookup_scsi_host_by_wwn_args {
    remote_nonnull_string wwnn;
    remote_nonnull_string wwpn;
    unsigned int flags;
};

struct remote_node_device_lookup_scsi_host_by_wwn_ret {
    remote_nonnull_node_device dev;
};

1892
struct remote_node_device_get_xml_desc_args {
1893
    remote_nonnull_string name;
1894
    unsigned int flags;
1895 1896
};

1897
struct remote_node_device_get_xml_desc_ret {
1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922
    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 {
1923
    remote_nonnull_string names<REMOTE_NODE_DEVICE_CAPS_LIST_MAX>; /* insert@1 */
1924 1925
};

1926 1927 1928 1929
struct remote_node_device_dettach_args {
    remote_nonnull_string name;
};

1930 1931 1932 1933 1934 1935
struct remote_node_device_detach_flags_args {
    remote_nonnull_string name;
    remote_string driverName;
    unsigned int flags;
};

1936 1937 1938 1939 1940 1941 1942 1943
struct remote_node_device_re_attach_args {
    remote_nonnull_string name;
};

struct remote_node_device_reset_args {
    remote_nonnull_string name;
};

1944 1945
struct remote_node_device_create_xml_args {
    remote_nonnull_string xml_desc;
1946
    unsigned int flags;
1947 1948 1949 1950 1951 1952 1953 1954 1955 1956
};

struct remote_node_device_create_xml_ret {
    remote_nonnull_node_device dev;
};

struct remote_node_device_destroy_args {
    remote_nonnull_string name;
};

1957

1958
/*
1959 1960 1961 1962 1963
 * 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.
 */
1964
struct remote_connect_domain_event_register_ret {
1965 1966 1967
    int cb_registered;
};

1968
struct remote_connect_domain_event_deregister_ret {
1969 1970 1971
    int cb_registered;
};

1972
struct remote_domain_event_lifecycle_msg {
1973 1974
    remote_nonnull_domain dom;
    int event;
1975
    int detail;
1976 1977
};

1978

1979
struct remote_connect_domain_xml_from_native_args {
1980 1981
    remote_nonnull_string nativeFormat;
    remote_nonnull_string nativeConfig;
1982
    unsigned int flags;
1983 1984
};

1985
struct remote_connect_domain_xml_from_native_ret {
1986 1987 1988 1989
    remote_nonnull_string domainXml;
};


1990
struct remote_connect_domain_xml_to_native_args {
1991 1992
    remote_nonnull_string nativeFormat;
    remote_nonnull_string domainXml;
1993
    unsigned int flags;
1994 1995
};

1996
struct remote_connect_domain_xml_to_native_ret {
1997 1998 1999 2000
    remote_nonnull_string nativeConfig;
};


2001
struct remote_connect_num_of_secrets_ret {
2002 2003 2004
    int num;
};

2005
struct remote_connect_list_secrets_args {
2006 2007 2008
    int maxuuids;
};

2009
struct remote_connect_list_secrets_ret {
2010
    remote_nonnull_string uuids<REMOTE_SECRET_UUID_LIST_MAX>; /* insert@1 */
2011 2012
};

2013 2014
struct remote_secret_lookup_by_uuid_args {
    remote_uuid uuid;
2015 2016
};

2017
struct remote_secret_lookup_by_uuid_ret {
2018 2019 2020 2021 2022
    remote_nonnull_secret secret;
};

struct remote_secret_define_xml_args {
    remote_nonnull_string xml;
2023
    unsigned int flags;
2024 2025 2026 2027 2028 2029 2030 2031
};

struct remote_secret_define_xml_ret {
    remote_nonnull_secret secret;
};

struct remote_secret_get_xml_desc_args {
    remote_nonnull_secret secret;
2032
    unsigned int flags;
2033 2034 2035 2036 2037 2038 2039 2040
};

struct remote_secret_get_xml_desc_ret {
    remote_nonnull_string xml;
};

struct remote_secret_set_value_args {
    remote_nonnull_secret secret;
2041
    opaque value<REMOTE_SECRET_VALUE_MAX>; /* (const unsigned char *) */
2042
    unsigned int flags;
2043 2044 2045 2046
};

struct remote_secret_get_value_args {
    remote_nonnull_secret secret;
2047
    unsigned int flags;
2048 2049 2050 2051 2052 2053 2054 2055 2056 2057
};

struct remote_secret_get_value_ret {
    opaque value<REMOTE_SECRET_VALUE_MAX>;
};

struct remote_secret_undefine_args {
    remote_nonnull_secret secret;
};

2058 2059 2060 2061 2062 2063 2064 2065 2066
struct remote_secret_lookup_by_usage_args {
    int usageType;
    remote_nonnull_string usageID;
};

struct remote_secret_lookup_by_usage_ret {
    remote_nonnull_secret secret;
};

C
Chris Lalancette 已提交
2067 2068 2069 2070 2071 2072 2073
struct remote_domain_migrate_prepare_tunnel_args {
    unsigned hyper flags;
    remote_string dname;
    unsigned hyper resource;
    remote_nonnull_string dom_xml;
};

2074

2075
struct remote_connect_is_secure_ret {
2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096
    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;
};

O
Osier Yang 已提交
2097 2098 2099 2100 2101 2102 2103
struct remote_domain_is_updated_args {
    remote_nonnull_domain dom;
};

struct remote_domain_is_updated_ret {
    int updated;
};
2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147

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;
};


2148
struct remote_connect_compare_cpu_args {
2149
    remote_nonnull_string xml;
2150
    unsigned int flags;
2151 2152
};

2153
struct remote_connect_compare_cpu_ret {
2154 2155 2156 2157
    int result;
};


2158
struct remote_connect_baseline_cpu_args {
2159
    remote_nonnull_string xmlCPUs<REMOTE_CPU_BASELINE_MAX>; /* (const char **) */
2160
    unsigned int flags;
2161 2162
};

2163
struct remote_connect_baseline_cpu_ret {
2164 2165 2166 2167
    remote_nonnull_string cpu;
};


2168 2169 2170 2171
struct remote_domain_get_job_info_args {
    remote_nonnull_domain dom;
};

2172
struct remote_domain_get_job_info_ret { /* insert@1 */
2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191
    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;
};


2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202
struct remote_domain_get_job_stats_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

struct remote_domain_get_job_stats_ret {
    int type;
    remote_typed_param params<>;
};


2203 2204 2205 2206 2207
struct remote_domain_abort_job_args {
    remote_nonnull_domain dom;
};


2208 2209 2210
struct remote_domain_migrate_set_max_downtime_args {
    remote_nonnull_domain dom;
    unsigned hyper downtime;
2211
    unsigned int flags;
2212 2213
};

2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228
struct remote_domain_migrate_get_compression_cache_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

struct remote_domain_migrate_get_compression_cache_ret {
    unsigned hyper cacheSize; /* insert@1 */
};

struct remote_domain_migrate_set_compression_cache_args {
    remote_nonnull_domain dom;
    unsigned hyper cacheSize;
    unsigned int flags;
};

2229 2230 2231
struct remote_domain_migrate_set_max_speed_args {
    remote_nonnull_domain dom;
    unsigned hyper bandwidth;
2232
    unsigned int flags;
2233 2234
};

2235 2236 2237 2238 2239 2240 2241 2242 2243 2244
struct remote_domain_migrate_get_max_speed_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

struct remote_domain_migrate_get_max_speed_ret {
     unsigned hyper bandwidth; /* insert@1 */
};


2245
struct remote_connect_domain_event_register_any_args {
2246 2247 2248
    int eventID;
};

2249
struct remote_connect_domain_event_deregister_any_args {
2250 2251 2252
    int eventID;
};

2253 2254 2255
struct remote_domain_event_reboot_msg {
    remote_nonnull_domain dom;
};
2256

2257 2258 2259 2260 2261
struct remote_domain_event_rtc_change_msg {
    remote_nonnull_domain dom;
    hyper offset;
};

2262 2263 2264 2265 2266
struct remote_domain_event_watchdog_msg {
    remote_nonnull_domain dom;
    int action;
};

2267 2268 2269 2270 2271 2272 2273
struct remote_domain_event_io_error_msg {
    remote_nonnull_domain dom;
    remote_nonnull_string srcPath;
    remote_nonnull_string devAlias;
    int action;
};

2274 2275 2276 2277 2278 2279 2280 2281
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;
};

2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303
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>;
};

2304 2305 2306 2307 2308 2309 2310
struct remote_domain_event_block_job_msg {
    remote_nonnull_domain dom;
    remote_nonnull_string path;
    int type;
    int status;
};

2311 2312 2313 2314 2315 2316 2317 2318
struct remote_domain_event_disk_change_msg {
    remote_nonnull_domain dom;
    remote_string oldSrcPath;
    remote_string newSrcPath;
    remote_nonnull_string devAlias;
    int reason;
};

2319 2320 2321 2322 2323 2324
struct remote_domain_event_tray_change_msg {
    remote_nonnull_domain dom;
    remote_nonnull_string devAlias;
    int reason;
};

O
Osier Yang 已提交
2325 2326 2327 2328
struct remote_domain_event_pmwakeup_msg {
    remote_nonnull_domain dom;
};

O
Osier Yang 已提交
2329 2330 2331 2332
struct remote_domain_event_pmsuspend_msg {
    remote_nonnull_domain dom;
};

2333 2334 2335 2336 2337
struct remote_domain_event_balloon_change_msg {
    remote_nonnull_domain dom;
    unsigned hyper actual;
};

2338 2339 2340 2341
struct remote_domain_event_pmsuspend_disk_msg {
    remote_nonnull_domain dom;
};

2342 2343
struct remote_domain_managed_save_args {
    remote_nonnull_domain dom;
2344
    unsigned int flags;
2345 2346 2347 2348
};

struct remote_domain_has_managed_save_image_args {
    remote_nonnull_domain dom;
2349
    unsigned int flags;
2350 2351 2352
};

struct remote_domain_has_managed_save_image_ret {
2353
    int result;
2354 2355 2356 2357
};

struct remote_domain_managed_save_remove_args {
    remote_nonnull_domain dom;
2358
    unsigned int flags;
2359 2360
};

C
Chris Lalancette 已提交
2361
struct remote_domain_snapshot_create_xml_args {
2362
    remote_nonnull_domain dom;
C
Chris Lalancette 已提交
2363
    remote_nonnull_string xml_desc;
2364
    unsigned int flags;
C
Chris Lalancette 已提交
2365 2366 2367 2368 2369 2370
};

struct remote_domain_snapshot_create_xml_ret {
    remote_nonnull_domain_snapshot snap;
};

2371
struct remote_domain_snapshot_get_xml_desc_args {
C
Chris Lalancette 已提交
2372
    remote_nonnull_domain_snapshot snap;
2373
    unsigned int flags;
C
Chris Lalancette 已提交
2374 2375
};

2376
struct remote_domain_snapshot_get_xml_desc_ret {
C
Chris Lalancette 已提交
2377 2378 2379 2380
    remote_nonnull_string xml;
};

struct remote_domain_snapshot_num_args {
2381
    remote_nonnull_domain dom;
2382
    unsigned int flags;
C
Chris Lalancette 已提交
2383 2384 2385 2386 2387 2388 2389
};

struct remote_domain_snapshot_num_ret {
    int num;
};

struct remote_domain_snapshot_list_names_args {
2390
    remote_nonnull_domain dom;
2391
    int maxnames;
2392
    unsigned int flags;
C
Chris Lalancette 已提交
2393 2394 2395
};

struct remote_domain_snapshot_list_names_ret {
2396
    remote_nonnull_string names<REMOTE_DOMAIN_SNAPSHOT_LIST_NAMES_MAX>; /* insert@1 */
C
Chris Lalancette 已提交
2397 2398
};

2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409
struct remote_domain_list_all_snapshots_args {
    remote_nonnull_domain dom;
    int need_results;
    unsigned int flags;
};

struct remote_domain_list_all_snapshots_ret {
    remote_nonnull_domain_snapshot snapshots<>;
    int ret;
};

2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428
struct remote_domain_snapshot_num_children_args {
    remote_nonnull_domain_snapshot snap;
    unsigned int flags;
};

struct remote_domain_snapshot_num_children_ret {
    int num;
};

struct remote_domain_snapshot_list_children_names_args {
    remote_nonnull_domain_snapshot snap;
    int maxnames;
    unsigned int flags;
};

struct remote_domain_snapshot_list_children_names_ret {
    remote_nonnull_string names<REMOTE_DOMAIN_SNAPSHOT_LIST_NAMES_MAX>; /* insert@1 */
};

2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439
struct remote_domain_snapshot_list_all_children_args {
    remote_nonnull_domain_snapshot snapshot;
    int need_results;
    unsigned int flags;
};

struct remote_domain_snapshot_list_all_children_ret {
    remote_nonnull_domain_snapshot snapshots<>;
    int ret;
};

C
Chris Lalancette 已提交
2440
struct remote_domain_snapshot_lookup_by_name_args {
2441
    remote_nonnull_domain dom;
C
Chris Lalancette 已提交
2442
    remote_nonnull_string name;
2443
    unsigned int flags;
C
Chris Lalancette 已提交
2444 2445 2446 2447 2448 2449 2450
};

struct remote_domain_snapshot_lookup_by_name_ret {
    remote_nonnull_domain_snapshot snap;
};

struct remote_domain_has_current_snapshot_args {
2451
    remote_nonnull_domain dom;
2452
    unsigned int flags;
C
Chris Lalancette 已提交
2453 2454 2455 2456 2457 2458
};

struct remote_domain_has_current_snapshot_ret {
    int result;
};

2459 2460 2461 2462 2463 2464 2465 2466 2467
struct remote_domain_snapshot_get_parent_args {
    remote_nonnull_domain_snapshot snap;
    unsigned int flags;
};

struct remote_domain_snapshot_get_parent_ret {
    remote_nonnull_domain_snapshot snap;
};

C
Chris Lalancette 已提交
2468
struct remote_domain_snapshot_current_args {
2469
    remote_nonnull_domain dom;
2470
    unsigned int flags;
C
Chris Lalancette 已提交
2471 2472 2473 2474 2475 2476
};

struct remote_domain_snapshot_current_ret {
    remote_nonnull_domain_snapshot snap;
};

E
Eric Blake 已提交
2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494
struct remote_domain_snapshot_is_current_args {
    remote_nonnull_domain_snapshot snap;
    unsigned int flags;
};

struct remote_domain_snapshot_is_current_ret {
    int current;
};

struct remote_domain_snapshot_has_metadata_args {
    remote_nonnull_domain_snapshot snap;
    unsigned int flags;
};

struct remote_domain_snapshot_has_metadata_ret {
    int metadata;
};

C
Chris Lalancette 已提交
2495 2496
struct remote_domain_revert_to_snapshot_args {
    remote_nonnull_domain_snapshot snap;
2497
    unsigned int flags;
C
Chris Lalancette 已提交
2498 2499 2500 2501
};

struct remote_domain_snapshot_delete_args {
    remote_nonnull_domain_snapshot snap;
2502
    unsigned int flags;
C
Chris Lalancette 已提交
2503 2504
};

2505
struct remote_domain_open_console_args {
2506
    remote_nonnull_domain dom;
2507
    remote_string dev_name;
2508 2509
    unsigned int flags;
};
C
Chris Lalancette 已提交
2510

2511 2512 2513 2514 2515 2516
struct remote_domain_open_channel_args {
    remote_nonnull_domain dom;
    remote_string name;
    unsigned int flags;
};

2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530
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;
};

2531 2532 2533 2534 2535 2536 2537 2538 2539 2540
struct remote_domain_get_state_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

struct remote_domain_get_state_ret {
    int state;
    int reason;
};

2541 2542
struct remote_domain_migrate_begin3_args {
    remote_nonnull_domain dom;
2543
    remote_string xmlin;
2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576
    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 {
2577
    opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>; /* insert@3 */
2578 2579 2580 2581
};

struct remote_domain_migrate_perform3_args {
    remote_nonnull_domain dom;
2582
    remote_string xmlin;
2583
    opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
2584 2585
    remote_string dconnuri;
    remote_string uri;
2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597
    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>;
2598 2599
    remote_string dconnuri;
    remote_string uri;
2600 2601 2602 2603 2604
    unsigned hyper flags;
    int cancelled;
};

struct remote_domain_migrate_finish3_ret {
2605
    remote_nonnull_domain dom;
2606 2607 2608 2609 2610 2611 2612 2613 2614
    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;
};
2615

2616 2617 2618 2619
struct remote_domain_event_control_error_msg {
    remote_nonnull_domain dom;
};

2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630
struct remote_domain_get_control_info_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

struct remote_domain_get_control_info_ret { /* insert@1 */
    unsigned int state;
    unsigned int details;
    unsigned hyper stateTime;
};

2631 2632 2633 2634 2635 2636
struct remote_domain_open_graphics_args {
    remote_nonnull_domain dom;
    unsigned int idx;
    unsigned int flags;
};

2637 2638 2639 2640 2641 2642
struct remote_node_suspend_for_duration_args {
    unsigned int target;
    unsigned hyper duration;
    unsigned int flags;
};

2643 2644 2645 2646 2647
struct remote_domain_shutdown_flags_args {
    remote_nonnull_domain dom;
    unsigned int flags;
};

2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658
struct remote_domain_get_disk_errors_args {
    remote_nonnull_domain dom;
    unsigned int maxerrors;
    unsigned int flags;
};

struct remote_domain_get_disk_errors_ret {
    remote_domain_disk_error errors<REMOTE_DOMAIN_DISK_ERRORS_MAX>;
    int nerrors;
};

2659 2660 2661 2662 2663 2664 2665 2666 2667 2668
struct remote_connect_list_all_domains_args {
    int need_results;
    unsigned int flags;
};

struct remote_connect_list_all_domains_ret {
    remote_nonnull_domain domains<>;
    unsigned int ret;
};

2669 2670 2671 2672 2673 2674 2675 2676 2677
struct remote_connect_list_all_storage_pools_args {
    int need_results;
    unsigned int flags;
};

struct remote_connect_list_all_storage_pools_ret {
    remote_nonnull_storage_pool pools<>;
    unsigned int ret;
};
2678

2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689
struct remote_storage_pool_list_all_volumes_args {
    remote_nonnull_storage_pool pool;
    int need_results;
    unsigned int flags;
};

struct remote_storage_pool_list_all_volumes_ret {
    remote_nonnull_storage_vol vols<>;
    unsigned int ret;
};

2690 2691 2692 2693 2694 2695 2696 2697 2698 2699
struct remote_connect_list_all_networks_args {
    int need_results;
    unsigned int flags;
};

struct remote_connect_list_all_networks_ret {
    remote_nonnull_network nets<>;
    unsigned int ret;
};

2700 2701 2702 2703 2704 2705 2706 2707 2708 2709
struct remote_connect_list_all_interfaces_args {
    int need_results;
    unsigned int flags;
};

struct remote_connect_list_all_interfaces_ret {
    remote_nonnull_interface ifaces<>;
    unsigned int ret;
};

2710 2711 2712 2713 2714 2715 2716 2717 2718 2719
struct remote_connect_list_all_node_devices_args {
    int need_results;
    unsigned int flags;
};

struct remote_connect_list_all_node_devices_ret {
    remote_nonnull_node_device devices<>;
    unsigned int ret;
};

2720 2721 2722 2723 2724 2725 2726 2727 2728 2729
struct remote_connect_list_all_nwfilters_args {
    int need_results;
    unsigned int flags;
};

struct remote_connect_list_all_nwfilters_ret {
    remote_nonnull_nwfilter filters<>;
    unsigned int ret;
};

2730 2731 2732 2733 2734 2735 2736 2737 2738 2739
struct remote_connect_list_all_secrets_args {
    int need_results;
    unsigned int flags;
};

struct remote_connect_list_all_secrets_ret {
    remote_nonnull_secret secrets<>;
    unsigned int ret;
};

2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754
struct remote_node_set_memory_parameters_args {
    remote_typed_param params<REMOTE_NODE_MEMORY_PARAMETERS_MAX>;
    unsigned int flags;
};

struct remote_node_get_memory_parameters_args {
    int nparams;
    unsigned int flags;
};

struct remote_node_get_memory_parameters_ret {
    remote_typed_param params<REMOTE_NODE_MEMORY_PARAMETERS_MAX>;
    int nparams;
};

2755
struct remote_node_get_cpu_map_args {
2756 2757
    int need_map;
    int need_online;
2758 2759 2760 2761 2762 2763 2764 2765 2766
    unsigned int flags;
};

struct remote_node_get_cpu_map_ret {
    opaque cpumap<REMOTE_CPUMAP_MAX>;
    unsigned int online;
    int ret;
};

2767 2768 2769 2770 2771 2772 2773
struct remote_domain_fstrim_args {
    remote_nonnull_domain dom;
    remote_string mountPoint;
    unsigned hyper minimum;
    unsigned int flags;
};

2774 2775
struct remote_domain_migrate_begin3_params_args {
    remote_nonnull_domain dom;
2776
    remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
2777 2778 2779 2780 2781 2782 2783 2784 2785
    unsigned int flags;
};

struct remote_domain_migrate_begin3_params_ret {
    opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
    remote_nonnull_string xml;
};

struct remote_domain_migrate_prepare3_params_args {
2786
    remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
2787 2788 2789 2790 2791 2792 2793 2794 2795 2796
    opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
    unsigned int flags;
};

struct remote_domain_migrate_prepare3_params_ret {
    opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
    remote_string uri_out;
};

struct remote_domain_migrate_prepare_tunnel3_params_args {
2797
    remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808
    opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
    unsigned int flags;
};

struct remote_domain_migrate_prepare_tunnel3_params_ret {
    opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
};

struct remote_domain_migrate_perform3_params_args {
    remote_nonnull_domain dom;
    remote_string dconnuri;
2809
    remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
2810 2811 2812 2813 2814 2815 2816 2817 2818
    opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
    unsigned int flags;
};

struct remote_domain_migrate_perform3_params_ret {
    opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
};

struct remote_domain_migrate_finish3_params_args {
2819
    remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831
    opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
    unsigned int flags;
    int cancelled;
};

struct remote_domain_migrate_finish3_params_ret {
    remote_nonnull_domain dom;
    opaque cookie_out<REMOTE_MIGRATE_COOKIE_MAX>;
};

struct remote_domain_migrate_confirm3_params_args {
    remote_nonnull_domain dom;
2832
    remote_typed_param params<REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX>;
2833 2834 2835 2836 2837
    opaque cookie_in<REMOTE_MIGRATE_COOKIE_MAX>;
    unsigned int flags;
    int cancelled;
};

2838 2839 2840 2841 2842
struct remote_domain_event_device_removed_msg {
    remote_nonnull_domain dom;
    remote_nonnull_string devAlias;
};

2843 2844 2845 2846 2847 2848 2849
/*----- Protocol. -----*/

/* Define the program number, protocol version and procedure numbers here. */
const REMOTE_PROGRAM = 0x20008086;
const REMOTE_PROTOCOL_VERSION = 1;

enum remote_procedure {
2850 2851 2852 2853 2854 2855 2856 2857 2858 2859
    /* Each function must be preceded by a comment providing one or
     * more annotations:
     *
     * - @generate: none|client|server|both
     *
     *   Whether to generate the dispatch stubs for the server
     *   and/or client code.
     *
     * - @readstream: paramnumber
     * - @writestream: paramnumber
2860
     *
2861 2862 2863 2864 2865
     *   The @readstream or @writestream annotations let daemon and src/remote
     *   create a stream.  The direction is defined from the src/remote point
     *   of view.  A readstream transfers data from daemon to src/remote.  The
     *   <paramnumber> specifies at which offset the stream parameter is inserted
     *   in the function parameter list.
2866
     *
2867
     * - @priority: low|high
2868
     *
2869 2870 2871 2872 2873
     *   Each API that might eventually access hypervisor's monitor (and thus
     *   block) MUST fall into low priority. However, there are some exceptions
     *   to this rule, e.g. domainDestroy. Other APIs MAY be marked as high
     *   priority. If in doubt, it's safe to choose low. Low is taken as default,
     *   and thus can be left out.
2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892
     *
     * - @acl: <object>:<permission>
     * - @acl: <object>:<permission>:<flagname>
     *
     *   Declare the access control requirements for the API. May be repeated
     *   multiple times, if multiple rules are required.
     *
     *     <object> is one of 'connect', 'domain', 'network', 'storagepool',
     *              'interface', 'nodedev', 'secret'.
     *     <permission> is one of the permissions in access/viraccessperm.h
     *     <flagname> indicates the rule only applies if the named flag
     *     is set in the API call
     *
     * - @aclfilter: <object>:<permission>
     *
     *   Declare an access control filter that will be applied to a list
     *   of objects being returned by an API. This allows the returned
     *   list to be filtered to only show those the user has permissions
     *   against
2893 2894 2895 2896 2897
     */

    /**
     * @generate: none
     * @priority: high
2898
     * @acl: connect:getattr
2899
     */
2900
    REMOTE_PROC_CONNECT_OPEN = 1,
2901 2902 2903 2904

    /**
     * @generate: none
     * @priority: high
2905
     * @acl: none
2906
     */
2907
    REMOTE_PROC_CONNECT_CLOSE = 2,
2908 2909 2910 2911

    /**
     * @generate: server
     * @priority: high
2912
     * @acl: connect:getattr
2913
     */
2914
    REMOTE_PROC_CONNECT_GET_TYPE = 3,
2915 2916 2917 2918

    /**
     * @generate: both
     * @priority: high
2919
     * @acl: connect:getattr
2920
     */
2921
    REMOTE_PROC_CONNECT_GET_VERSION = 4,
2922 2923 2924 2925

    /**
     * @generate: both
     * @priority: high
2926
     * @acl: connect:read
2927
     */
2928
    REMOTE_PROC_CONNECT_GET_MAX_VCPUS = 5,
2929 2930 2931 2932

    /**
     * @generate: both
     * @priority: high
2933
     * @acl: connect:read
2934 2935 2936 2937 2938
     */
    REMOTE_PROC_NODE_GET_INFO = 6,

    /**
     * @generate: both
2939
     * @acl: connect:read
2940
     */
2941
    REMOTE_PROC_CONNECT_GET_CAPABILITIES = 7,
2942 2943 2944

    /**
     * @generate: both
2945
     * @acl: domain:write
2946 2947 2948 2949 2950
     */
    REMOTE_PROC_DOMAIN_ATTACH_DEVICE = 8,

    /**
     * @generate: server
2951
     * @acl: domain:start
2952 2953 2954 2955 2956
     */
    REMOTE_PROC_DOMAIN_CREATE = 9,

    /**
     * @generate: both
2957 2958
     * @acl: domain:write
     * @acl: domain:start
2959 2960 2961 2962 2963 2964
     */
    REMOTE_PROC_DOMAIN_CREATE_XML = 10,

    /**
     * @generate: both
     * @priority: high
2965 2966
     * @acl: domain:write
     * @acl: domain:save
2967 2968 2969 2970 2971 2972
     */
    REMOTE_PROC_DOMAIN_DEFINE_XML = 11,

    /**
     * @generate: both
     * @priority: high
2973
     * @acl: domain:stop
2974 2975 2976 2977 2978
     */
    REMOTE_PROC_DOMAIN_DESTROY = 12,

    /**
     * @generate: both
2979
     * @acl: domain:write
2980 2981 2982 2983 2984
     */
    REMOTE_PROC_DOMAIN_DETACH_DEVICE = 13,

    /**
     * @generate: both
2985 2986
     * @acl: domain:read
     * @acl: domain:read_secure:VIR_DOMAIN_XML_SECURE
2987 2988 2989 2990 2991 2992
     */
    REMOTE_PROC_DOMAIN_GET_XML_DESC = 14,

    /**
     * @generate: both
     * @priority: high
2993
     * @acl: domain:read
2994 2995 2996 2997 2998
     */
    REMOTE_PROC_DOMAIN_GET_AUTOSTART = 15,

    /**
     * @generate: both
2999
     * @acl: domain:read
3000 3001 3002 3003 3004 3005
     */
    REMOTE_PROC_DOMAIN_GET_INFO = 16,

    /**
     * @generate: both
     * @priority: high
3006
     * @acl: domain:read
3007 3008 3009 3010 3011 3012
     */
    REMOTE_PROC_DOMAIN_GET_MAX_MEMORY = 17,

    /**
     * @generate: both
     * @priority: high
3013
     * @acl: domain:read
3014 3015 3016 3017 3018 3019
     */
    REMOTE_PROC_DOMAIN_GET_MAX_VCPUS = 18,

    /**
     * @generate: both
     * @priority: high
3020
     * @acl: domain:read
3021 3022 3023 3024 3025 3026
     */
    REMOTE_PROC_DOMAIN_GET_OS_TYPE = 19,

    /**
     * @generate: none
     * @priority: high
3027
     * @acl: domain:read
3028 3029 3030 3031 3032 3033
     */
    REMOTE_PROC_DOMAIN_GET_VCPUS = 20,

    /**
     * @generate: both
     * @priority: high
3034 3035
     * @acl: connect:search_domains
     * @aclfilter: domain:getattr
3036
     */
3037
    REMOTE_PROC_CONNECT_LIST_DEFINED_DOMAINS = 21,
3038 3039 3040 3041

    /**
     * @generate: both
     * @priority: high
3042
     * @acl: domain:getattr
3043 3044 3045 3046 3047 3048
     */
    REMOTE_PROC_DOMAIN_LOOKUP_BY_ID = 22,

    /**
     * @generate: both
     * @priority: high
3049
     * @acl: domain:getattr
3050 3051 3052 3053 3054 3055
     */
    REMOTE_PROC_DOMAIN_LOOKUP_BY_NAME = 23,

    /**
     * @generate: both
     * @priority: high
3056
     * @acl: domain:getattr
3057 3058 3059 3060 3061 3062
     */
    REMOTE_PROC_DOMAIN_LOOKUP_BY_UUID = 24,

    /**
     * @generate: both
     * @priority: high
3063 3064
     * @acl: connect:search_domains
     * @aclfilter: domain:getattr
3065
     */
3066
    REMOTE_PROC_CONNECT_NUM_OF_DEFINED_DOMAINS = 25,
3067 3068 3069

    /**
     * @generate: both
3070
     * @acl: domain:write
3071 3072 3073 3074 3075
     */
    REMOTE_PROC_DOMAIN_PIN_VCPU = 26,

    /**
     * @generate: both
3076
     * @acl: domain:init_control
3077 3078 3079 3080 3081
     */
    REMOTE_PROC_DOMAIN_REBOOT = 27,

    /**
     * @generate: both
3082
     * @acl: domain:suspend
3083 3084 3085 3086 3087 3088
     */
    REMOTE_PROC_DOMAIN_RESUME = 28,

    /**
     * @generate: both
     * @priority: high
3089
     * @acl: domain:write
3090 3091 3092 3093 3094 3095
     */
    REMOTE_PROC_DOMAIN_SET_AUTOSTART = 29,

    /**
     * @generate: both
     * @priority: high
3096
     * @acl: domain:write
3097 3098 3099 3100 3101
     */
    REMOTE_PROC_DOMAIN_SET_MAX_MEMORY = 30,

    /**
     * @generate: both
3102
     * @acl: domain:write
3103 3104 3105 3106 3107
     */
    REMOTE_PROC_DOMAIN_SET_MEMORY = 31,

    /**
     * @generate: both
3108
     * @acl: domain:write
3109 3110 3111 3112 3113
     */
    REMOTE_PROC_DOMAIN_SET_VCPUS = 32,

    /**
     * @generate: both
3114
     * @acl: domain:init_control
3115 3116 3117 3118 3119
     */
    REMOTE_PROC_DOMAIN_SHUTDOWN = 33,

    /**
     * @generate: both
3120
     * @acl: domain:suspend
3121 3122 3123 3124 3125 3126
     */
    REMOTE_PROC_DOMAIN_SUSPEND = 34,

    /**
     * @generate: both
     * @priority: high
3127
     * @acl: domain:delete
3128 3129 3130 3131 3132 3133
     */
    REMOTE_PROC_DOMAIN_UNDEFINE = 35,

    /**
     * @generate: both
     * @priority: high
3134 3135
     * @acl: connect:search_networks
     * @aclfilter: network:getattr
3136
     */
3137
    REMOTE_PROC_CONNECT_LIST_DEFINED_NETWORKS = 36,
3138 3139 3140 3141

    /**
     * @generate: server
     * @priority: high
3142 3143
     * @acl: connect:search_domains
     * @aclfilter: domain:getattr
3144
     */
3145
    REMOTE_PROC_CONNECT_LIST_DOMAINS = 37,
3146 3147 3148 3149

    /**
     * @generate: both
     * @priority: high
3150 3151
     * @acl: connect:search_networks
     * @aclfilter: network:getattr
3152
     */
3153
    REMOTE_PROC_CONNECT_LIST_NETWORKS = 38,
3154 3155 3156

    /**
     * @generate: both
3157
     * @acl: network:start
3158 3159 3160 3161 3162
     */
    REMOTE_PROC_NETWORK_CREATE = 39,

    /**
     * @generate: both
3163 3164
     * @acl: network:write
     * @acl: network:start
3165 3166 3167 3168 3169 3170
     */
    REMOTE_PROC_NETWORK_CREATE_XML = 40,

    /**
     * @generate: both
     * @priority: high
3171 3172
     * @acl: network:write
     * @acl: network:save
3173 3174 3175 3176 3177 3178
     */
    REMOTE_PROC_NETWORK_DEFINE_XML = 41,

    /**
     * @generate: both
     * @priority: high
3179
     * @acl: network:stop
3180 3181 3182 3183 3184 3185
     */
    REMOTE_PROC_NETWORK_DESTROY = 42,

    /**
     * @generate: both
     * @priority: high
3186
     * @acl: network:read
3187 3188 3189 3190 3191 3192
     */
    REMOTE_PROC_NETWORK_GET_XML_DESC = 43,

    /**
     * @generate: both
     * @priority: high
3193
     * @acl: network:read
3194 3195 3196 3197 3198 3199
     */
    REMOTE_PROC_NETWORK_GET_AUTOSTART = 44,

    /**
     * @generate: both
     * @priority: high
3200
     * @acl: network:read
3201 3202 3203 3204 3205 3206
     */
    REMOTE_PROC_NETWORK_GET_BRIDGE_NAME = 45,

    /**
     * @generate: both
     * @priority: high
3207
     * @acl: network:getattr
3208 3209 3210 3211 3212 3213
     */
    REMOTE_PROC_NETWORK_LOOKUP_BY_NAME = 46,

    /**
     * @generate: both
     * @priority: high
3214
     * @acl: network:getattr
3215 3216 3217 3218 3219 3220
     */
    REMOTE_PROC_NETWORK_LOOKUP_BY_UUID = 47,

    /**
     * @generate: both
     * @priority: high
3221
     * @acl: network:write
3222 3223 3224 3225 3226 3227
     */
    REMOTE_PROC_NETWORK_SET_AUTOSTART = 48,

    /**
     * @generate: both
     * @priority: high
3228
     * @acl: network:delete
3229 3230 3231 3232 3233 3234
     */
    REMOTE_PROC_NETWORK_UNDEFINE = 49,

    /**
     * @generate: both
     * @priority: high
3235 3236
     * @acl: connect:search_networks
     * @aclfilter: network:getattr
3237
     */
3238
    REMOTE_PROC_CONNECT_NUM_OF_DEFINED_NETWORKS = 50,
3239 3240 3241 3242

    /**
     * @generate: both
     * @priority: high
3243 3244
     * @acl: connect:search_domains
     * @aclfilter: domain:getattr
3245
     */
3246
    REMOTE_PROC_CONNECT_NUM_OF_DOMAINS = 51,
3247 3248 3249 3250

    /**
     * @generate: both
     * @priority: high
3251 3252
     * @acl: connect:search_networks
     * @aclfilter: network:getattr
3253
     */
3254
    REMOTE_PROC_CONNECT_NUM_OF_NETWORKS = 52,
3255 3256 3257

    /**
     * @generate: both
3258
     * @acl: domain:core_dump
3259 3260 3261 3262 3263
     */
    REMOTE_PROC_DOMAIN_CORE_DUMP = 53,

    /**
     * @generate: both
3264 3265
     * @acl: domain:start
     * @acl: domain:write
3266 3267 3268 3269 3270
     */
    REMOTE_PROC_DOMAIN_RESTORE = 54,

    /**
     * @generate: both
3271
     * @acl: domain:hibernate
3272 3273 3274 3275 3276
     */
    REMOTE_PROC_DOMAIN_SAVE = 55,

    /**
     * @generate: none
3277
     * @acl: domain:read
3278 3279 3280 3281 3282
     */
    REMOTE_PROC_DOMAIN_GET_SCHEDULER_TYPE = 56,

    /**
     * @generate: client
3283
     * @acl: domain:read
3284 3285 3286 3287 3288
     */
    REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS = 57,

    /**
     * @generate: both
3289
     * @acl: domain:read
3290 3291 3292 3293 3294 3295
     */
    REMOTE_PROC_DOMAIN_SET_SCHEDULER_PARAMETERS = 58,

    /**
     * @generate: both
     * @priority: high
3296
     * @acl: connect:getattr
3297
     */
3298
    REMOTE_PROC_CONNECT_GET_HOSTNAME = 59,
3299 3300 3301 3302

    /**
     * @generate: client
     * @priority: high
3303
     * @acl: connect:getattr
3304
     */
3305
    REMOTE_PROC_CONNECT_SUPPORTS_FEATURE = 60,
3306 3307 3308

    /**
     * @generate: none
3309 3310 3311
     * @acl: domain:migrate
     * @acl: domain:start
     * @acl: domain:write
3312 3313 3314 3315 3316
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PREPARE = 61,

    /**
     * @generate: both
3317
     * @acl: domain:migrate
3318 3319 3320 3321 3322
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PERFORM = 62,

    /**
     * @generate: both
3323
     * @acl: domain:migrate
3324 3325 3326 3327 3328
     */
    REMOTE_PROC_DOMAIN_MIGRATE_FINISH = 63,

    /**
     * @generate: both
3329
     * @acl: domain:read
3330 3331 3332 3333 3334 3335
     */
    REMOTE_PROC_DOMAIN_BLOCK_STATS = 64,

    /**
     * @generate: both
     * @priority: high
3336
     * @acl: domain:read
3337 3338 3339 3340 3341 3342
     */
    REMOTE_PROC_DOMAIN_INTERFACE_STATS = 65,

    /**
     * @generate: none
     * @priority: high
3343
     * @acl: none
3344 3345 3346 3347 3348 3349
     */
    REMOTE_PROC_AUTH_LIST = 66,

    /**
     * @generate: none
     * @priority: high
3350
     * @acl: none
3351 3352 3353 3354 3355 3356
     */
    REMOTE_PROC_AUTH_SASL_INIT = 67,

    /**
     * @generate: none
     * @priority: high
3357
     * @acl: none
3358 3359 3360 3361 3362 3363
     */
    REMOTE_PROC_AUTH_SASL_START = 68,

    /**
     * @generate: none
     * @priority: high
3364
     * @acl: none
3365 3366 3367 3368 3369 3370
     */
    REMOTE_PROC_AUTH_SASL_STEP = 69,

    /**
     * @generate: none
     * @priority: high
3371
     * @acl: none
3372 3373 3374 3375 3376 3377
     */
    REMOTE_PROC_AUTH_POLKIT = 70,

    /**
     * @generate: both
     * @priority: high
3378 3379
     * @acl: connect:search_storage_pools
     * @aclfilter: storage_pool:getattr
3380
     */
3381
    REMOTE_PROC_CONNECT_NUM_OF_STORAGE_POOLS = 71,
3382 3383 3384 3385

    /**
     * @generate: both
     * @priority: high
3386 3387
     * @acl: connect:search_storage_pools
     * @aclfilter: storage_pool:getattr
3388
     */
3389
    REMOTE_PROC_CONNECT_LIST_STORAGE_POOLS = 72,
3390 3391 3392 3393

    /**
     * @generate: both
     * @priority: high
3394 3395
     * @acl: connect:search_storage_pools
     * @aclfilter: storage_pool:getattr
3396
     */
3397
    REMOTE_PROC_CONNECT_NUM_OF_DEFINED_STORAGE_POOLS = 73,
3398 3399 3400 3401

    /**
     * @generate: both
     * @priority: high
3402 3403
     * @acl: connect:search_storage_pools
     * @aclfilter: storage_pool:getattr
3404
     */
3405
    REMOTE_PROC_CONNECT_LIST_DEFINED_STORAGE_POOLS = 74,
3406 3407 3408

    /**
     * @generate: server
3409
     * @acl: connect:detect_storage_pools
3410
     */
3411
    REMOTE_PROC_CONNECT_FIND_STORAGE_POOL_SOURCES = 75,
3412 3413 3414

    /**
     * @generate: both
3415 3416
     * @acl: storage_pool:start
     * @acl: storage_pool:write
3417 3418 3419 3420 3421 3422
     */
    REMOTE_PROC_STORAGE_POOL_CREATE_XML = 76,

    /**
     * @generate: both
     * @priority: high
3423 3424
     * @acl: storage_pool:write
     * @acl: storage_pool:save
3425 3426 3427 3428 3429
     */
    REMOTE_PROC_STORAGE_POOL_DEFINE_XML = 77,

    /**
     * @generate: both
3430
     * @acl: storage_pool:start
3431 3432 3433 3434 3435
     */
    REMOTE_PROC_STORAGE_POOL_CREATE = 78,

    /**
     * @generate: both
3436
     * @acl: storage_pool:format
3437 3438 3439 3440 3441 3442
     */
    REMOTE_PROC_STORAGE_POOL_BUILD = 79,

    /**
     * @generate: both
     * @priority: high
3443
     * @acl: storage_pool:stop
3444 3445 3446 3447 3448
     */
    REMOTE_PROC_STORAGE_POOL_DESTROY = 80,

    /**
     * @generate: both
3449
     * @acl: storage_pool:format
3450 3451 3452 3453 3454 3455
     */
    REMOTE_PROC_STORAGE_POOL_DELETE = 81,

    /**
     * @generate: both
     * @priority: high
3456
     * @acl: storage_pool:delete
3457 3458 3459 3460 3461
     */
    REMOTE_PROC_STORAGE_POOL_UNDEFINE = 82,

    /**
     * @generate: both
3462
     * @acl: storage_pool:refresh
3463 3464 3465 3466 3467 3468
     */
    REMOTE_PROC_STORAGE_POOL_REFRESH = 83,

    /**
     * @generate: both
     * @priority: high
3469
     * @acl: storage_pool:getattr
3470 3471 3472 3473 3474 3475
     */
    REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_NAME = 84,

    /**
     * @generate: both
     * @priority: high
3476
     * @acl: storage_pool:getattr
3477 3478 3479 3480 3481 3482
     */
    REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_UUID = 85,

    /**
     * @generate: both
     * @priority: high
3483
     * @acl: storage_pool:getattr
3484 3485 3486 3487 3488 3489
     */
    REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_VOLUME = 86,

    /**
     * @generate: both
     * @priority: high
3490
     * @acl: storage_pool:read
3491 3492 3493 3494 3495 3496
     */
    REMOTE_PROC_STORAGE_POOL_GET_INFO = 87,

    /**
     * @generate: both
     * @priority: high
3497
     * @acl: storage_pool:read
3498 3499 3500 3501 3502 3503
     */
    REMOTE_PROC_STORAGE_POOL_GET_XML_DESC = 88,

    /**
     * @generate: both
     * @priority: high
3504
     * @acl: storage_pool:read
3505 3506 3507 3508 3509 3510
     */
    REMOTE_PROC_STORAGE_POOL_GET_AUTOSTART = 89,

    /**
     * @generate: both
     * @priority: high
3511
     * @acl: storage_pool:write
3512 3513 3514 3515 3516 3517
     */
    REMOTE_PROC_STORAGE_POOL_SET_AUTOSTART = 90,

    /**
     * @generate: both
     * @priority: high
3518 3519
     * @acl: storage_pool:search_storage_vols
     * @aclfilter: storage_vol:getattr
3520 3521 3522 3523 3524 3525
     */
    REMOTE_PROC_STORAGE_POOL_NUM_OF_VOLUMES = 91,

    /**
     * @generate: both
     * @priority: high
3526 3527
     * @acl: storage_pool:search_storage_vols
     * @aclfilter: storage_vol:getattr
3528 3529 3530 3531 3532
     */
    REMOTE_PROC_STORAGE_POOL_LIST_VOLUMES = 92,

    /**
     * @generate: both
3533
     * @acl: storage_vol:create
3534 3535 3536 3537 3538
     */
    REMOTE_PROC_STORAGE_VOL_CREATE_XML = 93,

    /**
     * @generate: both
3539
     * @acl: storage_vol:delete
3540 3541 3542 3543 3544 3545
     */
    REMOTE_PROC_STORAGE_VOL_DELETE = 94,

    /**
     * @generate: both
     * @priority: high
3546
     * @acl: storage_vol:getattr
3547 3548 3549 3550 3551 3552
     */
    REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_NAME = 95,

    /**
     * @generate: both
     * @priority: high
3553
     * @acl: storage_vol:getattr
3554 3555 3556 3557 3558 3559
     */
    REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_KEY = 96,

    /**
     * @generate: both
     * @priority: high
3560
     * @acl: storage_vol:getattr
3561 3562 3563 3564 3565 3566
     */
    REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_PATH = 97,

    /**
     * @generate: both
     * @priority: high
3567
     * @acl: storage_vol:read
3568 3569 3570 3571 3572 3573
     */
    REMOTE_PROC_STORAGE_VOL_GET_INFO = 98,

    /**
     * @generate: both
     * @priority: high
3574
     * @acl: storage_vol:read
3575 3576 3577 3578 3579 3580
     */
    REMOTE_PROC_STORAGE_VOL_GET_XML_DESC = 99,

    /**
     * @generate: both
     * @priority: high
3581
     * @acl: storage_vol:read
3582 3583 3584 3585 3586 3587
     */
    REMOTE_PROC_STORAGE_VOL_GET_PATH = 100,

    /**
     * @generate: server
     * @priority: high
3588
     * @acl: connect:read
3589 3590 3591 3592 3593 3594
     */
    REMOTE_PROC_NODE_GET_CELLS_FREE_MEMORY = 101,

    /**
     * @generate: both
     * @priority: high
3595
     * @acl: connect:read
3596 3597 3598 3599 3600
     */
    REMOTE_PROC_NODE_GET_FREE_MEMORY = 102,

    /**
     * @generate: none
3601
     * @acl: domain:block_read
3602 3603 3604 3605 3606
     */
    REMOTE_PROC_DOMAIN_BLOCK_PEEK = 103,

    /**
     * @generate: none
3607
     * @acl: domain:mem_read
3608 3609 3610 3611 3612 3613
     */
    REMOTE_PROC_DOMAIN_MEMORY_PEEK = 104,

    /**
     * @generate: none
     * @priority: high
3614
     * @acl: connect:read
3615
     */
3616
    REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER = 105,
3617 3618 3619 3620

    /**
     * @generate: none
     * @priority: high
3621
     * @acl: connect:read
3622
     */
3623
    REMOTE_PROC_CONNECT_DOMAIN_EVENT_DEREGISTER = 106,
3624 3625 3626

    /**
     * @generate: both
3627
     * @acl: none
3628 3629 3630 3631 3632
     */
    REMOTE_PROC_DOMAIN_EVENT_LIFECYCLE = 107,

    /**
     * @generate: none
3633 3634 3635
     * @acl: domain:migrate
     * @acl: domain:start
     * @acl: domain:write
3636 3637 3638 3639 3640
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PREPARE2 = 108,

    /**
     * @generate: both
3641
     * @acl: domain:migrate
3642 3643 3644 3645 3646 3647
     */
    REMOTE_PROC_DOMAIN_MIGRATE_FINISH2 = 109,

    /**
     * @generate: server
     * @priority: high
3648
     * @acl: connect:getattr
3649
     */
3650
    REMOTE_PROC_CONNECT_GET_URI = 110,
3651 3652 3653 3654

    /**
     * @generate: both
     * @priority: high
3655 3656
     * @acl: connect:search_node_devices
     * @aclfilter: node_device:getattr
3657 3658 3659 3660 3661 3662
     */
    REMOTE_PROC_NODE_NUM_OF_DEVICES = 111,

    /**
     * @generate: both
     * @priority: high
3663 3664
     * @acl: connect:search_node_devices
     * @aclfilter: node_device:getattr
3665 3666 3667 3668 3669 3670
     */
    REMOTE_PROC_NODE_LIST_DEVICES = 112,

    /**
     * @generate: both
     * @priority: high
3671
     * @acl: node_device:getattr
3672 3673 3674 3675 3676
     */
    REMOTE_PROC_NODE_DEVICE_LOOKUP_BY_NAME = 113,

    /**
     * @generate: both
3677
     * @acl: node_device:read
3678 3679 3680 3681 3682 3683
     */
    REMOTE_PROC_NODE_DEVICE_GET_XML_DESC = 114,

    /**
     * @generate: client
     * @priority: high
3684
     * @acl: node_device:read
3685 3686 3687 3688 3689 3690
     */
    REMOTE_PROC_NODE_DEVICE_GET_PARENT = 115,

    /**
     * @generate: both
     * @priority: high
3691
     * @acl: node_device:read
3692 3693 3694 3695 3696 3697
     */
    REMOTE_PROC_NODE_DEVICE_NUM_OF_CAPS = 116,

    /**
     * @generate: both
     * @priority: high
3698
     * @acl: node_device:read
3699 3700 3701 3702 3703
     */
    REMOTE_PROC_NODE_DEVICE_LIST_CAPS = 117,

    /**
     * @generate: server
3704
     * @acl: node_device:dettach
3705 3706 3707 3708 3709
     */
    REMOTE_PROC_NODE_DEVICE_DETTACH = 118,

    /**
     * @generate: server
3710
     * @acl: node_device:dettach
3711 3712 3713 3714 3715
     */
    REMOTE_PROC_NODE_DEVICE_RE_ATTACH = 119,

    /**
     * @generate: server
3716
     * @acl: node_device:dettach
3717 3718 3719 3720 3721 3722
     */
    REMOTE_PROC_NODE_DEVICE_RESET = 120,

    /**
     * @generate: none
     * @priority: high
3723
     * @acl: domain:read
3724 3725 3726 3727 3728 3729
     */
    REMOTE_PROC_DOMAIN_GET_SECURITY_LABEL = 121,

    /**
     * @generate: none
     * @priority: high
3730
     * @acl: connect:read
3731 3732 3733 3734 3735
     */
    REMOTE_PROC_NODE_GET_SECURITY_MODEL = 122,

    /**
     * @generate: both
3736 3737
     * @acl: node_device:write
     * @acl: node_device:start
3738 3739 3740 3741 3742 3743
     */
    REMOTE_PROC_NODE_DEVICE_CREATE_XML = 123,

    /**
     * @generate: both
     * @priority: high
3744
     * @acl: node_device:stop
3745 3746 3747 3748 3749
     */
    REMOTE_PROC_NODE_DEVICE_DESTROY = 124,

    /**
     * @generate: both
3750
     * @acl: storage_vol:create
3751 3752 3753 3754 3755 3756
     */
    REMOTE_PROC_STORAGE_VOL_CREATE_XML_FROM = 125,

    /**
     * @generate: both
     * @priority: high
3757 3758
     * @acl: connect:search_interfaces
     * @aclfilter: interface:getattr
3759
     */
3760
    REMOTE_PROC_CONNECT_NUM_OF_INTERFACES = 126,
3761 3762 3763 3764

    /**
     * @generate: both
     * @priority: high
3765 3766
     * @acl: connect:search_interfaces
     * @aclfilter: interface:getattr
3767
     */
3768
    REMOTE_PROC_CONNECT_LIST_INTERFACES = 127,
3769 3770 3771 3772

    /**
     * @generate: both
     * @priority: high
3773
     * @acl: interface:getattr
3774 3775 3776 3777 3778 3779
     */
    REMOTE_PROC_INTERFACE_LOOKUP_BY_NAME = 128,

    /**
     * @generate: both
     * @priority: high
3780
     * @acl: interface:getattr
3781 3782 3783 3784 3785
     */
    REMOTE_PROC_INTERFACE_LOOKUP_BY_MAC_STRING = 129,

    /**
     * @generate: both
3786
     * @acl: interface:read
3787 3788 3789 3790 3791 3792
     */
    REMOTE_PROC_INTERFACE_GET_XML_DESC = 130,

    /**
     * @generate: both
     * @priority: high
3793 3794
     * @acl: interface:write
     * @acl: interface:save
3795 3796 3797 3798 3799 3800
     */
    REMOTE_PROC_INTERFACE_DEFINE_XML = 131,

    /**
     * @generate: both
     * @priority: high
3801
     * @acl: interface:delete
3802 3803 3804 3805 3806
     */
    REMOTE_PROC_INTERFACE_UNDEFINE = 132,

    /**
     * @generate: both
3807
     * @acl: interface:start
3808 3809 3810 3811 3812 3813
     */
    REMOTE_PROC_INTERFACE_CREATE = 133,

    /**
     * @generate: both
     * @priority: high
3814
     * @acl: interface:stop
3815 3816 3817 3818 3819
     */
    REMOTE_PROC_INTERFACE_DESTROY = 134,

    /**
     * @generate: both
3820
     * @acl: connect:read
3821
     */
3822
    REMOTE_PROC_CONNECT_DOMAIN_XML_FROM_NATIVE = 135,
3823 3824 3825

    /**
     * @generate: both
3826
     * @acl: connect:read
3827
     */
3828
    REMOTE_PROC_CONNECT_DOMAIN_XML_TO_NATIVE = 136,
3829 3830 3831 3832

    /**
     * @generate: both
     * @priority: high
3833 3834
     * @acl: connect:search_interfaces
     * @aclfilter: interface:getattr
3835
     */
3836
    REMOTE_PROC_CONNECT_NUM_OF_DEFINED_INTERFACES = 137,
3837 3838 3839 3840

    /**
     * @generate: both
     * @priority: high
3841 3842
     * @acl: connect:search_interfaces
     * @aclfilter: interface:getattr
3843
     */
3844
    REMOTE_PROC_CONNECT_LIST_DEFINED_INTERFACES = 138,
3845 3846 3847 3848

    /**
     * @generate: both
     * @priority: high
3849 3850
     * @acl: connect:search_secrets
     * @aclfilter: secret:getattr
3851
     */
3852
    REMOTE_PROC_CONNECT_NUM_OF_SECRETS = 139,
3853 3854 3855 3856

    /**
     * @generate: both
     * @priority: high
3857 3858
     * @acl: connect:search_secrets
     * @aclfilter: secret:getattr
3859
     */
3860
    REMOTE_PROC_CONNECT_LIST_SECRETS = 140,
3861 3862 3863 3864

    /**
     * @generate: both
     * @priority: high
3865
     * @acl: secret:getattr
3866 3867 3868 3869 3870 3871
     */
    REMOTE_PROC_SECRET_LOOKUP_BY_UUID = 141,

    /**
     * @generate: both
     * @priority: high
3872 3873
     * @acl: secret:write
     * @acl: secret:save
3874 3875 3876 3877 3878 3879
     */
    REMOTE_PROC_SECRET_DEFINE_XML = 142,

    /**
     * @generate: both
     * @priority: high
3880
     * @acl: secret:read
3881 3882 3883 3884 3885 3886
     */
    REMOTE_PROC_SECRET_GET_XML_DESC = 143,

    /**
     * @generate: both
     * @priority: high
3887
     * @acl: secret:write
3888 3889 3890 3891 3892 3893
     */
    REMOTE_PROC_SECRET_SET_VALUE = 144,

    /**
     * @generate: none
     * @priority: high
3894
     * @acl: secret:read_secure
3895 3896 3897 3898 3899 3900
     */
    REMOTE_PROC_SECRET_GET_VALUE = 145,

    /**
     * @generate: both
     * @priority: high
3901
     * @acl: secret:delete
3902 3903 3904 3905 3906 3907
     */
    REMOTE_PROC_SECRET_UNDEFINE = 146,

    /**
     * @generate: both
     * @priority: high
3908
     * @acl: secret:getattr
3909 3910 3911 3912 3913 3914
     */
    REMOTE_PROC_SECRET_LOOKUP_BY_USAGE = 147,

    /**
     * @generate: both
     * @writestream: 1
3915 3916 3917
     * @acl: domain:migrate
     * @acl: domain:start
     * @acl: domain:write
3918 3919 3920 3921 3922 3923
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL = 148,

    /**
     * @generate: server
     * @priority: high
3924
     * @acl: none
3925
     */
3926
    REMOTE_PROC_CONNECT_IS_SECURE = 149,
3927 3928 3929 3930

    /**
     * @generate: both
     * @priority: high
3931
     * @acl: domain:read
3932 3933 3934 3935 3936 3937
     */
    REMOTE_PROC_DOMAIN_IS_ACTIVE = 150,

    /**
     * @generate: both
     * @priority: high
3938
     * @acl: domain:read
3939 3940 3941 3942 3943 3944
     */
    REMOTE_PROC_DOMAIN_IS_PERSISTENT = 151,

    /**
     * @generate: both
     * @priority: high
3945
     * @acl: network:read
3946 3947 3948 3949 3950 3951
     */
    REMOTE_PROC_NETWORK_IS_ACTIVE = 152,

    /**
     * @generate: both
     * @priority: high
3952
     * @acl: network:read
3953 3954 3955 3956 3957 3958
     */
    REMOTE_PROC_NETWORK_IS_PERSISTENT = 153,

    /**
     * @generate: both
     * @priority: high
3959
     * @acl: storage_pool:read
3960 3961 3962 3963 3964 3965
     */
    REMOTE_PROC_STORAGE_POOL_IS_ACTIVE = 154,

    /**
     * @generate: both
     * @priority: high
3966
     * @acl: storage_pool:read
3967 3968 3969 3970 3971 3972
     */
    REMOTE_PROC_STORAGE_POOL_IS_PERSISTENT = 155,

    /**
     * @generate: both
     * @priority: high
3973
     * @acl: interface:read
3974 3975 3976 3977 3978 3979
     */
    REMOTE_PROC_INTERFACE_IS_ACTIVE = 156,

    /**
     * @generate: both
     * @priority: high
3980
     * @acl: connect:getattr
3981
     */
3982
    REMOTE_PROC_CONNECT_GET_LIB_VERSION = 157,
3983 3984 3985 3986

    /**
     * @generate: both
     * @priority: high
3987
     * @acl: connect:read
3988
     */
3989
    REMOTE_PROC_CONNECT_COMPARE_CPU = 158,
3990 3991 3992

    /**
     * @generate: none
3993
     * @acl: domain:read
3994 3995 3996 3997 3998
     */
    REMOTE_PROC_DOMAIN_MEMORY_STATS = 159,

    /**
     * @generate: both
3999 4000 4001
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4002 4003 4004 4005 4006
     */
    REMOTE_PROC_DOMAIN_ATTACH_DEVICE_FLAGS = 160,

    /**
     * @generate: both
4007 4008 4009
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4010 4011 4012 4013 4014
     */
    REMOTE_PROC_DOMAIN_DETACH_DEVICE_FLAGS = 161,

    /**
     * @generate: both
4015
     * @acl: connect:read
4016
     */
4017
    REMOTE_PROC_CONNECT_BASELINE_CPU = 162,
4018 4019 4020

    /**
     * @generate: both
4021
     * @acl: domain:read
4022 4023 4024 4025 4026
     */
    REMOTE_PROC_DOMAIN_GET_JOB_INFO = 163,

    /**
     * @generate: both
4027
     * @acl: domain:write
4028 4029 4030 4031 4032
     */
    REMOTE_PROC_DOMAIN_ABORT_JOB = 164,

    /**
     * @generate: both
4033
     * @acl: storage_vol:format
4034 4035 4036 4037 4038
     */
    REMOTE_PROC_STORAGE_VOL_WIPE = 165,

    /**
     * @generate: both
4039
     * @acl: domain:migrate
4040 4041 4042 4043 4044 4045
     */
    REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_DOWNTIME = 166,

    /**
     * @generate: none
     * @priority: high
4046
     * @acl: connect:read
4047
     */
4048
    REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER_ANY = 167,
4049 4050 4051 4052

    /**
     * @generate: none
     * @priority: high
4053
     * @acl: connect:read
4054
     */
4055
    REMOTE_PROC_CONNECT_DOMAIN_EVENT_DEREGISTER_ANY = 168,
4056 4057 4058

    /**
     * @generate: both
4059
     * @acl: none
4060 4061 4062 4063 4064
     */
    REMOTE_PROC_DOMAIN_EVENT_REBOOT = 169,

    /**
     * @generate: both
4065
     * @acl: none
4066 4067 4068 4069 4070
     */
    REMOTE_PROC_DOMAIN_EVENT_RTC_CHANGE = 170,

    /**
     * @generate: both
4071
     * @acl: none
4072 4073 4074 4075 4076
     */
    REMOTE_PROC_DOMAIN_EVENT_WATCHDOG = 171,

    /**
     * @generate: both
4077
     * @acl: none
4078 4079 4080 4081 4082
     */
    REMOTE_PROC_DOMAIN_EVENT_IO_ERROR = 172,

    /**
     * @generate: both
4083
     * @acl: none
4084 4085 4086 4087 4088
     */
    REMOTE_PROC_DOMAIN_EVENT_GRAPHICS = 173,

    /**
     * @generate: both
4089 4090 4091
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4092 4093 4094 4095 4096 4097
     */
    REMOTE_PROC_DOMAIN_UPDATE_DEVICE_FLAGS = 174,

    /**
     * @generate: both
     * @priority: high
4098
     * @acl: nwfilter:getattr
4099 4100 4101 4102 4103 4104
     */
    REMOTE_PROC_NWFILTER_LOOKUP_BY_NAME = 175,

    /**
     * @generate: both
     * @priority: high
4105
     * @acl: nwfilter:getattr
4106 4107 4108 4109 4110 4111
     */
    REMOTE_PROC_NWFILTER_LOOKUP_BY_UUID = 176,

    /**
     * @generate: both
     * @priority: high
4112
     * @acl: nwfilter:read
4113 4114 4115 4116 4117 4118
     */
    REMOTE_PROC_NWFILTER_GET_XML_DESC = 177,

    /**
     * @generate: both
     * @priority: high
4119 4120
     * @acl: connect:search_nwfilters
     * @aclfilter: nwfilter:getattr
4121
     */
4122
    REMOTE_PROC_CONNECT_NUM_OF_NWFILTERS = 178,
4123 4124 4125 4126

    /**
     * @generate: both
     * @priority: high
4127 4128
     * @acl: connect:search_nwfilters
     * @aclfilter: nwfilter:getattr
4129
     */
4130
    REMOTE_PROC_CONNECT_LIST_NWFILTERS = 179,
4131 4132 4133 4134

    /**
     * @generate: both
     * @priority: high
4135 4136
     * @acl: nwfilter:write
     * @acl: nwfilter:save
4137 4138 4139 4140 4141 4142
     */
    REMOTE_PROC_NWFILTER_DEFINE_XML = 180,

    /**
     * @generate: both
     * @priority: high
4143
     * @acl: nwfilter:delete
4144 4145 4146 4147 4148
     */
    REMOTE_PROC_NWFILTER_UNDEFINE = 181,

    /**
     * @generate: both
4149
     * @acl: domain:hibernate
4150 4151 4152 4153 4154
     */
    REMOTE_PROC_DOMAIN_MANAGED_SAVE = 182,

    /**
     * @generate: both
4155
     * @acl: domain:read
4156 4157 4158 4159 4160
     */
    REMOTE_PROC_DOMAIN_HAS_MANAGED_SAVE_IMAGE = 183,

    /**
     * @generate: both
4161
     * @acl: domain:hibernate
4162 4163 4164 4165 4166
     */
    REMOTE_PROC_DOMAIN_MANAGED_SAVE_REMOVE = 184,

    /**
     * @generate: both
4167
     * @acl: domain:snapshot
4168 4169 4170 4171 4172 4173
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_CREATE_XML = 185,

    /**
     * @generate: both
     * @priority: high
4174
     * @acl: domain:read
4175 4176 4177 4178 4179 4180
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_GET_XML_DESC = 186,

    /**
     * @generate: both
     * @priority: high
4181
     * @acl: domain:read
4182 4183 4184 4185 4186 4187
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_NUM = 187,

    /**
     * @generate: both
     * @priority: high
4188
     * @acl: domain:read
4189 4190 4191 4192 4193 4194
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_NAMES = 188,

    /**
     * @generate: both
     * @priority: high
4195
     * @acl: domain:read
4196 4197 4198 4199 4200
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_LOOKUP_BY_NAME = 189,

    /**
     * @generate: both
4201
     * @acl: domain:read
4202 4203 4204 4205 4206
     */
    REMOTE_PROC_DOMAIN_HAS_CURRENT_SNAPSHOT = 190,

    /**
     * @generate: both
4207
     * @acl: domain:read
4208 4209 4210 4211 4212
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_CURRENT = 191,

    /**
     * @generate: both
4213
     * @acl: domain:snapshot
4214 4215 4216 4217 4218
     */
    REMOTE_PROC_DOMAIN_REVERT_TO_SNAPSHOT = 192,

    /**
     * @generate: both
4219
     * @acl: domain:snapshot
4220 4221 4222 4223 4224
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_DELETE = 193,

    /**
     * @generate: both
4225
     * @acl: domain:read
4226 4227 4228 4229 4230
     */
    REMOTE_PROC_DOMAIN_GET_BLOCK_INFO = 194,

    /**
     * @generate: both
4231
     * @acl: none
4232 4233 4234 4235
     */
    REMOTE_PROC_DOMAIN_EVENT_IO_ERROR_REASON = 195,

    /**
4236
     * @generate: server
4237
     * @acl: domain:start
4238 4239 4240 4241 4242
     */
    REMOTE_PROC_DOMAIN_CREATE_WITH_FLAGS = 196,

    /**
     * @generate: both
4243 4244 4245
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4246 4247 4248 4249 4250
     */
    REMOTE_PROC_DOMAIN_SET_MEMORY_PARAMETERS = 197,

    /**
     * @generate: none
4251
     * @acl: domain:read
4252 4253 4254 4255 4256
     */
    REMOTE_PROC_DOMAIN_GET_MEMORY_PARAMETERS = 198,

    /**
     * @generate: both
4257 4258 4259
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4260 4261 4262 4263 4264
     */
    REMOTE_PROC_DOMAIN_SET_VCPUS_FLAGS = 199,

    /**
     * @generate: both
4265
     * @acl: domain:read
4266 4267 4268 4269 4270 4271
     */
    REMOTE_PROC_DOMAIN_GET_VCPUS_FLAGS = 200,

    /**
     * @generate: both
     * @readstream: 2
4272
     * @acl: domain:open_device
4273 4274 4275 4276 4277 4278
     */
    REMOTE_PROC_DOMAIN_OPEN_CONSOLE = 201,

    /**
     * @generate: both
     * @priority: high
4279
     * @acl: domain:read
4280 4281 4282 4283 4284 4285
     */
    REMOTE_PROC_DOMAIN_IS_UPDATED = 202,

    /**
     * @generate: both
     * @priority: high
4286
     * @acl: connect:read
4287
     */
4288
    REMOTE_PROC_CONNECT_GET_SYSINFO = 203,
4289 4290 4291

    /**
     * @generate: both
4292 4293 4294
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4295 4296 4297 4298 4299
     */
    REMOTE_PROC_DOMAIN_SET_MEMORY_FLAGS = 204,

    /**
     * @generate: both
4300 4301 4302
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4303 4304 4305 4306 4307
     */
    REMOTE_PROC_DOMAIN_SET_BLKIO_PARAMETERS = 205,

    /**
     * @generate: none
4308
     * @acl: domain:read
4309 4310 4311 4312 4313
     */
    REMOTE_PROC_DOMAIN_GET_BLKIO_PARAMETERS = 206,

    /**
     * @generate: both
4314
     * @acl: domain:migrate
4315 4316 4317 4318 4319 4320
     */
    REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_SPEED = 207,

    /**
     * @generate: both
     * @writestream: 1
4321
     * @acl: storage_vol:data_write
4322 4323 4324 4325 4326 4327
     */
    REMOTE_PROC_STORAGE_VOL_UPLOAD = 208,

    /**
     * @generate: both
     * @readstream: 1
4328
     * @acl: storage_vol:data_read
4329 4330 4331 4332 4333
     */
    REMOTE_PROC_STORAGE_VOL_DOWNLOAD = 209,

    /**
     * @generate: both
4334
     * @acl: domain:inject_nmi
4335 4336 4337 4338 4339 4340
     */
    REMOTE_PROC_DOMAIN_INJECT_NMI = 210,

    /**
     * @generate: both
     * @readstream: 1
4341
     * @acl: domain:screenshot
4342 4343 4344 4345 4346 4347
     */
    REMOTE_PROC_DOMAIN_SCREENSHOT = 211,

    /**
     * @generate: none
     * @priority: high
4348
     * @acl: domain:read
4349 4350 4351 4352 4353
     */
    REMOTE_PROC_DOMAIN_GET_STATE = 212,

    /**
     * @generate: none
4354
     * @acl: domain:migrate
4355 4356 4357 4358 4359
     */
    REMOTE_PROC_DOMAIN_MIGRATE_BEGIN3 = 213,

    /**
     * @generate: none
4360 4361 4362
     * @acl: domain:migrate
     * @acl: domain:start
     * @acl: domain:write
4363 4364 4365 4366 4367 4368
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PREPARE3 = 214,

    /**
     * @generate: server
     * @writestream: 1
4369 4370 4371
     * @acl: domain:migrate
     * @acl: domain:start
     * @acl: domain:write
4372 4373 4374 4375 4376
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL3 = 215,

    /**
     * @generate: none
4377
     * @acl: domain:migrate
4378 4379 4380 4381 4382
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PERFORM3 = 216,

    /**
     * @generate: none
4383
     * @acl: domain:migrate
4384 4385 4386 4387 4388
     */
    REMOTE_PROC_DOMAIN_MIGRATE_FINISH3 = 217,

    /**
     * @generate: none
4389
     * @acl: domain:migrate
4390 4391 4392 4393 4394
     */
    REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3 = 218,

    /**
     * @generate: both
4395 4396 4397
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4398 4399 4400 4401 4402
     */
    REMOTE_PROC_DOMAIN_SET_SCHEDULER_PARAMETERS_FLAGS = 219,

    /**
     * @generate: both
4403
     * @acl: connect:interface_transaction
4404 4405 4406 4407 4408
     */
    REMOTE_PROC_INTERFACE_CHANGE_BEGIN = 220,

    /**
     * @generate: both
4409
     * @acl: connect:interface_transaction
4410 4411 4412 4413 4414
     */
    REMOTE_PROC_INTERFACE_CHANGE_COMMIT = 221,

    /**
     * @generate: both
4415
     * @acl: connect:interface_transaction
4416 4417 4418 4419 4420
     */
    REMOTE_PROC_INTERFACE_CHANGE_ROLLBACK = 222,

    /**
     * @generate: client
4421
     * @acl: domain:read
4422 4423 4424 4425 4426
     */
    REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS_FLAGS = 223,

    /**
     * @generate: none
4427
     * @acl: none
4428 4429 4430 4431 4432
     */
    REMOTE_PROC_DOMAIN_EVENT_CONTROL_ERROR = 224,

    /**
     * @generate: both
4433 4434 4435
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4436 4437 4438 4439 4440
     */
    REMOTE_PROC_DOMAIN_PIN_VCPU_FLAGS = 225,

    /**
     * @generate: both
4441
     * @acl: domain:send_input
4442 4443 4444 4445 4446 4447
     */
    REMOTE_PROC_DOMAIN_SEND_KEY = 226,

    /**
     * @generate: none
     * @priority: high
4448
     * @acl: connect:read
4449 4450 4451 4452 4453 4454
     */
    REMOTE_PROC_NODE_GET_CPU_STATS = 227,

    /**
     * @generate: none
     * @priority: high
4455
     * @acl: connect:read
4456 4457 4458 4459 4460 4461
     */
    REMOTE_PROC_NODE_GET_MEMORY_STATS = 228,

    /**
     * @generate: both
     * @priority: high
4462
     * @acl: domain:read
4463 4464 4465 4466 4467
     */
    REMOTE_PROC_DOMAIN_GET_CONTROL_INFO = 229,

    /**
     * @generate: none
4468
     * @acl: domain:read
4469 4470 4471 4472 4473 4474
     */
    REMOTE_PROC_DOMAIN_GET_VCPU_PIN_INFO = 230,

    /**
     * @generate: both
     * @priority: high
4475
     * @acl: domain:delete
4476 4477 4478 4479 4480
     */
    REMOTE_PROC_DOMAIN_UNDEFINE_FLAGS = 231,

    /**
     * @generate: both
4481
     * @acl: domain:hibernate
4482 4483 4484 4485 4486
     */
    REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232,

    /**
     * @generate: both
4487 4488
     * @acl: domain:start
     * @acl: domain:write
4489 4490 4491 4492 4493 4494
     */
    REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233,

    /**
     * @generate: both
     * @priority: high
4495
     * @acl: domain:stop
4496 4497 4498 4499 4500 4501
     */
    REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234,

    /**
     * @generate: both
     * @priority: high
4502
     * @acl: domain:read
4503 4504 4505 4506 4507 4508
     */
    REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235,

    /**
     * @generate: both
     * @priority: high
4509 4510
     * @acl: domain:write
     * @acl: domain:hibernate
4511 4512 4513 4514 4515
     */
    REMOTE_PROC_DOMAIN_SAVE_IMAGE_DEFINE_XML = 236,

    /**
     * @generate: both
4516
     * @acl: domain:write
4517 4518 4519 4520 4521
     */
    REMOTE_PROC_DOMAIN_BLOCK_JOB_ABORT = 237,

    /**
     * @generate: none
4522
     * @acl: domain:read
4523 4524 4525 4526 4527
     */
    REMOTE_PROC_DOMAIN_GET_BLOCK_JOB_INFO = 238,

    /**
     * @generate: both
4528
     * @acl: domain:write
4529 4530 4531 4532 4533
     */
    REMOTE_PROC_DOMAIN_BLOCK_JOB_SET_SPEED = 239,

    /**
     * @generate: both
4534
     * @acl: domain:block_write
4535 4536 4537 4538 4539
     */
    REMOTE_PROC_DOMAIN_BLOCK_PULL = 240,

    /**
     * @generate: none
4540
     * @acl: none
4541 4542 4543 4544 4545
     */
    REMOTE_PROC_DOMAIN_EVENT_BLOCK_JOB = 241,

    /**
     * @generate: both
4546
     * @acl: domain:migrate
4547 4548 4549 4550 4551
     */
    REMOTE_PROC_DOMAIN_MIGRATE_GET_MAX_SPEED = 242,

    /**
     * @generate: none
4552
     * @acl: domain:read
4553 4554 4555 4556 4557 4558
     */
    REMOTE_PROC_DOMAIN_BLOCK_STATS_FLAGS = 243,

    /**
     * @generate: both
     * @priority: high
4559
     * @acl: domain:read
4560 4561 4562 4563 4564
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_GET_PARENT = 244,

    /**
     * @generate: both
4565
     * @acl: domain:reset
4566 4567 4568 4569 4570 4571
     */
    REMOTE_PROC_DOMAIN_RESET = 245,

    /**
     * @generate: both
     * @priority: high
4572
     * @acl: domain:read
4573 4574 4575 4576 4577 4578
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_NUM_CHILDREN = 246,

    /**
     * @generate: both
     * @priority: high
4579
     * @acl: domain:read
4580 4581 4582 4583 4584
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_CHILDREN_NAMES = 247,

    /**
     * @generate: none
4585
     * @acl: none
4586 4587 4588 4589 4590
     */
    REMOTE_PROC_DOMAIN_EVENT_DISK_CHANGE = 248,

    /**
     * @generate: none
4591
     * @acl: domain:open_graphics
4592 4593 4594 4595 4596
     */
    REMOTE_PROC_DOMAIN_OPEN_GRAPHICS = 249,

    /**
     * @generate: both
4597
     * @acl: connect:pm_control
4598 4599 4600 4601 4602
     */
    REMOTE_PROC_NODE_SUSPEND_FOR_DURATION = 250,

    /**
     * @generate: both
4603
     * @acl: domain:block_write
4604 4605 4606 4607 4608
     */
    REMOTE_PROC_DOMAIN_BLOCK_RESIZE = 251,

    /**
     * @generate: both
4609 4610 4611
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4612 4613 4614 4615 4616
     */
    REMOTE_PROC_DOMAIN_SET_BLOCK_IO_TUNE = 252,

    /**
     * @generate: none
4617
     * @acl: domain:read
4618 4619 4620 4621 4622
     */
    REMOTE_PROC_DOMAIN_GET_BLOCK_IO_TUNE = 253,

    /**
     * @generate: both
4623 4624 4625
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4626 4627 4628 4629 4630
     */
    REMOTE_PROC_DOMAIN_SET_NUMA_PARAMETERS = 254,

    /**
     * @generate: none
4631
     * @acl: domain:read
4632 4633 4634 4635 4636
     */
    REMOTE_PROC_DOMAIN_GET_NUMA_PARAMETERS = 255,

    /**
     * @generate: both
4637 4638 4639
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4640 4641 4642 4643 4644
     */
    REMOTE_PROC_DOMAIN_SET_INTERFACE_PARAMETERS = 256,

    /**
     * @generate: none
4645
     * @acl: domain:read
4646 4647 4648 4649 4650
     */
    REMOTE_PROC_DOMAIN_GET_INTERFACE_PARAMETERS = 257,

    /**
     * @generate: both
4651
     * @acl: domain:init_control
4652 4653 4654 4655 4656
     */
    REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS = 258,

    /**
     * @generate: both
4657
     * @acl: storage_vol:format
4658 4659 4660 4661 4662
     */
    REMOTE_PROC_STORAGE_VOL_WIPE_PATTERN = 259,

    /**
     * @generate: both
4663
     * @acl: storage_vol:resize
4664 4665 4666 4667 4668
     */
    REMOTE_PROC_STORAGE_VOL_RESIZE = 260,

    /**
     * @generate: both
4669
     * @acl: domain:pm_control
4670 4671 4672 4673 4674
     */
    REMOTE_PROC_DOMAIN_PM_SUSPEND_FOR_DURATION = 261,

    /**
     * @generate: none
4675
     * @acl: domain:read
4676 4677 4678 4679 4680
     */
    REMOTE_PROC_DOMAIN_GET_CPU_STATS = 262,

    /**
     * @generate: none
4681
     * @acl: domain:read
4682 4683 4684 4685 4686
     */
    REMOTE_PROC_DOMAIN_GET_DISK_ERRORS = 263,

    /**
     * @generate: both
4687 4688 4689
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4690 4691 4692 4693 4694
     */
    REMOTE_PROC_DOMAIN_SET_METADATA = 264,

    /**
     * @generate: both
4695
     * @acl: domain:read
4696 4697 4698 4699 4700
     */
    REMOTE_PROC_DOMAIN_GET_METADATA = 265,

    /**
     * @generate: both
4701
     * @acl: domain:block_write
4702 4703 4704 4705 4706
     */
    REMOTE_PROC_DOMAIN_BLOCK_REBASE = 266,

    /**
     * @generate: both
4707
     * @acl: domain:pm_control
4708 4709 4710 4711 4712
     */
    REMOTE_PROC_DOMAIN_PM_WAKEUP = 267,

    /**
     * @generate: both
4713
     * @acl: none
4714 4715 4716 4717 4718
     */
    REMOTE_PROC_DOMAIN_EVENT_TRAY_CHANGE = 268,

    /**
     * @generate: both
4719
     * @acl: none
4720 4721 4722 4723 4724
     */
    REMOTE_PROC_DOMAIN_EVENT_PMWAKEUP = 269,

    /**
     * @generate: both
4725
     * @acl: none
4726 4727 4728 4729 4730
     */
    REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND = 270,

    /**
     * @generate: both
4731
     * @acl: domain:read
4732 4733 4734 4735 4736
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_IS_CURRENT = 271,

    /**
     * @generate: both
4737
     * @acl: domain:read
4738 4739 4740 4741 4742 4743
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_HAS_METADATA = 272,

    /**
     * @generate: none
     * @priority: high
4744 4745
     * @acl: connect:search_domains
     * @aclfilter: domain:getattr
4746 4747 4748 4749 4750 4751
     */
    REMOTE_PROC_CONNECT_LIST_ALL_DOMAINS = 273,

    /**
     * @generate: none
     * @priority: high
4752
     * @acl: domain:read
4753 4754 4755 4756 4757 4758
     */
    REMOTE_PROC_DOMAIN_LIST_ALL_SNAPSHOTS = 274,

    /**
     * @generate: none
     * @priority: high
4759
     * @acl: domain:read
4760 4761 4762 4763 4764
     */
    REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_ALL_CHILDREN = 275,

    /**
     * @generate: both
4765
     * @acl: none
4766 4767 4768 4769 4770
     */
    REMOTE_PROC_DOMAIN_EVENT_BALLOON_CHANGE = 276,

    /**
     * @generate: both
4771
     * @acl: domain:read
4772 4773 4774 4775 4776 4777
     */
    REMOTE_PROC_DOMAIN_GET_HOSTNAME = 277,

    /**
     * @generate: none
     * @priority: high
4778
     * @acl: domain:read
4779 4780 4781 4782 4783
     */
    REMOTE_PROC_DOMAIN_GET_SECURITY_LABEL_LIST = 278,

    /**
     * @generate: none
4784 4785 4786
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
4787 4788 4789 4790 4791
     */
    REMOTE_PROC_DOMAIN_PIN_EMULATOR = 279,

    /**
     * @generate: none
4792
     * @acl: domain:read
4793 4794 4795 4796 4797 4798
     */
    REMOTE_PROC_DOMAIN_GET_EMULATOR_PIN_INFO = 280,

    /**
     * @generate: none
     * @priority: high
4799 4800
     * @acl: connect:search_storage_pools
     * @aclfilter: storage_pool:getattr
4801 4802 4803 4804 4805 4806
     */
    REMOTE_PROC_CONNECT_LIST_ALL_STORAGE_POOLS = 281,

    /**
     * @generate: none
     * @priority: high
4807 4808
     * @acl: storage_pool:search_storage_vols
     * @aclfilter: storage_vol:getattr
4809 4810 4811 4812 4813 4814
     */
    REMOTE_PROC_STORAGE_POOL_LIST_ALL_VOLUMES = 282,

    /**
     * @generate: none
     * @priority: high
4815 4816
     * @acl: connect:search_networks
     * @aclfilter: network:getattr
4817 4818 4819 4820 4821 4822
     */
    REMOTE_PROC_CONNECT_LIST_ALL_NETWORKS = 283,

    /**
     * @generate: none
     * @priority: high
4823 4824
     * @acl: connect:search_interfaces
     * @aclfilter: interface:getattr
4825 4826 4827 4828 4829 4830
     */
    REMOTE_PROC_CONNECT_LIST_ALL_INTERFACES = 284,

    /**
     * @generate: none
     * @priority: high
4831 4832
     * @acl: connect:search_node_devices
     * @aclfilter: node_device:getattr
4833 4834 4835 4836 4837 4838
     */
    REMOTE_PROC_CONNECT_LIST_ALL_NODE_DEVICES = 285,

    /**
     * @generate: none
     * @priority: high
4839 4840
     * @acl: connect:search_nwfilters
     * @aclfilter: nwfilter:getattr
4841 4842 4843 4844 4845 4846
     */
    REMOTE_PROC_CONNECT_LIST_ALL_NWFILTERS = 286,

    /**
     * @generate: none
     * @priority: high
4847 4848
     * @acl: connect:search_secrets
     * @aclfilter: secret:getattr
4849 4850 4851 4852 4853
     */
    REMOTE_PROC_CONNECT_LIST_ALL_SECRETS = 287,

    /**
     * @generate: both
4854
     * @acl: connect:write
4855 4856 4857 4858 4859
     */
    REMOTE_PROC_NODE_SET_MEMORY_PARAMETERS = 288,

    /**
     * @generate: none
4860
     * @acl: connect:read
4861 4862 4863 4864 4865
     */
    REMOTE_PROC_NODE_GET_MEMORY_PARAMETERS = 289,

    /**
     * @generate: both
4866
     * @acl: domain:block_write
4867 4868 4869 4870 4871 4872
     */
    REMOTE_PROC_DOMAIN_BLOCK_COMMIT = 290,

    /**
     * @generate: both
     * @priority: high
4873 4874 4875
     * @acl: network:write
     * @acl: network:save:!VIR_NETWORK_UPDATE_AFFECT_CONFIG|VIR_NETWORK_UPDATE_AFFECT_LIVE
     * @acl: network:save:VIR_NETWORK_UPDATE_AFFECT_CONFIG
4876 4877 4878 4879 4880
     */
    REMOTE_PROC_NETWORK_UPDATE = 291,

    /**
     * @generate: both
4881
     * @acl: none
4882 4883 4884 4885 4886
     */
    REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND_DISK = 292,

    /**
     * @generate: none
4887
     * @acl: connect:read
4888 4889 4890 4891 4892
     */
    REMOTE_PROC_NODE_GET_CPU_MAP = 293,

    /**
     * @generate: both
4893
     * @acl: domain:fs_trim
4894 4895 4896 4897 4898
     */
    REMOTE_PROC_DOMAIN_FSTRIM = 294,

    /**
     * @generate: both
4899
     * @acl: domain:send_signal
4900 4901 4902 4903 4904 4905
     */
    REMOTE_PROC_DOMAIN_SEND_PROCESS_SIGNAL = 295,

    /**
     * @generate: both
     * @readstream: 2
4906
     * @acl: domain:open_device
4907 4908 4909 4910 4911 4912
     */
    REMOTE_PROC_DOMAIN_OPEN_CHANNEL = 296,

    /**
     * @generate: both
     * @priority: high
4913
     * @acl: node_device:getattr
4914 4915 4916 4917 4918
     */
    REMOTE_PROC_NODE_DEVICE_LOOKUP_SCSI_HOST_BY_WWN = 297,

    /**
     * @generate: none
4919
     * @acl: domain:read
4920 4921 4922 4923 4924
     */
    REMOTE_PROC_DOMAIN_GET_JOB_STATS = 298,

    /**
     * @generate: both
4925
     * @acl: domain:migrate
4926 4927 4928 4929 4930
     */
    REMOTE_PROC_DOMAIN_MIGRATE_GET_COMPRESSION_CACHE = 299,

    /**
     * @generate: both
4931
     * @acl: domain:migrate
4932
     */
4933 4934 4935 4936
    REMOTE_PROC_DOMAIN_MIGRATE_SET_COMPRESSION_CACHE = 300,

    /**
     * @generate: server
4937
     * @acl: node_device:dettach
4938
     */
4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978
    REMOTE_PROC_NODE_DEVICE_DETACH_FLAGS = 301,

    /**
     * @generate: none
     * @acl: domain:migrate
     */
    REMOTE_PROC_DOMAIN_MIGRATE_BEGIN3_PARAMS = 302,

    /**
     * @generate: none
     * @acl: domain:migrate
     * @acl: domain:start
     * @acl: domain:write
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PREPARE3_PARAMS = 303,

    /**
     * @generate: none
     * @acl: domain:migrate
     * @acl: domain:start
     * @acl: domain:write
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PREPARE_TUNNEL3_PARAMS = 304,

    /**
     * @generate: none
     * @acl: domain:migrate
     */
    REMOTE_PROC_DOMAIN_MIGRATE_PERFORM3_PARAMS = 305,

    /**
     * @generate: none
     * @acl: domain:migrate
     */
    REMOTE_PROC_DOMAIN_MIGRATE_FINISH3_PARAMS = 306,

    /**
     * @generate: none
     * @acl: domain:migrate
     */
4979
    REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3_PARAMS = 307,
4980

4981 4982 4983 4984 4985 4986
    /**
     * @generate: both
     * @acl: domain:write
     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
     */
4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999
    REMOTE_PROC_DOMAIN_SET_MEMORY_STATS_PERIOD = 308,

    /**
     * @generate: none
     * @acl: domain:write
     * @acl: domain:start
     */
    REMOTE_PROC_DOMAIN_CREATE_XML_WITH_FILES = 309,

    /**
     * @generate: none
     * @acl: domain:start
     */
5000 5001 5002 5003 5004 5005 5006
    REMOTE_PROC_DOMAIN_CREATE_WITH_FILES = 310,

    /**
     * @generate: both
     * @acl: none
     */
    REMOTE_PROC_DOMAIN_EVENT_DEVICE_REMOVED = 311
5007
};