1 #ifndef ARM_COMMON__KVM_CONFIG_ARCH_H 2 #define ARM_COMMON__KVM_CONFIG_ARCH_H 3 4 #include "kvm/parse-options.h" 5 6 struct kvm_config_arch { 7 const char *dump_dtb_filename; 8 unsigned int force_cntfrq; 9 bool virtio_trans_pci; 10 bool aarch32_guest; 11 bool has_pmuv3; 12 bool mte_disabled; 13 u64 kaslr_seed; 14 enum irqchip_type irqchip; 15 u64 fw_addr; 16 bool no_pvtime; 17 }; 18 19 int irqchip_parser(const struct option *opt, const char *arg, int unset); 20 21 #define OPT_ARCH_RUN(pfx, cfg) \ 22 pfx, \ 23 ARM_OPT_ARCH_RUN(cfg) \ 24 OPT_STRING('\0', "dump-dtb", &(cfg)->dump_dtb_filename, \ 25 ".dtb file", "Dump generated .dtb to specified file"), \ 26 OPT_UINTEGER('\0', "override-bad-firmware-cntfrq", &(cfg)->force_cntfrq,\ 27 "Specify Generic Timer frequency in guest DT to " \ 28 "work around buggy secure firmware *Firmware should be " \ 29 "updated to program CNTFRQ correctly*"), \ 30 OPT_BOOLEAN('\0', "force-pci", &(cfg)->virtio_trans_pci, \ 31 "Force virtio devices to use PCI as their default " \ 32 "transport"), \ 33 OPT_CALLBACK('\0', "irqchip", &(cfg)->irqchip, \ 34 "[gicv2|gicv2m|gicv3|gicv3-its]", \ 35 "Type of interrupt controller to emulate in the guest", \ 36 irqchip_parser, NULL), \ 37 OPT_U64('\0', "firmware-address", &(cfg)->fw_addr, \ 38 "Address where firmware should be loaded"), 39 40 #endif /* ARM_COMMON__KVM_CONFIG_ARCH_H */ 41