2020-12-12 01:05:12 +03:00
|
|
|
#ifndef HW_QDEV_PROPERTIES_SYSTEM_H
|
|
|
|
#define HW_QDEV_PROPERTIES_SYSTEM_H
|
|
|
|
|
|
|
|
#include "hw/qdev-properties.h"
|
|
|
|
|
|
|
|
extern const PropertyInfo qdev_prop_chr;
|
|
|
|
extern const PropertyInfo qdev_prop_macaddr;
|
|
|
|
extern const PropertyInfo qdev_prop_reserved_region;
|
|
|
|
extern const PropertyInfo qdev_prop_multifd_compression;
|
2023-10-25 22:44:24 +03:00
|
|
|
extern const PropertyInfo qdev_prop_mig_mode;
|
2024-02-27 19:55:48 +03:00
|
|
|
extern const PropertyInfo qdev_prop_granule_mode;
|
2024-03-11 21:00:11 +03:00
|
|
|
extern const PropertyInfo qdev_prop_zero_page_detection;
|
2020-12-12 01:05:12 +03:00
|
|
|
extern const PropertyInfo qdev_prop_losttickpolicy;
|
|
|
|
extern const PropertyInfo qdev_prop_blockdev_on_error;
|
|
|
|
extern const PropertyInfo qdev_prop_bios_chs_trans;
|
|
|
|
extern const PropertyInfo qdev_prop_fdc_drive_type;
|
|
|
|
extern const PropertyInfo qdev_prop_drive;
|
|
|
|
extern const PropertyInfo qdev_prop_drive_iothread;
|
|
|
|
extern const PropertyInfo qdev_prop_netdev;
|
|
|
|
extern const PropertyInfo qdev_prop_pci_devfn;
|
|
|
|
extern const PropertyInfo qdev_prop_blocksize;
|
|
|
|
extern const PropertyInfo qdev_prop_pci_host_devaddr;
|
|
|
|
extern const PropertyInfo qdev_prop_uuid;
|
|
|
|
extern const PropertyInfo qdev_prop_audiodev;
|
|
|
|
extern const PropertyInfo qdev_prop_off_auto_pcibar;
|
|
|
|
extern const PropertyInfo qdev_prop_pcie_link_speed;
|
|
|
|
extern const PropertyInfo qdev_prop_pcie_link_width;
|
2023-10-16 21:39:06 +03:00
|
|
|
extern const PropertyInfo qdev_prop_cpus390entitlement;
|
2023-12-20 16:47:54 +03:00
|
|
|
extern const PropertyInfo qdev_prop_iothread_vq_mapping_list;
|
2020-12-12 01:05:12 +03:00
|
|
|
|
|
|
|
#define DEFINE_PROP_PCI_DEVFN(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pci_devfn, int32_t)
|
|
|
|
|
|
|
|
#define DEFINE_PROP_CHR(_n, _s, _f) \
|
|
|
|
DEFINE_PROP(_n, _s, _f, qdev_prop_chr, CharBackend)
|
|
|
|
#define DEFINE_PROP_NETDEV(_n, _s, _f) \
|
|
|
|
DEFINE_PROP(_n, _s, _f, qdev_prop_netdev, NICPeers)
|
|
|
|
#define DEFINE_PROP_DRIVE(_n, _s, _f) \
|
|
|
|
DEFINE_PROP(_n, _s, _f, qdev_prop_drive, BlockBackend *)
|
|
|
|
#define DEFINE_PROP_DRIVE_IOTHREAD(_n, _s, _f) \
|
|
|
|
DEFINE_PROP(_n, _s, _f, qdev_prop_drive_iothread, BlockBackend *)
|
|
|
|
#define DEFINE_PROP_MACADDR(_n, _s, _f) \
|
|
|
|
DEFINE_PROP(_n, _s, _f, qdev_prop_macaddr, MACAddr)
|
|
|
|
#define DEFINE_PROP_RESERVED_REGION(_n, _s, _f) \
|
|
|
|
DEFINE_PROP(_n, _s, _f, qdev_prop_reserved_region, ReservedRegion)
|
|
|
|
#define DEFINE_PROP_MULTIFD_COMPRESSION(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_multifd_compression, \
|
|
|
|
MultiFDCompression)
|
2023-10-25 22:44:24 +03:00
|
|
|
#define DEFINE_PROP_MIG_MODE(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_mig_mode, \
|
|
|
|
MigMode)
|
2024-02-27 19:55:48 +03:00
|
|
|
#define DEFINE_PROP_GRANULE_MODE(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_granule_mode, GranuleMode)
|
2024-03-11 21:00:11 +03:00
|
|
|
#define DEFINE_PROP_ZERO_PAGE_DETECTION(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_zero_page_detection, \
|
|
|
|
ZeroPageDetection)
|
2020-12-12 01:05:12 +03:00
|
|
|
#define DEFINE_PROP_LOSTTICKPOLICY(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_losttickpolicy, \
|
|
|
|
LostTickPolicy)
|
|
|
|
#define DEFINE_PROP_BLOCKDEV_ON_ERROR(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_blockdev_on_error, \
|
|
|
|
BlockdevOnError)
|
|
|
|
#define DEFINE_PROP_BIOS_CHS_TRANS(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_bios_chs_trans, int)
|
|
|
|
#define DEFINE_PROP_BLOCKSIZE(_n, _s, _f) \
|
|
|
|
DEFINE_PROP_UNSIGNED(_n, _s, _f, 0, qdev_prop_blocksize, uint32_t)
|
|
|
|
#define DEFINE_PROP_PCI_HOST_DEVADDR(_n, _s, _f) \
|
|
|
|
DEFINE_PROP(_n, _s, _f, qdev_prop_pci_host_devaddr, PCIHostDeviceAddress)
|
|
|
|
#define DEFINE_PROP_OFF_AUTO_PCIBAR(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_off_auto_pcibar, \
|
|
|
|
OffAutoPCIBAR)
|
|
|
|
#define DEFINE_PROP_PCIE_LINK_SPEED(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_speed, \
|
|
|
|
PCIExpLinkSpeed)
|
|
|
|
#define DEFINE_PROP_PCIE_LINK_WIDTH(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_width, \
|
|
|
|
PCIExpLinkWidth)
|
|
|
|
|
2020-12-12 01:05:13 +03:00
|
|
|
#define DEFINE_PROP_UUID(_name, _state, _field) \
|
|
|
|
DEFINE_PROP(_name, _state, _field, qdev_prop_uuid, QemuUUID, \
|
|
|
|
.set_default = true)
|
|
|
|
|
2020-12-12 01:05:12 +03:00
|
|
|
#define DEFINE_PROP_AUDIODEV(_n, _s, _f) \
|
|
|
|
DEFINE_PROP(_n, _s, _f, qdev_prop_audiodev, QEMUSoundCard)
|
|
|
|
|
2020-12-12 01:05:13 +03:00
|
|
|
#define DEFINE_PROP_UUID_NODEFAULT(_name, _state, _field) \
|
|
|
|
DEFINE_PROP(_name, _state, _field, qdev_prop_uuid, QemuUUID)
|
2020-12-12 01:05:12 +03:00
|
|
|
|
2023-10-16 21:39:06 +03:00
|
|
|
#define DEFINE_PROP_CPUS390ENTITLEMENT(_n, _s, _f, _d) \
|
|
|
|
DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_cpus390entitlement, \
|
|
|
|
CpuS390Entitlement)
|
2020-12-12 01:05:12 +03:00
|
|
|
|
2023-12-20 16:47:54 +03:00
|
|
|
#define DEFINE_PROP_IOTHREAD_VQ_MAPPING_LIST(_name, _state, _field) \
|
|
|
|
DEFINE_PROP(_name, _state, _field, qdev_prop_iothread_vq_mapping_list, \
|
|
|
|
IOThreadVirtQueueMappingList *)
|
|
|
|
|
2020-12-12 01:05:12 +03:00
|
|
|
#endif
|