10d09e41aSPaolo Bonzini /* Declarations for use by board files for creating devices. */ 20d09e41aSPaolo Bonzini 30d09e41aSPaolo Bonzini #ifndef HW_BOARDS_H 40d09e41aSPaolo Bonzini #define HW_BOARDS_H 50d09e41aSPaolo Bonzini 6d4842052SMarkus Armbruster #include "exec/memory.h" 7aa8b1839SIgor Mammedov #include "sysemu/hostmem.h" 80d09e41aSPaolo Bonzini #include "sysemu/blockdev.h" 9ac2da55eSEduardo Habkost #include "sysemu/accel.h" 108ac25c84SMarkus Armbruster #include "qapi/qapi-types-machine.h" 110b8fa32fSMarkus Armbruster #include "qemu/module.h" 1236d20cb2SMarcel Apfelbaum #include "qom/object.h" 132e5b09fdSMarkus Armbruster #include "hw/core/cpu.h" 140d09e41aSPaolo Bonzini 15dfabb8b9SPaolo Bonzini #define TYPE_MACHINE_SUFFIX "-machine" 16c84a8f01SEduardo Habkost 17c84a8f01SEduardo Habkost /* Machine class name that needs to be used for class-name-based machine 18c84a8f01SEduardo Habkost * type lookup to work. 19c84a8f01SEduardo Habkost */ 20c84a8f01SEduardo Habkost #define MACHINE_TYPE_NAME(machinename) (machinename TYPE_MACHINE_SUFFIX) 21c84a8f01SEduardo Habkost 2236d20cb2SMarcel Apfelbaum #define TYPE_MACHINE "machine" 23c8897e8eSMarcel Apfelbaum #undef MACHINE /* BSD defines it and QEMU does not use it */ 2436d20cb2SMarcel Apfelbaum #define MACHINE(obj) \ 2536d20cb2SMarcel Apfelbaum OBJECT_CHECK(MachineState, (obj), TYPE_MACHINE) 2636d20cb2SMarcel Apfelbaum #define MACHINE_GET_CLASS(obj) \ 2736d20cb2SMarcel Apfelbaum OBJECT_GET_CLASS(MachineClass, (obj), TYPE_MACHINE) 2836d20cb2SMarcel Apfelbaum #define MACHINE_CLASS(klass) \ 2936d20cb2SMarcel Apfelbaum OBJECT_CLASS_CHECK(MachineClass, (klass), TYPE_MACHINE) 3036d20cb2SMarcel Apfelbaum 310056ae24SMarcel Apfelbaum extern MachineState *current_machine; 320056ae24SMarcel Apfelbaum 33482dfe9aSIgor Mammedov void machine_run_board_init(MachineState *machine); 345e97b623SMarcel Apfelbaum bool machine_usb(MachineState *machine); 356cabe7faSMarcel Apfelbaum int machine_phandle_start(MachineState *machine); 3647c8ca53SMarcel Apfelbaum bool machine_dump_guest_core(MachineState *machine); 3775cc7f01SMarcel Apfelbaum bool machine_mem_merge(MachineState *machine); 38f2d672c2SIgor Mammedov HotpluggableCPUList *machine_query_hotpluggable_cpus(MachineState *machine); 397c88e65dSIgor Mammedov void machine_set_cpu_numa_node(MachineState *machine, 407c88e65dSIgor Mammedov const CpuInstanceProperties *props, 417c88e65dSIgor Mammedov Error **errp); 425e97b623SMarcel Apfelbaum 430bd1909dSEduardo Habkost void machine_class_allow_dynamic_sysbus_dev(MachineClass *mc, const char *type); 4482b911aaSIgor Mammedov /* 4582b911aaSIgor Mammedov * Checks that backend isn't used, preps it for exclusive usage and 4682b911aaSIgor Mammedov * returns migratable MemoryRegion provided by backend. 4782b911aaSIgor Mammedov */ 4882b911aaSIgor Mammedov MemoryRegion *machine_consume_memdev(MachineState *machine, 4982b911aaSIgor Mammedov HostMemoryBackend *backend); 500bd1909dSEduardo Habkost 5136d20cb2SMarcel Apfelbaum /** 523811ef14SIgor Mammedov * CPUArchId: 533811ef14SIgor Mammedov * @arch_id - architecture-dependent CPU ID of present or possible CPU 543811ef14SIgor Mammedov * @cpu - pointer to corresponding CPU object if it's present on NULL otherwise 55d342eb76SIgor Mammedov * @type - QOM class name of possible @cpu object 56c67ae933SIgor Mammedov * @props - CPU object properties, initialized by board 57f2d672c2SIgor Mammedov * #vcpus_count - number of threads provided by @cpu object 583811ef14SIgor Mammedov */ 59a44432b4SMarkus Armbruster typedef struct CPUArchId { 603811ef14SIgor Mammedov uint64_t arch_id; 61f2d672c2SIgor Mammedov int64_t vcpus_count; 62c67ae933SIgor Mammedov CpuInstanceProperties props; 638aba3842SIgor Mammedov Object *cpu; 64d342eb76SIgor Mammedov const char *type; 653811ef14SIgor Mammedov } CPUArchId; 663811ef14SIgor Mammedov 673811ef14SIgor Mammedov /** 683811ef14SIgor Mammedov * CPUArchIdList: 693811ef14SIgor Mammedov * @len - number of @CPUArchId items in @cpus array 703811ef14SIgor Mammedov * @cpus - array of present or possible CPUs for current machine configuration 713811ef14SIgor Mammedov */ 723811ef14SIgor Mammedov typedef struct { 733811ef14SIgor Mammedov int len; 74880a7817SPhilippe Mathieu-Daudé CPUArchId cpus[]; 753811ef14SIgor Mammedov } CPUArchIdList; 763811ef14SIgor Mammedov 773811ef14SIgor Mammedov /** 7836d20cb2SMarcel Apfelbaum * MachineClass: 7908fe6824SThomas Huth * @deprecation_reason: If set, the machine is marked as deprecated. The 8008fe6824SThomas Huth * string should provide some clear information about what to use instead. 8172649619SEmilio G. Cota * @max_cpus: maximum number of CPUs supported. Default: 1 8272649619SEmilio G. Cota * @min_cpus: minimum number of CPUs supported. Default: 1 8372649619SEmilio G. Cota * @default_cpus: number of CPUs instantiated if none are specified. Default: 1 84ea0ac7f6SPhilippe Mathieu-Daudé * @is_default: 85ea0ac7f6SPhilippe Mathieu-Daudé * If true QEMU will use this machine by default if no '-M' option is given. 86b7454548SIgor Mammedov * @get_hotplug_handler: this function is called during bus-less 87b7454548SIgor Mammedov * device hotplug. If defined it returns pointer to an instance 88b7454548SIgor Mammedov * of HotplugHandler object, which handles hotplug operation 89b7454548SIgor Mammedov * for a given @dev. It may return NULL if @dev doesn't require 90b7454548SIgor Mammedov * any actions to be performed by hotplug handler. 91ea089eebSIgor Mammedov * @cpu_index_to_instance_props: 92ea089eebSIgor Mammedov * used to provide @cpu_index to socket/core/thread number mapping, allowing 93ea089eebSIgor Mammedov * legacy code to perform maping from cpu_index to topology properties 94ea089eebSIgor Mammedov * Returns: tuple of socket/core/thread ids given cpu_index belongs to. 9557924bcdSIgor Mammedov * used to provide @cpu_index to socket number mapping, allowing 9657924bcdSIgor Mammedov * a machine to group CPU threads belonging to the same socket/package 9757924bcdSIgor Mammedov * Returns: socket number given cpu_index belongs to. 98fac862ffSEduardo Habkost * @hw_version: 99fac862ffSEduardo Habkost * Value of QEMU_VERSION when the machine was added to QEMU. 100fac862ffSEduardo Habkost * Set only by old machines because they need to keep 101fac862ffSEduardo Habkost * compatibility on code that exposed QEMU_VERSION to guests in 102fac862ffSEduardo Habkost * the past (and now use qemu_hw_version()). 1033811ef14SIgor Mammedov * @possible_cpu_arch_ids: 1043811ef14SIgor Mammedov * Returns an array of @CPUArchId architecture-dependent CPU IDs 1053811ef14SIgor Mammedov * which includes CPU IDs for present and possible to hotplug CPUs. 1063811ef14SIgor Mammedov * Caller is responsible for freeing returned list. 10779e07936SIgor Mammedov * @get_default_cpu_node_id: 10879e07936SIgor Mammedov * returns default board specific node_id value for CPU slot specified by 10979e07936SIgor Mammedov * index @idx in @ms->possible_cpus[] 110c5514d0eSIgor Mammedov * @has_hotpluggable_cpus: 111c5514d0eSIgor Mammedov * If true, board supports CPUs creation with -device/device_add. 1126063d4c0SIgor Mammedov * @default_cpu_type: 1136063d4c0SIgor Mammedov * specifies default CPU_TYPE, which will be used for parsing target 1146063d4c0SIgor Mammedov * specific features and for creating CPUs if CPU name wasn't provided 1156063d4c0SIgor Mammedov * explicitly at CLI 11620bccb82SPeter Maydell * @minimum_page_bits: 11720bccb82SPeter Maydell * If non-zero, the board promises never to create a CPU with a page size 11820bccb82SPeter Maydell * smaller than this, so QEMU can use a more efficient larger page 11920bccb82SPeter Maydell * size than the target architecture's minimum. (Attempting to create 12020bccb82SPeter Maydell * such a CPU will fail.) Note that changing this is a migration 12120bccb82SPeter Maydell * compatibility break for the machine. 122ed860129SPeter Maydell * @ignore_memory_transaction_failures: 123ed860129SPeter Maydell * If this is flag is true then the CPU will ignore memory transaction 124ed860129SPeter Maydell * failures which should cause the CPU to take an exception due to an 125ed860129SPeter Maydell * access to an unassigned physical address; the transaction will instead 126ed860129SPeter Maydell * return zero (for a read) or be ignored (for a write). This should be 127ed860129SPeter Maydell * set only by legacy board models which rely on the old RAZ/WI behaviour 128ed860129SPeter Maydell * for handling devices that QEMU does not yet model. New board models 129ed860129SPeter Maydell * should instead use "unimplemented-device" for all memory ranges where 130ed860129SPeter Maydell * the guest will attempt to probe for a device that QEMU doesn't 131ed860129SPeter Maydell * implement and a stub device is required. 132dc0ca80eSEric Auger * @kvm_type: 133dc0ca80eSEric Auger * Return the type of KVM corresponding to the kvm-type string option or 134dc0ca80eSEric Auger * computed based on other criteria such as the host kernel capabilities. 135cd5ff833SIgor Mammedov * @numa_mem_supported: 136cd5ff833SIgor Mammedov * true if '--numa node.mem' option is supported and false otherwise 1376f479566SLike Xu * @smp_parse: 1386f479566SLike Xu * The function pointer to hook different machine specific functions for 1396f479566SLike Xu * parsing "smp-opts" from QemuOpts to MachineState::CpuTopology and more 1406f479566SLike Xu * machine specific topology fields, such as smp_dies for PCMachine. 141d2321d31SPeter Xu * @hotplug_allowed: 142d2321d31SPeter Xu * If the hook is provided, then it'll be called for each device 143d2321d31SPeter Xu * hotplug to check whether the device hotplug is allowed. Return 144d2321d31SPeter Xu * true to grant allowance or false to reject the hotplug. When 145d2321d31SPeter Xu * false is returned, an error must be set to show the reason of 146d2321d31SPeter Xu * the rejection. If the hook is not provided, all hotplug will be 147d2321d31SPeter Xu * allowed. 148900c0ba3SIgor Mammedov * @default_ram_id: 149900c0ba3SIgor Mammedov * Specifies inital RAM MemoryRegion name to be used for default backend 150900c0ba3SIgor Mammedov * creation if user explicitly hasn't specified backend with "memory-backend" 151900c0ba3SIgor Mammedov * property. 152900c0ba3SIgor Mammedov * It also will be used as a way to optin into "-m" option support. 153900c0ba3SIgor Mammedov * If it's not set by board, '-m' will be ignored and generic code will 154900c0ba3SIgor Mammedov * not create default RAM MemoryRegion. 1555c30ef93SChristian Borntraeger * @fixup_ram_size: 1565c30ef93SChristian Borntraeger * Amends user provided ram size (with -m option) using machine 1575c30ef93SChristian Borntraeger * specific algorithm. To be used by old machine types for compat 1585c30ef93SChristian Borntraeger * purposes only. 1595c30ef93SChristian Borntraeger * Applies only to default memory backend, i.e., explicit memory backend 1605c30ef93SChristian Borntraeger * wasn't used. 16136d20cb2SMarcel Apfelbaum */ 16236d20cb2SMarcel Apfelbaum struct MachineClass { 16336d20cb2SMarcel Apfelbaum /*< private >*/ 16436d20cb2SMarcel Apfelbaum ObjectClass parent_class; 16536d20cb2SMarcel Apfelbaum /*< public >*/ 16636d20cb2SMarcel Apfelbaum 1672709f263SLaszlo Ersek const char *family; /* NULL iff @name identifies a standalone machtype */ 1688ea75371SMarc-André Lureau char *name; 16900b4fbe2SMarcel Apfelbaum const char *alias; 17000b4fbe2SMarcel Apfelbaum const char *desc; 17108fe6824SThomas Huth const char *deprecation_reason; 17200b4fbe2SMarcel Apfelbaum 1733ef96221SMarcel Apfelbaum void (*init)(MachineState *state); 174a0628599SLike Xu void (*reset)(MachineState *state); 1754b5e06c9SNicholas Piggin void (*wakeup)(MachineState *state); 176a0628599SLike Xu void (*hot_add_cpu)(MachineState *state, const int64_t id, Error **errp); 177dc0ca80eSEric Auger int (*kvm_type)(MachineState *machine, const char *arg); 1786f479566SLike Xu void (*smp_parse)(MachineState *ms, QemuOpts *opts); 17900b4fbe2SMarcel Apfelbaum 18000b4fbe2SMarcel Apfelbaum BlockInterfaceType block_default_type; 18116026518SJohn Snow int units_per_default_bus; 18200b4fbe2SMarcel Apfelbaum int max_cpus; 18372649619SEmilio G. Cota int min_cpus; 18472649619SEmilio G. Cota int default_cpus; 18500b4fbe2SMarcel Apfelbaum unsigned int no_serial:1, 18600b4fbe2SMarcel Apfelbaum no_parallel:1, 18700b4fbe2SMarcel Apfelbaum no_floppy:1, 18800b4fbe2SMarcel Apfelbaum no_cdrom:1, 18933cd52b5SAlexander Graf no_sdcard:1, 190bab47d9aSGerd Hoffmann pci_allow_0_address:1, 191bab47d9aSGerd Hoffmann legacy_fw_cfg_order:1; 192ea0ac7f6SPhilippe Mathieu-Daudé bool is_default; 19300b4fbe2SMarcel Apfelbaum const char *default_machine_opts; 19400b4fbe2SMarcel Apfelbaum const char *default_boot_order; 1956f00494aSGerd Hoffmann const char *default_display; 196b66bbee3SMarc-André Lureau GPtrArray *compat_props; 19700b4fbe2SMarcel Apfelbaum const char *hw_version; 198076b35b5SNikunj A Dadhania ram_addr_t default_ram_size; 1996063d4c0SIgor Mammedov const char *default_cpu_type; 200b2fc91dbSPeter Xu bool default_kernel_irqchip_split; 20171ae9e94SEduardo Habkost bool option_rom_has_mr; 20271ae9e94SEduardo Habkost bool rom_file_has_mr; 20320bccb82SPeter Maydell int minimum_page_bits; 204c5514d0eSIgor Mammedov bool has_hotpluggable_cpus; 205ed860129SPeter Maydell bool ignore_memory_transaction_failures; 20655641213SLaurent Vivier int numa_mem_align_shift; 207c9cf636dSAlistair Francis const char **valid_cpu_types; 2080bd1909dSEduardo Habkost strList *allowed_dynamic_sysbus_devices; 2097b8be49dSDou Liyang bool auto_enable_numa_with_memhp; 210*195784a0SDavid Hildenbrand bool auto_enable_numa_with_memdev; 2113bfe5716SLaurent Vivier void (*numa_auto_assign_ram)(MachineClass *mc, NodeInfo *nodes, 2123bfe5716SLaurent Vivier int nb_nodes, ram_addr_t size); 213907aac2fSMark Cave-Ayland bool ignore_boot_device_suffixes; 2147fccf2a0SCorey Minyard bool smbus_no_migration_support; 215f6a0d06bSEric Auger bool nvdimm_supported; 216cd5ff833SIgor Mammedov bool numa_mem_supported; 2170533ef5fSTao Xu bool auto_enable_numa; 218900c0ba3SIgor Mammedov const char *default_ram_id; 219b7454548SIgor Mammedov 220b7454548SIgor Mammedov HotplugHandler *(*get_hotplug_handler)(MachineState *machine, 221b7454548SIgor Mammedov DeviceState *dev); 222d2321d31SPeter Xu bool (*hotplug_allowed)(MachineState *state, DeviceState *dev, 223d2321d31SPeter Xu Error **errp); 224ea089eebSIgor Mammedov CpuInstanceProperties (*cpu_index_to_instance_props)(MachineState *machine, 225ea089eebSIgor Mammedov unsigned cpu_index); 22680e5db30SIgor Mammedov const CPUArchIdList *(*possible_cpu_arch_ids)(MachineState *machine); 22779e07936SIgor Mammedov int64_t (*get_default_cpu_node_id)(const MachineState *ms, int idx); 2285c30ef93SChristian Borntraeger ram_addr_t (*fixup_ram_size)(ram_addr_t size); 22936d20cb2SMarcel Apfelbaum }; 23036d20cb2SMarcel Apfelbaum 23136d20cb2SMarcel Apfelbaum /** 232e017da37SDavid Hildenbrand * DeviceMemoryState: 233b0c14ec4SDavid Hildenbrand * @base: address in guest physical address space where the memory 234b0c14ec4SDavid Hildenbrand * address space for memory devices starts 235b0c14ec4SDavid Hildenbrand * @mr: address space container for memory devices 236b0c14ec4SDavid Hildenbrand */ 237e017da37SDavid Hildenbrand typedef struct DeviceMemoryState { 238b0c14ec4SDavid Hildenbrand hwaddr base; 239b0c14ec4SDavid Hildenbrand MemoryRegion mr; 240e017da37SDavid Hildenbrand } DeviceMemoryState; 241b0c14ec4SDavid Hildenbrand 242b0c14ec4SDavid Hildenbrand /** 243edeeec91SLike Xu * CpuTopology: 244edeeec91SLike Xu * @cpus: the number of present logical processors on the machine 245edeeec91SLike Xu * @cores: the number of cores in one package 246edeeec91SLike Xu * @threads: the number of threads in one core 2478cb30e3aSBabu Moger * @sockets: the number of sockets on the machine 248edeeec91SLike Xu * @max_cpus: the maximum number of logical processors on the machine 249edeeec91SLike Xu */ 250edeeec91SLike Xu typedef struct CpuTopology { 251edeeec91SLike Xu unsigned int cpus; 252edeeec91SLike Xu unsigned int cores; 253edeeec91SLike Xu unsigned int threads; 2548cb30e3aSBabu Moger unsigned int sockets; 255edeeec91SLike Xu unsigned int max_cpus; 256edeeec91SLike Xu } CpuTopology; 257edeeec91SLike Xu 258edeeec91SLike Xu /** 25936d20cb2SMarcel Apfelbaum * MachineState: 26036d20cb2SMarcel Apfelbaum */ 26136d20cb2SMarcel Apfelbaum struct MachineState { 26236d20cb2SMarcel Apfelbaum /*< private >*/ 26336d20cb2SMarcel Apfelbaum Object parent_obj; 26433cd52b5SAlexander Graf Notifier sysbus_notifier; 26533cd52b5SAlexander Graf 26636d20cb2SMarcel Apfelbaum /*< public >*/ 26736d20cb2SMarcel Apfelbaum 26836d20cb2SMarcel Apfelbaum char *dtb; 26936d20cb2SMarcel Apfelbaum char *dumpdtb; 27036d20cb2SMarcel Apfelbaum int phandle_start; 27136d20cb2SMarcel Apfelbaum char *dt_compatible; 27236d20cb2SMarcel Apfelbaum bool dump_guest_core; 27336d20cb2SMarcel Apfelbaum bool mem_merge; 27436d20cb2SMarcel Apfelbaum bool usb; 275c6e76503SPaolo Bonzini bool usb_disabled; 27636d20cb2SMarcel Apfelbaum char *firmware; 277a52a7fdfSLe Tan bool iommu; 2789850c604SAlexander Graf bool suppress_vmdesc; 279902c053dSGreg Kurz bool enforce_config_section; 280cfc58cf3SEduardo Habkost bool enable_graphics; 281db588194SBrijesh Singh char *memory_encryption; 282aa8b1839SIgor Mammedov char *ram_memdev_id; 28382b911aaSIgor Mammedov /* 28482b911aaSIgor Mammedov * convenience alias to ram_memdev_id backend memory region 28582b911aaSIgor Mammedov * or to numa container memory region 28682b911aaSIgor Mammedov */ 28782b911aaSIgor Mammedov MemoryRegion *ram; 288e017da37SDavid Hildenbrand DeviceMemoryState *device_memory; 28936d20cb2SMarcel Apfelbaum 2903ef96221SMarcel Apfelbaum ram_addr_t ram_size; 291c270fb9eSIgor Mammedov ram_addr_t maxram_size; 292c270fb9eSIgor Mammedov uint64_t ram_slots; 2933ef96221SMarcel Apfelbaum const char *boot_order; 2946b1b1440SMarcel Apfelbaum char *kernel_filename; 2956b1b1440SMarcel Apfelbaum char *kernel_cmdline; 2966b1b1440SMarcel Apfelbaum char *initrd_filename; 2976063d4c0SIgor Mammedov const char *cpu_type; 298ac2da55eSEduardo Habkost AccelState *accelerator; 29938690a1cSIgor Mammedov CPUArchIdList *possible_cpus; 300edeeec91SLike Xu CpuTopology smp; 301f6a0d06bSEric Auger struct NVDIMMState *nvdimms_state; 302aa570207STao Xu struct NumaState *numa_state; 30336d20cb2SMarcel Apfelbaum }; 30436d20cb2SMarcel Apfelbaum 305ed0b6de3SEduardo Habkost #define DEFINE_MACHINE(namestr, machine_initfn) \ 306ed0b6de3SEduardo Habkost static void machine_initfn##_class_init(ObjectClass *oc, void *data) \ 307ed0b6de3SEduardo Habkost { \ 308ed0b6de3SEduardo Habkost MachineClass *mc = MACHINE_CLASS(oc); \ 309ed0b6de3SEduardo Habkost machine_initfn(mc); \ 310ed0b6de3SEduardo Habkost } \ 311ed0b6de3SEduardo Habkost static const TypeInfo machine_initfn##_typeinfo = { \ 312ed0b6de3SEduardo Habkost .name = MACHINE_TYPE_NAME(namestr), \ 313ed0b6de3SEduardo Habkost .parent = TYPE_MACHINE, \ 314ed0b6de3SEduardo Habkost .class_init = machine_initfn##_class_init, \ 315ed0b6de3SEduardo Habkost }; \ 316ed0b6de3SEduardo Habkost static void machine_initfn##_register_types(void) \ 317ed0b6de3SEduardo Habkost { \ 318ed0b6de3SEduardo Habkost type_register_static(&machine_initfn##_typeinfo); \ 319ed0b6de3SEduardo Habkost } \ 3200e6aac87SEduardo Habkost type_init(machine_initfn##_register_types) 321ed0b6de3SEduardo Habkost 322541aaa1dSCornelia Huck extern GlobalProperty hw_compat_5_0[]; 323541aaa1dSCornelia Huck extern const size_t hw_compat_5_0_len; 324541aaa1dSCornelia Huck 3255f258577SEvgeny Yakovlev extern GlobalProperty hw_compat_4_2[]; 3265f258577SEvgeny Yakovlev extern const size_t hw_compat_4_2_len; 3275f258577SEvgeny Yakovlev 3289aec2e52SCornelia Huck extern GlobalProperty hw_compat_4_1[]; 3299aec2e52SCornelia Huck extern const size_t hw_compat_4_1_len; 3309aec2e52SCornelia Huck 3319bf2650bSCornelia Huck extern GlobalProperty hw_compat_4_0[]; 3329bf2650bSCornelia Huck extern const size_t hw_compat_4_0_len; 3339bf2650bSCornelia Huck 334abd93cc7SMarc-André Lureau extern GlobalProperty hw_compat_3_1[]; 335abd93cc7SMarc-André Lureau extern const size_t hw_compat_3_1_len; 336abd93cc7SMarc-André Lureau 337ddb3235dSMarc-André Lureau extern GlobalProperty hw_compat_3_0[]; 338ddb3235dSMarc-André Lureau extern const size_t hw_compat_3_0_len; 339ddb3235dSMarc-André Lureau 3400d47310bSMarc-André Lureau extern GlobalProperty hw_compat_2_12[]; 3410d47310bSMarc-André Lureau extern const size_t hw_compat_2_12_len; 3420d47310bSMarc-André Lureau 34343df70a9SMarc-André Lureau extern GlobalProperty hw_compat_2_11[]; 34443df70a9SMarc-André Lureau extern const size_t hw_compat_2_11_len; 34543df70a9SMarc-André Lureau 346503224f4SMarc-André Lureau extern GlobalProperty hw_compat_2_10[]; 347503224f4SMarc-André Lureau extern const size_t hw_compat_2_10_len; 348503224f4SMarc-André Lureau 3493e803152SMarc-André Lureau extern GlobalProperty hw_compat_2_9[]; 3503e803152SMarc-André Lureau extern const size_t hw_compat_2_9_len; 3513e803152SMarc-André Lureau 352edc24ccdSMarc-André Lureau extern GlobalProperty hw_compat_2_8[]; 353edc24ccdSMarc-André Lureau extern const size_t hw_compat_2_8_len; 354edc24ccdSMarc-André Lureau 3555a995064SMarc-André Lureau extern GlobalProperty hw_compat_2_7[]; 3565a995064SMarc-André Lureau extern const size_t hw_compat_2_7_len; 3575a995064SMarc-André Lureau 358ff8f261fSMarc-André Lureau extern GlobalProperty hw_compat_2_6[]; 359ff8f261fSMarc-André Lureau extern const size_t hw_compat_2_6_len; 360ff8f261fSMarc-André Lureau 361fe759610SMarc-André Lureau extern GlobalProperty hw_compat_2_5[]; 362fe759610SMarc-André Lureau extern const size_t hw_compat_2_5_len; 363fe759610SMarc-André Lureau 3642f99b9c2SMarc-André Lureau extern GlobalProperty hw_compat_2_4[]; 3652f99b9c2SMarc-André Lureau extern const size_t hw_compat_2_4_len; 3662f99b9c2SMarc-André Lureau 3678995dd90SMarc-André Lureau extern GlobalProperty hw_compat_2_3[]; 3688995dd90SMarc-André Lureau extern const size_t hw_compat_2_3_len; 3698995dd90SMarc-André Lureau 3701c30044eSMarc-André Lureau extern GlobalProperty hw_compat_2_2[]; 3711c30044eSMarc-André Lureau extern const size_t hw_compat_2_2_len; 3721c30044eSMarc-André Lureau 373c4fc5695SMarc-André Lureau extern GlobalProperty hw_compat_2_1[]; 374c4fc5695SMarc-André Lureau extern const size_t hw_compat_2_1_len; 375c4fc5695SMarc-André Lureau 3760d09e41aSPaolo Bonzini #endif 377