2010-12-16 15:07:07 +00:00
|
|
|
/*
|
|
|
|
* qemu_capabilities.h: QEMU capabilities generation
|
|
|
|
*
|
2016-01-08 10:45:06 +00:00
|
|
|
* Copyright (C) 2006-2016 Red Hat, Inc.
|
2010-12-16 15:07:07 +00:00
|
|
|
* Copyright (C) 2006 Daniel P. Berrange
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-09-20 22:30:55 +00:00
|
|
|
* License along with this library. If not, see
|
2012-07-21 10:06:23 +00:00
|
|
|
* <http://www.gnu.org/licenses/>.
|
2010-12-16 15:07:07 +00:00
|
|
|
*
|
|
|
|
* Author: Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __QEMU_CAPABILITIES_H__
|
|
|
|
# define __QEMU_CAPABILITIES_H__
|
|
|
|
|
2012-08-20 16:44:14 +00:00
|
|
|
# include "virobject.h"
|
2010-12-16 15:07:07 +00:00
|
|
|
# include "capabilities.h"
|
2012-12-12 16:27:01 +00:00
|
|
|
# include "vircommand.h"
|
2012-09-13 14:54:02 +00:00
|
|
|
# include "qemu_monitor.h"
|
2014-06-25 16:39:29 +00:00
|
|
|
# include "domain_capabilities.h"
|
2016-05-17 22:45:27 +00:00
|
|
|
# include "virfirmware.h"
|
2010-12-16 15:07:07 +00:00
|
|
|
|
2015-11-05 11:49:40 +00:00
|
|
|
/*
|
|
|
|
* Internal flags to keep track of qemu command line capabilities
|
|
|
|
*
|
|
|
|
* As a general rule these flags must not be deleted / renamed, as
|
|
|
|
* they are serialized in string format into the runtime XML file
|
|
|
|
* for guests, and new libvirt needs to cope with reading flags
|
|
|
|
* defined by old libvirt.
|
|
|
|
*
|
|
|
|
* The exception to this rule is when we drop support for running
|
|
|
|
* with older QEMU versions entirely. When a flag is no longer needed
|
|
|
|
* we temporarily give it an X_ prefix to indicate it should no
|
|
|
|
* longer be used in code. Periodically we can then purge all the
|
|
|
|
* X_ flags and re-group what's left.
|
|
|
|
*/
|
2014-06-15 16:32:56 +00:00
|
|
|
typedef enum {
|
2015-10-06 14:28:25 +00:00
|
|
|
/* 0 */
|
2015-11-05 11:49:40 +00:00
|
|
|
X_QEMU_CAPS_KQEMU, /* Whether KQEMU is compiled in */
|
2015-11-05 11:56:47 +00:00
|
|
|
X_QEMU_CAPS_VNC_COLON, /* VNC takes or address + display */
|
2015-11-05 12:17:50 +00:00
|
|
|
X_QEMU_CAPS_NO_REBOOT, /* Is the -no-reboot flag available */
|
2015-11-06 14:28:57 +00:00
|
|
|
X_QEMU_CAPS_DRIVE, /* Is the new -drive arg available */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_DRIVE_BOOT, /* Does -drive support boot=on */
|
|
|
|
|
|
|
|
/* 5 */
|
2015-11-06 14:29:41 +00:00
|
|
|
X_QEMU_CAPS_NAME, /* Is the -name flag available */
|
2015-11-06 14:29:52 +00:00
|
|
|
X_QEMU_CAPS_UUID, /* Is the -uuid flag available */
|
2015-11-06 14:44:35 +00:00
|
|
|
X_QEMU_CAPS_DOMID, /* Xenner: -domid flag available */
|
2015-11-06 15:48:44 +00:00
|
|
|
X_QEMU_CAPS_VNET_HDR,
|
2015-11-06 16:50:26 +00:00
|
|
|
X_QEMU_CAPS_MIGRATE_KVM_STDIO, /* avoid kvm tcp migration bug */
|
2015-10-06 14:28:25 +00:00
|
|
|
|
|
|
|
/* 10 */
|
2015-11-06 16:50:26 +00:00
|
|
|
X_QEMU_CAPS_MIGRATE_QEMU_TCP, /* have qemu tcp migration */
|
|
|
|
X_QEMU_CAPS_MIGRATE_QEMU_EXEC, /* have qemu exec migration */
|
2015-11-06 17:26:08 +00:00
|
|
|
X_QEMU_CAPS_DRIVE_CACHE_V2, /* cache= flag wanting new v2 values */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_KVM, /* Whether KVM is enabled by default */
|
2015-11-06 18:20:20 +00:00
|
|
|
X_QEMU_CAPS_DRIVE_FORMAT, /* Is -drive format= avail */
|
2015-10-06 14:28:25 +00:00
|
|
|
|
|
|
|
/* 15 */
|
2015-11-09 15:39:54 +00:00
|
|
|
X_QEMU_CAPS_VGA, /* Is -vga avail */
|
2015-11-09 16:20:08 +00:00
|
|
|
X_QEMU_CAPS_0_10, /* features added in qemu-0.10.0 or later */
|
2016-05-20 12:41:49 +00:00
|
|
|
X_QEMU_CAPS_PCIDEVICE, /* PCI device assignment supported */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_MEM_PATH, /* mmap'ped guest backing supported */
|
|
|
|
QEMU_CAPS_DRIVE_SERIAL, /* -driver serial= available */
|
|
|
|
|
|
|
|
/* 20 */
|
2015-11-06 14:44:35 +00:00
|
|
|
X_QEMU_CAPS_XEN_DOMID, /* -xen-domid */
|
2015-11-06 16:50:26 +00:00
|
|
|
X_QEMU_CAPS_MIGRATE_QEMU_UNIX, /* qemu migration via unix sockets */
|
2017-06-26 17:13:00 +00:00
|
|
|
X_QEMU_CAPS_CHARDEV, /* Is the new -chardev arg available */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_ENABLE_KVM, /* -enable-kvm flag */
|
|
|
|
QEMU_CAPS_MONITOR_JSON, /* JSON mode for monitor */
|
|
|
|
|
|
|
|
/* 25 */
|
2016-04-06 12:29:26 +00:00
|
|
|
X_QEMU_CAPS_BALLOON, /* -balloon available */
|
2016-05-20 12:33:58 +00:00
|
|
|
X_QEMU_CAPS_DEVICE, /* Is the -device arg available */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_SDL, /* Is the new -sdl arg available */
|
2016-06-23 11:29:16 +00:00
|
|
|
X_QEMU_CAPS_SMP_TOPOLOGY, /* -smp has sockets/cores/threads */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_NETDEV, /* -netdev flag & netdev_add/remove */
|
|
|
|
|
|
|
|
/* 30 */
|
|
|
|
QEMU_CAPS_RTC, /* The -rtc flag for clock options */
|
|
|
|
QEMU_CAPS_VHOST_NET, /* vhost-net support available */
|
|
|
|
QEMU_CAPS_RTC_TD_HACK, /* -rtc-td-hack available */
|
|
|
|
QEMU_CAPS_NO_HPET, /* -no-hpet flag is supported */
|
|
|
|
QEMU_CAPS_NO_KVM_PIT, /* -no-kvm-pit-reinjection supported */
|
|
|
|
|
|
|
|
/* 35 */
|
|
|
|
QEMU_CAPS_TDF, /* -tdf flag (user-mode pit catchup) */
|
|
|
|
QEMU_CAPS_PCI_CONFIGFD, /* pci-assign.configfd */
|
|
|
|
QEMU_CAPS_NODEFCONFIG, /* -nodefconfig */
|
|
|
|
QEMU_CAPS_BOOT_MENU, /* -boot menu=on support */
|
2015-11-05 11:49:40 +00:00
|
|
|
X_QEMU_CAPS_ENABLE_KQEMU, /* -enable-kqemu flag */
|
2015-10-06 14:28:25 +00:00
|
|
|
|
|
|
|
/* 40 */
|
|
|
|
QEMU_CAPS_FSDEV, /* -fstype filesystem passthrough */
|
|
|
|
QEMU_CAPS_NESTING, /* -enable-nesting (SVM/VMX) */
|
|
|
|
QEMU_CAPS_NAME_PROCESS, /* Is -name process= available */
|
2016-05-20 12:25:22 +00:00
|
|
|
X_QEMU_CAPS_DRIVE_READONLY, /* -drive readonly=on|off */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_SMBIOS_TYPE, /* Is -smbios type= available */
|
|
|
|
|
|
|
|
/* 45 */
|
2016-10-11 15:46:39 +00:00
|
|
|
X_QEMU_CAPS_VGA_QXL, /* The 'qxl' arg for '-vga' */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_SPICE, /* Is -spice avail */
|
|
|
|
QEMU_CAPS_VGA_NONE, /* The 'none' arg for '-vga' */
|
2015-11-06 16:50:26 +00:00
|
|
|
X_QEMU_CAPS_MIGRATE_QEMU_FD, /* -incoming fd:n */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_BOOTINDEX, /* -device bootindex property */
|
|
|
|
|
|
|
|
/* 50 */
|
|
|
|
QEMU_CAPS_HDA_DUPLEX, /* -device hda-duplex */
|
|
|
|
QEMU_CAPS_DRIVE_AIO, /* -drive aio= supported */
|
2017-03-02 14:40:29 +00:00
|
|
|
X_QEMU_CAPS_PCI_MULTIBUS, /* bus=pci.0 vs bus=pci */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_PCI_BOOTINDEX, /* pci-assign.bootindex */
|
|
|
|
QEMU_CAPS_CCID_EMULATED, /* -device ccid-card-emulated */
|
|
|
|
|
|
|
|
/* 55 */
|
|
|
|
QEMU_CAPS_CCID_PASSTHRU, /* -device ccid-card-passthru */
|
|
|
|
QEMU_CAPS_CHARDEV_SPICEVMC, /* newer -chardev spicevmc */
|
|
|
|
QEMU_CAPS_DEVICE_SPICEVMC, /* older -device spicevmc*/
|
|
|
|
QEMU_CAPS_VIRTIO_TX_ALG, /* -device virtio-net-pci,tx=string */
|
2016-10-11 15:42:37 +00:00
|
|
|
X_QEMU_CAPS_DEVICE_QXL_VGA, /* primary qxl device named qxl-vga? */
|
2015-10-06 14:28:25 +00:00
|
|
|
|
|
|
|
/* 60 */
|
|
|
|
QEMU_CAPS_PCI_MULTIFUNCTION, /* -device multifunction=on|off */
|
|
|
|
QEMU_CAPS_VIRTIO_IOEVENTFD, /* virtio-{net|blk}-pci.ioeventfd=on */
|
|
|
|
QEMU_CAPS_SGA, /* Serial Graphics Adapter */
|
|
|
|
QEMU_CAPS_VIRTIO_BLK_EVENT_IDX, /* virtio-blk-pci.event_idx */
|
|
|
|
QEMU_CAPS_VIRTIO_NET_EVENT_IDX, /* virtio-net-pci.event_idx */
|
|
|
|
|
|
|
|
/* 65 */
|
|
|
|
QEMU_CAPS_DRIVE_CACHE_DIRECTSYNC, /* Is cache=directsync supported? */
|
|
|
|
QEMU_CAPS_PIIX3_USB_UHCI, /* -device piix3-usb-uhci */
|
|
|
|
QEMU_CAPS_PIIX4_USB_UHCI, /* -device piix4-usb-uhci */
|
|
|
|
QEMU_CAPS_USB_EHCI, /* -device usb-ehci */
|
|
|
|
QEMU_CAPS_ICH9_USB_EHCI1, /* -device ich9-usb-ehci1 and friends */
|
|
|
|
|
|
|
|
/* 70 */
|
|
|
|
QEMU_CAPS_VT82C686B_USB_UHCI, /* -device vt82c686b-usb-uhci */
|
|
|
|
QEMU_CAPS_PCI_OHCI, /* -device pci-ohci */
|
|
|
|
QEMU_CAPS_USB_REDIR, /* -device usb-redir */
|
|
|
|
QEMU_CAPS_USB_HUB, /* -device usb-hub */
|
|
|
|
QEMU_CAPS_NO_SHUTDOWN, /* usable -no-shutdown */
|
|
|
|
|
|
|
|
/* 75 */
|
|
|
|
QEMU_CAPS_DRIVE_CACHE_UNSAFE, /* Is cache=unsafe supported? */
|
2016-05-16 07:51:42 +00:00
|
|
|
X_QEMU_CAPS_PCI_ROMBAR, /* -device rombar=0|1 */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_ICH9_AHCI, /* -device ich9-ahci */
|
|
|
|
QEMU_CAPS_NO_ACPI, /* -no-acpi */
|
|
|
|
QEMU_CAPS_FSDEV_READONLY, /* -fsdev readonly supported */
|
|
|
|
|
|
|
|
/* 80 */
|
|
|
|
QEMU_CAPS_VIRTIO_BLK_SCSI, /* virtio-blk-pci.scsi */
|
2016-05-16 08:29:57 +00:00
|
|
|
X_QEMU_CAPS_VIRTIO_BLK_SG_IO, /* SG_IO commands */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_DRIVE_COPY_ON_READ, /* -drive copy-on-read */
|
2016-05-16 08:08:29 +00:00
|
|
|
X_QEMU_CAPS_CPU_HOST, /* support for -cpu host */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_FSDEV_WRITEOUT, /* -fsdev writeout supported */
|
|
|
|
|
|
|
|
/* 85 */
|
|
|
|
QEMU_CAPS_DRIVE_IOTUNE, /* -drive bps= and friends */
|
|
|
|
QEMU_CAPS_WAKEUP, /* system_wakeup monitor command */
|
|
|
|
QEMU_CAPS_SCSI_DISK_CHANNEL, /* Is scsi-disk.channel available? */
|
|
|
|
QEMU_CAPS_SCSI_BLOCK, /* -device scsi-block */
|
|
|
|
QEMU_CAPS_TRANSACTION, /* transaction monitor command */
|
|
|
|
|
|
|
|
/* 90 */
|
|
|
|
QEMU_CAPS_BLOCKJOB_SYNC, /* old block_job_cancel, block_stream */
|
|
|
|
QEMU_CAPS_BLOCKJOB_ASYNC, /* new block-job-cancel, block-stream */
|
|
|
|
QEMU_CAPS_SCSI_CD, /* -device scsi-cd */
|
|
|
|
QEMU_CAPS_IDE_CD, /* -device ide-cd */
|
|
|
|
QEMU_CAPS_NO_USER_CONFIG, /* -no-user-config */
|
|
|
|
|
|
|
|
/* 95 */
|
|
|
|
QEMU_CAPS_HDA_MICRO, /* -device hda-micro */
|
|
|
|
QEMU_CAPS_DUMP_GUEST_MEMORY, /* dump-guest-memory command */
|
|
|
|
QEMU_CAPS_NEC_USB_XHCI, /* -device nec-usb-xhci */
|
|
|
|
QEMU_CAPS_VIRTIO_S390, /* -device virtio-*-s390 */
|
|
|
|
QEMU_CAPS_BALLOON_EVENT, /* Async event for balloon changes */
|
|
|
|
|
|
|
|
/* 100 */
|
|
|
|
QEMU_CAPS_NETDEV_BRIDGE, /* bridge helper support */
|
|
|
|
QEMU_CAPS_SCSI_LSI, /* -device lsi */
|
|
|
|
QEMU_CAPS_VIRTIO_SCSI, /* -device virtio-scsi-* */
|
|
|
|
QEMU_CAPS_BLOCKIO, /* -device ...logical_block_size & co */
|
2016-01-04 22:57:06 +00:00
|
|
|
QEMU_CAPS_PIIX_DISABLE_S3, /* -M pc S3 BIOS Advertisement on/off */
|
2015-10-06 14:28:25 +00:00
|
|
|
|
|
|
|
/* 105 */
|
2016-01-04 22:57:06 +00:00
|
|
|
QEMU_CAPS_PIIX_DISABLE_S4, /* -M pc S4 BIOS Advertisement on/off */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_USB_REDIR_FILTER, /* usb-redir.filter */
|
|
|
|
QEMU_CAPS_IDE_DRIVE_WWN, /* Is ide-drive.wwn available? */
|
|
|
|
QEMU_CAPS_SCSI_DISK_WWN, /* Is scsi-disk.wwn available? */
|
|
|
|
QEMU_CAPS_SECCOMP_SANDBOX, /* -sandbox */
|
|
|
|
|
|
|
|
/* 110 */
|
|
|
|
QEMU_CAPS_REBOOT_TIMEOUT, /* -boot reboot-timeout */
|
|
|
|
QEMU_CAPS_DUMP_GUEST_CORE, /* dump-guest-core-parameter */
|
|
|
|
QEMU_CAPS_SEAMLESS_MIGRATION, /* seamless-migration for SPICE */
|
|
|
|
QEMU_CAPS_BLOCK_COMMIT, /* block-commit */
|
|
|
|
QEMU_CAPS_VNC, /* Is -vnc available? */
|
|
|
|
|
|
|
|
/* 115 */
|
|
|
|
QEMU_CAPS_DRIVE_MIRROR, /* drive-mirror monitor command */
|
|
|
|
QEMU_CAPS_USB_REDIR_BOOTINDEX, /* usb-redir.bootindex */
|
|
|
|
QEMU_CAPS_USB_HOST_BOOTINDEX, /* usb-host.bootindex */
|
|
|
|
QEMU_CAPS_DISK_SNAPSHOT, /* blockdev-snapshot-sync command */
|
|
|
|
QEMU_CAPS_DEVICE_QXL, /* -device qxl */
|
|
|
|
|
|
|
|
/* 120 */
|
|
|
|
QEMU_CAPS_DEVICE_VGA, /* -device VGA */
|
|
|
|
QEMU_CAPS_DEVICE_CIRRUS_VGA, /* -device cirrus-vga */
|
|
|
|
QEMU_CAPS_DEVICE_VMWARE_SVGA, /* -device vmware-svga */
|
|
|
|
QEMU_CAPS_DEVICE_VIDEO_PRIMARY, /* -device safe for primary video device */
|
|
|
|
QEMU_CAPS_SCLP_S390, /* -device sclp* */
|
|
|
|
|
|
|
|
/* 125 */
|
|
|
|
QEMU_CAPS_DEVICE_USB_SERIAL, /* -device usb-serial */
|
|
|
|
QEMU_CAPS_DEVICE_USB_NET, /* -device usb-net */
|
|
|
|
QEMU_CAPS_ADD_FD, /* -add-fd */
|
|
|
|
QEMU_CAPS_NBD_SERVER, /* nbd-server-start QMP command */
|
|
|
|
QEMU_CAPS_DEVICE_VIRTIO_RNG, /* virtio-rng device */
|
|
|
|
|
|
|
|
/* 130 */
|
|
|
|
QEMU_CAPS_OBJECT_RNG_RANDOM, /* the rng-random backend for virtio rng */
|
|
|
|
QEMU_CAPS_OBJECT_RNG_EGD, /* EGD protocol daemon for rng */
|
|
|
|
QEMU_CAPS_VIRTIO_CCW, /* -device virtio-*-ccw */
|
|
|
|
QEMU_CAPS_DTB, /* -dtb file */
|
|
|
|
QEMU_CAPS_SCSI_MEGASAS, /* -device megasas */
|
|
|
|
|
|
|
|
/* 135 */
|
|
|
|
QEMU_CAPS_IPV6_MIGRATION, /* -incoming [::] */
|
|
|
|
QEMU_CAPS_MACHINE_OPT, /* -machine xxxx*/
|
|
|
|
QEMU_CAPS_MACHINE_USB_OPT, /* -machine xxx,usb=on/off */
|
|
|
|
QEMU_CAPS_DEVICE_TPM_PASSTHROUGH, /* -tpmdev passthrough */
|
|
|
|
QEMU_CAPS_DEVICE_TPM_TIS, /* -device tpm_tis */
|
|
|
|
|
|
|
|
/* 140 */
|
|
|
|
QEMU_CAPS_DEVICE_NVRAM, /* -global spapr-nvram.reg=xxxx */
|
|
|
|
QEMU_CAPS_DEVICE_PCI_BRIDGE, /* -device pci-bridge */
|
|
|
|
QEMU_CAPS_DEVICE_VFIO_PCI, /* -device vfio-pci */
|
|
|
|
QEMU_CAPS_VFIO_PCI_BOOTINDEX, /* bootindex param for vfio-pci device */
|
|
|
|
QEMU_CAPS_DEVICE_SCSI_GENERIC, /* -device scsi-generic */
|
|
|
|
|
|
|
|
/* 145 */
|
|
|
|
QEMU_CAPS_DEVICE_SCSI_GENERIC_BOOTINDEX, /* -device scsi-generic.bootindex */
|
|
|
|
QEMU_CAPS_MEM_MERGE, /* -machine mem-merge */
|
|
|
|
QEMU_CAPS_VNC_WEBSOCKET, /* -vnc x:y,websocket */
|
|
|
|
QEMU_CAPS_DRIVE_DISCARD, /* -drive discard=off(ignore)|on(unmap) */
|
2016-07-25 12:44:16 +00:00
|
|
|
QEMU_CAPS_REALTIME_MLOCK, /* -realtime mlock=on|off */
|
2015-10-06 14:28:25 +00:00
|
|
|
|
|
|
|
/* 150 */
|
|
|
|
QEMU_CAPS_VNC_SHARE_POLICY, /* set display sharing policy */
|
|
|
|
QEMU_CAPS_DEVICE_DEL_EVENT, /* DEVICE_DELETED event */
|
|
|
|
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE, /* -device i82801b11-bridge */
|
|
|
|
QEMU_CAPS_I440FX_PCI_HOLE64_SIZE, /* i440FX-pcihost.pci-hole64-size */
|
|
|
|
QEMU_CAPS_Q35_PCI_HOLE64_SIZE, /* q35-pcihost.pci-hole64-size */
|
|
|
|
|
|
|
|
/* 155 */
|
|
|
|
QEMU_CAPS_DEVICE_USB_STORAGE, /* -device usb-storage */
|
|
|
|
QEMU_CAPS_USB_STORAGE_REMOVABLE, /* usb-storage.removable */
|
|
|
|
QEMU_CAPS_DEVICE_VIRTIO_MMIO, /* -device virtio-mmio */
|
|
|
|
QEMU_CAPS_DEVICE_ICH9_INTEL_HDA, /* -device ich9-intel-hda */
|
|
|
|
QEMU_CAPS_KVM_PIT_TICK_POLICY, /* kvm-pit.lost_tick_policy */
|
|
|
|
|
|
|
|
/* 160 */
|
|
|
|
QEMU_CAPS_BOOT_STRICT, /* -boot strict */
|
|
|
|
QEMU_CAPS_DEVICE_PANIC, /* -device pvpanic */
|
|
|
|
QEMU_CAPS_ENABLE_FIPS, /* -enable-fips */
|
|
|
|
QEMU_CAPS_SPICE_FILE_XFER_DISABLE, /* -spice disable-agent-file-xfer */
|
|
|
|
QEMU_CAPS_CHARDEV_SPICEPORT, /* -chardev spiceport */
|
|
|
|
|
|
|
|
/* 165 */
|
|
|
|
QEMU_CAPS_DEVICE_USB_KBD, /* -device usb-kbd */
|
|
|
|
QEMU_CAPS_HOST_PCI_MULTIDOMAIN, /* support domain > 0 in host pci address */
|
|
|
|
QEMU_CAPS_MSG_TIMESTAMP, /* -msg timestamp */
|
|
|
|
QEMU_CAPS_ACTIVE_COMMIT, /* block-commit works without 'top' */
|
|
|
|
QEMU_CAPS_CHANGE_BACKING_FILE, /* change name of backing file in metadata */
|
|
|
|
|
|
|
|
/* 170 */
|
|
|
|
QEMU_CAPS_OBJECT_MEMORY_RAM, /* -object memory-backend-ram */
|
|
|
|
QEMU_CAPS_NUMA, /* newer -numa handling with disjoint cpu ranges */
|
|
|
|
QEMU_CAPS_OBJECT_MEMORY_FILE, /* -object memory-backend-file */
|
|
|
|
QEMU_CAPS_OBJECT_USB_AUDIO, /* usb-audio device support */
|
|
|
|
QEMU_CAPS_RTC_RESET_REINJECTION, /* rtc-reset-reinjection monitor command */
|
|
|
|
|
|
|
|
/* 175 */
|
|
|
|
QEMU_CAPS_SPLASH_TIMEOUT, /* -boot splash-time */
|
|
|
|
QEMU_CAPS_OBJECT_IOTHREAD, /* -object iothread */
|
|
|
|
QEMU_CAPS_MIGRATE_RDMA, /* have rdma migration */
|
|
|
|
QEMU_CAPS_DEVICE_IVSHMEM, /* -device ivshmem */
|
|
|
|
QEMU_CAPS_DRIVE_IOTUNE_MAX, /* -drive bps_max= and friends */
|
|
|
|
|
|
|
|
/* 180 */
|
|
|
|
QEMU_CAPS_VGA_VGAMEM, /* -device VGA.vgamem_mb */
|
|
|
|
QEMU_CAPS_VMWARE_SVGA_VGAMEM, /* -device vmware-svga.vgamem_mb */
|
|
|
|
QEMU_CAPS_QXL_VGAMEM, /* -device qxl.vgamem_mb */
|
2016-10-11 15:42:37 +00:00
|
|
|
X_QEMU_CAPS_QXL_VGA_VGAMEM, /* -device qxl-vga.vgamem_mb */
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_DEVICE_PC_DIMM, /* pc-dimm device */
|
|
|
|
|
|
|
|
/* 185 */
|
|
|
|
QEMU_CAPS_MACHINE_VMPORT_OPT, /* -machine xxx,vmport=on/off/auto */
|
|
|
|
QEMU_CAPS_AES_KEY_WRAP, /* -machine aes_key_wrap */
|
|
|
|
QEMU_CAPS_DEA_KEY_WRAP, /* -machine dea_key_wrap */
|
|
|
|
QEMU_CAPS_DEVICE_PCI_SERIAL, /* -device pci-serial */
|
|
|
|
QEMU_CAPS_CPU_AARCH64_OFF, /* -cpu ...,aarch64=off */
|
|
|
|
|
|
|
|
/* 190 */
|
|
|
|
QEMU_CAPS_VHOSTUSER_MULTIQUEUE, /* vhost-user with -netdev queues= */
|
|
|
|
QEMU_CAPS_MIGRATION_EVENT, /* MIGRATION event */
|
|
|
|
QEMU_CAPS_OBJECT_GPEX, /* have generic PCI host controller */
|
|
|
|
QEMU_CAPS_DEVICE_IOH3420, /* -device ioh3420 */
|
|
|
|
QEMU_CAPS_DEVICE_X3130_UPSTREAM, /* -device x3130-upstream */
|
|
|
|
|
|
|
|
/* 195 */
|
|
|
|
QEMU_CAPS_DEVICE_XIO3130_DOWNSTREAM, /* -device xio3130-downstream */
|
|
|
|
QEMU_CAPS_DEVICE_RTL8139, /* -device rtl8139 */
|
|
|
|
QEMU_CAPS_DEVICE_E1000, /* -device e1000 */
|
|
|
|
QEMU_CAPS_DEVICE_VIRTIO_NET, /* -device virtio-net-* */
|
|
|
|
QEMU_CAPS_MACH_VIRT_GIC_VERSION, /* -machine virt,gic-version */
|
|
|
|
|
2015-11-11 17:02:23 +00:00
|
|
|
/* 200 */
|
|
|
|
QEMU_CAPS_INCOMING_DEFER, /* -incoming defer and migrate_incoming */
|
2016-10-11 12:07:58 +00:00
|
|
|
QEMU_CAPS_DEVICE_VIRTIO_GPU, /* -device virtio-gpu-* */
|
2016-10-11 12:06:53 +00:00
|
|
|
QEMU_CAPS_VIRTIO_GPU_VIRGL, /* -device virtio-gpu-*.virgl */
|
2015-11-13 10:26:37 +00:00
|
|
|
QEMU_CAPS_VIRTIO_KEYBOARD, /* -device virtio-keyboard-{device,pci} */
|
|
|
|
QEMU_CAPS_VIRTIO_MOUSE, /* -device virtio-mouse-{device,pci} */
|
|
|
|
|
|
|
|
/* 205 */
|
|
|
|
QEMU_CAPS_VIRTIO_TABLET, /* -device virtio-tablet-{device,pci} */
|
2015-11-13 14:41:20 +00:00
|
|
|
QEMU_CAPS_VIRTIO_INPUT_HOST, /* -device virtio-input-host-{device,pci} */
|
2015-12-24 14:27:55 +00:00
|
|
|
QEMU_CAPS_CHARDEV_FILE_APPEND, /* -chardev file,append=on|off */
|
2016-01-09 20:58:50 +00:00
|
|
|
QEMU_CAPS_ICH9_DISABLE_S3, /* -M q35 S3 BIOS Advertisement on/off */
|
|
|
|
QEMU_CAPS_ICH9_DISABLE_S4, /* -M q35 S4 BIOS Advertisement on/off */
|
2015-11-11 17:02:23 +00:00
|
|
|
|
2016-01-05 13:05:15 +00:00
|
|
|
/* 210 */
|
|
|
|
QEMU_CAPS_VSERPORT_CHANGE, /* VSERPORT_CHANGE event */
|
2016-01-08 10:45:06 +00:00
|
|
|
QEMU_CAPS_VIRTIO_BALLOON_AUTODEFLATE, /* virtio-balloon-{device,pci,ccw}.
|
|
|
|
* deflate-on-oom */
|
2016-02-11 10:48:20 +00:00
|
|
|
QEMU_CAPS_SCSI_MPTSAS1068, /* -device mptsas1068 */
|
2016-02-19 14:30:15 +00:00
|
|
|
QEMU_CAPS_SPICE_GL, /* -spice gl */
|
2016-03-01 12:46:37 +00:00
|
|
|
QEMU_CAPS_QXL_VRAM64, /* -device qxl.vram64_size_mb */
|
|
|
|
|
|
|
|
/* 215 */
|
2016-10-11 15:42:37 +00:00
|
|
|
X_QEMU_CAPS_QXL_VGA_VRAM64, /* -device qxl-vga.vram64_size_mb */
|
2016-02-23 11:56:34 +00:00
|
|
|
QEMU_CAPS_CHARDEV_LOGFILE, /* -chardev logfile=xxxx */
|
2016-03-10 19:46:38 +00:00
|
|
|
QEMU_CAPS_NAME_DEBUG_THREADS, /* Is -name debug-threads= available */
|
2016-03-21 15:49:12 +00:00
|
|
|
QEMU_CAPS_OBJECT_SECRET, /* -object secret */
|
2016-02-24 21:40:49 +00:00
|
|
|
QEMU_CAPS_DEVICE_PXB, /* -device pxb */
|
2016-01-05 13:05:15 +00:00
|
|
|
|
2016-03-08 21:25:22 +00:00
|
|
|
/* 220 */
|
|
|
|
QEMU_CAPS_DEVICE_PXB_PCIE, /* -device pxb-pcie */
|
2016-04-29 11:49:13 +00:00
|
|
|
QEMU_CAPS_DEVICE_TRAY_MOVED, /* DEVICE_TRAY_MOVED event */
|
2016-04-24 14:52:38 +00:00
|
|
|
QEMU_CAPS_NEC_USB_XHCI_PORTS, /* -device nec-usb-xhci.p3 ports setting */
|
2016-04-20 18:43:04 +00:00
|
|
|
QEMU_CAPS_VIRTIO_SCSI_IOTHREAD, /* virtio-scsi-{pci,ccw}.iothread */
|
2016-04-22 22:39:09 +00:00
|
|
|
QEMU_CAPS_NAME_GUEST, /* -name guest= */
|
2016-03-08 21:25:22 +00:00
|
|
|
|
2015-12-11 13:26:24 +00:00
|
|
|
/* 225 */
|
|
|
|
QEMU_CAPS_QXL_MAX_OUTPUTS, /* -device qxl,max-outputs= */
|
2016-10-11 15:42:37 +00:00
|
|
|
X_QEMU_CAPS_QXL_VGA_MAX_OUTPUTS, /* -device qxl-vga,max-outputs= */
|
2016-06-07 22:21:29 +00:00
|
|
|
QEMU_CAPS_SPICE_UNIX, /* -spice unix */
|
2015-12-14 08:35:20 +00:00
|
|
|
QEMU_CAPS_DRIVE_DETECT_ZEROES, /* -drive detect-zeroes= */
|
2016-08-04 15:13:48 +00:00
|
|
|
QEMU_CAPS_OBJECT_TLS_CREDS_X509, /* -object tls-creds-x509 */
|
2015-12-11 13:26:24 +00:00
|
|
|
|
2016-06-07 15:28:20 +00:00
|
|
|
/* 230 */
|
2016-07-05 12:35:27 +00:00
|
|
|
QEMU_CAPS_DISPLAY, /* -display */
|
2016-06-22 15:24:24 +00:00
|
|
|
QEMU_CAPS_DEVICE_INTEL_IOMMU, /* -device intel-iommu */
|
2016-07-13 12:09:20 +00:00
|
|
|
QEMU_CAPS_MACHINE_SMM_OPT, /* -machine xxx,smm=on/off/auto */
|
2016-08-08 14:05:27 +00:00
|
|
|
QEMU_CAPS_VIRTIO_PCI_DISABLE_LEGACY, /* virtio-*pci.disable-legacy */
|
2016-06-23 11:56:12 +00:00
|
|
|
QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS, /* qmp command query-hotpluggable-cpus */
|
2016-06-07 15:28:20 +00:00
|
|
|
|
2016-08-19 06:39:08 +00:00
|
|
|
/* 235 */
|
|
|
|
QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE, /* virtio-net-*.rx_queue_size */
|
2016-10-03 12:31:12 +00:00
|
|
|
QEMU_CAPS_MACHINE_IOMMU, /* -machine iommu=on */
|
2016-10-11 12:07:58 +00:00
|
|
|
QEMU_CAPS_DEVICE_VIRTIO_VGA, /* -device virtio-vga */
|
2016-09-19 10:47:19 +00:00
|
|
|
QEMU_CAPS_DRIVE_IOTUNE_MAX_LENGTH, /* -drive bps_max_length = and friends */
|
2016-08-02 06:48:45 +00:00
|
|
|
QEMU_CAPS_DEVICE_IVSHMEM_PLAIN, /* -device ivshmem-plain */
|
|
|
|
|
|
|
|
/* 240 */
|
|
|
|
QEMU_CAPS_DEVICE_IVSHMEM_DOORBELL, /* -device ivshmem-doorbell */
|
2016-10-19 12:40:53 +00:00
|
|
|
QEMU_CAPS_QUERY_QMP_SCHEMA, /* query-qmp-schema command */
|
2016-09-21 19:34:19 +00:00
|
|
|
QEMU_CAPS_GLUSTER_DEBUG_LEVEL, /* -drive gluster.debug_level={0..9} */
|
2016-11-22 03:58:15 +00:00
|
|
|
QEMU_CAPS_DEVICE_VHOST_SCSI, /* -device vhost-scsi-{ccw,pci} */
|
2016-11-07 11:19:50 +00:00
|
|
|
QEMU_CAPS_DRIVE_IOTUNE_GROUP, /* -drive throttling.group=<name> */
|
2016-09-21 19:34:19 +00:00
|
|
|
|
2016-12-18 19:22:26 +00:00
|
|
|
/* 245 */
|
|
|
|
QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION, /* qmp query-cpu-model-expansion */
|
2017-01-23 13:33:20 +00:00
|
|
|
QEMU_CAPS_VIRTIO_NET_HOST_MTU, /* virtio-net-*.host_mtu */
|
2017-02-14 21:04:13 +00:00
|
|
|
QEMU_CAPS_SPICE_RENDERNODE, /* -spice rendernode */
|
2016-07-29 06:17:42 +00:00
|
|
|
QEMU_CAPS_DEVICE_NVDIMM, /* -device nvdimm */
|
2017-01-16 12:28:20 +00:00
|
|
|
QEMU_CAPS_DEVICE_PCIE_ROOT_PORT, /* -device pcie-root-port */
|
2016-12-18 19:22:26 +00:00
|
|
|
|
2017-03-16 08:19:02 +00:00
|
|
|
/* 250 */
|
|
|
|
QEMU_CAPS_QUERY_CPU_DEFINITIONS, /* qmp query-cpu-definitions */
|
2017-02-22 15:52:22 +00:00
|
|
|
QEMU_CAPS_BLOCK_WRITE_THRESHOLD, /* BLOCK_WRITE_THRESHOLD event */
|
2017-03-15 16:21:48 +00:00
|
|
|
QEMU_CAPS_QUERY_NAMED_BLOCK_NODES, /* qmp query-named-block-nodes */
|
2017-04-25 17:07:19 +00:00
|
|
|
QEMU_CAPS_CPU_CACHE, /* -cpu supports host-cache-info and l3-cache properties */
|
2017-04-28 08:44:03 +00:00
|
|
|
QEMU_CAPS_DEVICE_QEMU_XHCI, /* -device qemu-xhci */
|
2017-03-16 08:19:02 +00:00
|
|
|
|
2017-03-17 07:26:49 +00:00
|
|
|
/* 255 */
|
|
|
|
QEMU_CAPS_MACHINE_KERNEL_IRQCHIP, /* -machine kernel_irqchip */
|
|
|
|
QEMU_CAPS_MACHINE_KERNEL_IRQCHIP_SPLIT, /* -machine kernel_irqchip=split */
|
2017-05-03 13:23:12 +00:00
|
|
|
QEMU_CAPS_INTEL_IOMMU_INTREMAP, /* intel-iommu.intremap */
|
2017-03-17 07:28:04 +00:00
|
|
|
QEMU_CAPS_INTEL_IOMMU_CACHING_MODE, /* intel-iommu.caching-mode */
|
2017-05-18 08:48:03 +00:00
|
|
|
QEMU_CAPS_INTEL_IOMMU_EIM, /* intel-iommu.eim */
|
2017-03-17 07:26:49 +00:00
|
|
|
|
2017-05-03 15:18:47 +00:00
|
|
|
/* 260 */
|
|
|
|
QEMU_CAPS_INTEL_IOMMU_DEVICE_IOTLB, /* intel-iommu.device-iotlb */
|
2017-05-24 15:09:12 +00:00
|
|
|
QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM, /* virtio-*-pci.iommu_platform */
|
|
|
|
QEMU_CAPS_VIRTIO_PCI_ATS, /* virtio-*-pci.ats */
|
2017-06-01 16:36:26 +00:00
|
|
|
QEMU_CAPS_LOADPARM, /* -machine loadparm */
|
2017-02-20 14:34:51 +00:00
|
|
|
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE, /* -device spapr-pci-host-bridge */
|
2017-07-22 08:30:19 +00:00
|
|
|
|
|
|
|
/* 265 */
|
2017-07-21 08:02:32 +00:00
|
|
|
QEMU_CAPS_SPAPR_PCI_HOST_BRIDGE_NUMA_NODE, /* spapr-pci-host-bridge.numa_node= */
|
2017-05-03 15:18:47 +00:00
|
|
|
|
2015-10-06 14:28:25 +00:00
|
|
|
QEMU_CAPS_LAST /* this must always be the last item */
|
2014-06-15 16:32:56 +00:00
|
|
|
} virQEMUCapsFlags;
|
2010-12-16 15:07:07 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
typedef struct _virQEMUCaps virQEMUCaps;
|
|
|
|
typedef virQEMUCaps *virQEMUCapsPtr;
|
2011-02-08 14:22:39 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
typedef struct _virQEMUCapsCache virQEMUCapsCache;
|
|
|
|
typedef virQEMUCapsCache *virQEMUCapsCachePtr;
|
2012-08-22 12:54:13 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
virQEMUCapsPtr virQEMUCapsNew(void);
|
2011-02-08 14:22:39 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
void virQEMUCapsSet(virQEMUCapsPtr qemuCaps,
|
2014-06-15 16:32:56 +00:00
|
|
|
virQEMUCapsFlags flag) ATTRIBUTE_NONNULL(1);
|
2011-02-08 14:22:39 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
void virQEMUCapsSetList(virQEMUCapsPtr qemuCaps, ...) ATTRIBUTE_NONNULL(1);
|
2011-02-08 14:08:12 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
void virQEMUCapsClear(virQEMUCapsPtr qemuCaps,
|
2014-06-15 16:32:56 +00:00
|
|
|
virQEMUCapsFlags flag) ATTRIBUTE_NONNULL(1);
|
2011-02-08 14:08:12 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
bool virQEMUCapsGet(virQEMUCapsPtr qemuCaps,
|
2014-06-15 16:32:56 +00:00
|
|
|
virQEMUCapsFlags flag);
|
2011-02-08 14:08:12 +00:00
|
|
|
|
2014-04-23 15:35:37 +00:00
|
|
|
bool virQEMUCapsHasPCIMultiBus(virQEMUCapsPtr qemuCaps,
|
|
|
|
virDomainDefPtr def);
|
|
|
|
|
2015-04-21 11:28:40 +00:00
|
|
|
bool virQEMUCapsSupportsVmport(virQEMUCapsPtr qemuCaps,
|
|
|
|
const virDomainDef *def);
|
|
|
|
|
2016-07-13 12:09:20 +00:00
|
|
|
bool virQEMUCapsSupportsSMM(virQEMUCapsPtr qemuCaps,
|
|
|
|
const virDomainDef *def);
|
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
char *virQEMUCapsFlagsString(virQEMUCapsPtr qemuCaps);
|
2012-08-20 16:44:14 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
const char *virQEMUCapsGetBinary(virQEMUCapsPtr qemuCaps);
|
|
|
|
virArch virQEMUCapsGetArch(virQEMUCapsPtr qemuCaps);
|
|
|
|
unsigned int virQEMUCapsGetVersion(virQEMUCapsPtr qemuCaps);
|
2015-02-02 10:28:30 +00:00
|
|
|
const char *virQEMUCapsGetPackage(virQEMUCapsPtr qemuCaps);
|
2013-02-01 13:48:58 +00:00
|
|
|
unsigned int virQEMUCapsGetKVMVersion(virQEMUCapsPtr qemuCaps);
|
2016-04-21 10:51:01 +00:00
|
|
|
int virQEMUCapsAddCPUDefinitions(virQEMUCapsPtr qemuCaps,
|
2016-11-14 16:21:30 +00:00
|
|
|
virDomainVirtType type,
|
2016-04-21 10:51:01 +00:00
|
|
|
const char **name,
|
2016-04-21 11:08:12 +00:00
|
|
|
size_t count,
|
|
|
|
virDomainCapsCPUUsable usable);
|
2016-04-21 10:51:01 +00:00
|
|
|
int virQEMUCapsGetCPUDefinitions(virQEMUCapsPtr qemuCaps,
|
2016-11-14 16:21:30 +00:00
|
|
|
virDomainVirtType type,
|
2016-04-21 10:51:01 +00:00
|
|
|
char ***names,
|
|
|
|
size_t *count);
|
2017-04-11 09:14:30 +00:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
/* Host CPU definition reported in domain capabilities. */
|
|
|
|
VIR_QEMU_CAPS_HOST_CPU_REPORTED,
|
2017-03-29 13:31:17 +00:00
|
|
|
/* Migratable host CPU definition used for updating guest CPU. */
|
|
|
|
VIR_QEMU_CAPS_HOST_CPU_MIGRATABLE,
|
2017-04-11 18:46:05 +00:00
|
|
|
/* CPU definition with features detected by libvirt using virCPUGetHost
|
|
|
|
* combined with features reported by QEMU. This is used for backward
|
|
|
|
* compatible comparison between a guest CPU and a host CPU. */
|
|
|
|
VIR_QEMU_CAPS_HOST_CPU_FULL,
|
2017-04-11 09:14:30 +00:00
|
|
|
} virQEMUCapsHostCPUType;
|
|
|
|
|
2017-02-22 15:51:50 +00:00
|
|
|
virCPUDefPtr virQEMUCapsGetHostModel(virQEMUCapsPtr qemuCaps,
|
2017-04-11 09:14:30 +00:00
|
|
|
virDomainVirtType type,
|
|
|
|
virQEMUCapsHostCPUType cpuType);
|
|
|
|
|
2016-08-03 14:22:30 +00:00
|
|
|
bool virQEMUCapsIsCPUModeSupported(virQEMUCapsPtr qemuCaps,
|
|
|
|
virCapsPtr caps,
|
|
|
|
virDomainVirtType type,
|
|
|
|
virCPUMode mode);
|
2013-02-01 13:48:58 +00:00
|
|
|
const char *virQEMUCapsGetCanonicalMachine(virQEMUCapsPtr qemuCaps,
|
|
|
|
const char *name);
|
2013-06-26 15:46:35 +00:00
|
|
|
int virQEMUCapsGetMachineMaxCpus(virQEMUCapsPtr qemuCaps,
|
|
|
|
const char *name);
|
2016-07-29 07:45:19 +00:00
|
|
|
bool virQEMUCapsGetMachineHotplugCpus(virQEMUCapsPtr qemuCaps,
|
|
|
|
const char *name);
|
2013-02-01 13:48:58 +00:00
|
|
|
int virQEMUCapsGetMachineTypesCaps(virQEMUCapsPtr qemuCaps,
|
|
|
|
size_t *nmachines,
|
|
|
|
virCapsGuestMachinePtr **machines);
|
2012-08-22 13:37:05 +00:00
|
|
|
|
2015-02-12 13:50:31 +00:00
|
|
|
void virQEMUCapsFilterByMachineType(virQEMUCapsPtr qemuCaps,
|
|
|
|
const char *machineType);
|
2012-08-22 12:54:13 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
virQEMUCapsCachePtr virQEMUCapsCacheNew(const char *libDir,
|
2014-03-05 16:51:59 +00:00
|
|
|
const char *cacheDir,
|
2013-02-01 13:48:58 +00:00
|
|
|
uid_t uid, gid_t gid);
|
2016-06-15 11:48:19 +00:00
|
|
|
virQEMUCapsPtr virQEMUCapsCacheLookup(virCapsPtr caps,
|
|
|
|
virQEMUCapsCachePtr cache,
|
2013-02-01 13:48:58 +00:00
|
|
|
const char *binary);
|
2016-06-15 11:48:19 +00:00
|
|
|
virQEMUCapsPtr virQEMUCapsCacheLookupCopy(virCapsPtr caps,
|
|
|
|
virQEMUCapsCachePtr cache,
|
2015-02-12 12:48:42 +00:00
|
|
|
const char *binary,
|
|
|
|
const char *machineType);
|
2016-11-16 13:17:12 +00:00
|
|
|
virQEMUCapsPtr virQEMUCapsCacheLookupByArch(virCapsPtr caps,
|
|
|
|
virQEMUCapsCachePtr cache,
|
2014-06-30 14:12:07 +00:00
|
|
|
virArch arch);
|
2013-02-01 13:48:58 +00:00
|
|
|
void virQEMUCapsCacheFree(virQEMUCapsCachePtr cache);
|
2012-08-22 12:54:13 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
virCapsPtr virQEMUCapsInit(virQEMUCapsCachePtr cache);
|
2010-12-16 15:07:07 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
int virQEMUCapsGetDefaultVersion(virCapsPtr caps,
|
|
|
|
virQEMUCapsCachePtr capsCache,
|
|
|
|
unsigned int *version);
|
2010-12-16 15:07:07 +00:00
|
|
|
|
2013-02-01 13:48:58 +00:00
|
|
|
VIR_ENUM_DECL(virQEMUCaps);
|
2010-12-16 15:07:07 +00:00
|
|
|
|
2016-05-16 11:23:01 +00:00
|
|
|
bool virQEMUCapsSupportsGICVersion(virQEMUCapsPtr qemuCaps,
|
|
|
|
virDomainVirtType virtType,
|
|
|
|
virGICVersion version);
|
|
|
|
|
2014-06-30 14:31:51 +00:00
|
|
|
bool virQEMUCapsIsMachineSupported(virQEMUCapsPtr qemuCaps,
|
|
|
|
const char *canonical_machine);
|
|
|
|
|
2014-07-24 13:23:40 +00:00
|
|
|
const char *virQEMUCapsGetDefaultMachine(virQEMUCapsPtr qemuCaps);
|
2014-06-30 14:39:18 +00:00
|
|
|
|
2014-03-17 15:19:45 +00:00
|
|
|
int virQEMUCapsInitGuestFromBinary(virCapsPtr caps,
|
|
|
|
const char *binary,
|
|
|
|
virQEMUCapsPtr qemubinCaps,
|
|
|
|
const char *kvmbin,
|
|
|
|
virQEMUCapsPtr kvmbinCaps,
|
|
|
|
virArch guestarch);
|
|
|
|
|
2016-04-22 20:22:30 +00:00
|
|
|
int virQEMUCapsFillDomainCaps(virCapsPtr caps,
|
|
|
|
virDomainCapsPtr domCaps,
|
2014-09-16 23:52:54 +00:00
|
|
|
virQEMUCapsPtr qemuCaps,
|
2016-05-17 22:45:27 +00:00
|
|
|
virFirmwarePtr *firmwares,
|
2016-06-27 13:12:34 +00:00
|
|
|
size_t nfirmwares);
|
2014-06-25 16:39:29 +00:00
|
|
|
|
2017-07-11 13:15:01 +00:00
|
|
|
bool virQEMUCapsGuestIsNative(virArch host,
|
|
|
|
virArch guest);
|
|
|
|
|
2010-12-16 15:07:07 +00:00
|
|
|
#endif /* __QEMU_CAPABILITIES_H__*/
|