mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu: capabilities: Assume QEMU_CAPS_AES_KEY_WRAP and QEMU_CAPS_DEA_KEY_WRAP for s390 only
qemu introduced these options in 2eb1cd0768 ("s390x: CPACF: Handle key wrap machine options") released in qemu-v2.3.0 but was exposed in query-command-line-options only in 5bcfa0c543 ("util/qemu-config: fix missing machine command line options"). The problem is that they are exposed even for architectures which don't actually in fact support those. Make the two capabilities a bit more useful by assuming them only on s390 and thus removing them from other arches. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e9badd8ac2
commit
da20199762
@ -3209,8 +3209,6 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
|
||||
{ "fsdev", "multidevs", QEMU_CAPS_FSDEV_MULTIDEVS },
|
||||
{ "fsdev", "fmode", QEMU_CAPS_FSDEV_CREATEMODE }, /* Could have also checked fsdev->dmode */
|
||||
{ "fw_cfg", "file", QEMU_CAPS_FW_CFG },
|
||||
{ "machine", "aes-key-wrap", QEMU_CAPS_AES_KEY_WRAP },
|
||||
{ "machine", "dea-key-wrap", QEMU_CAPS_DEA_KEY_WRAP },
|
||||
{ "machine", "kernel_irqchip", QEMU_CAPS_MACHINE_KERNEL_IRQCHIP },
|
||||
{ "machine", "loadparm", QEMU_CAPS_LOADPARM },
|
||||
{ "numa", NULL, QEMU_CAPS_NUMA }, /* not needed after qemuCaps->version < 3000000 */
|
||||
@ -5002,6 +5000,12 @@ virQEMUCapsInitQMPBasicArch(virQEMUCaps *qemuCaps)
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_MACHINE_PSERIES_MAX_CPU_COMPAT);
|
||||
break;
|
||||
|
||||
case VIR_ARCH_S390:
|
||||
case VIR_ARCH_S390X:
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_AES_KEY_WRAP);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DEA_KEY_WRAP);
|
||||
break;
|
||||
|
||||
case VIR_ARCH_ALPHA:
|
||||
case VIR_ARCH_PPC:
|
||||
case VIR_ARCH_PPCEMB:
|
||||
@ -5009,8 +5013,6 @@ virQEMUCapsInitQMPBasicArch(virQEMUCaps *qemuCaps)
|
||||
case VIR_ARCH_SH4EB:
|
||||
case VIR_ARCH_RISCV32:
|
||||
case VIR_ARCH_RISCV64:
|
||||
case VIR_ARCH_S390:
|
||||
case VIR_ARCH_S390X:
|
||||
case VIR_ARCH_SPARC:
|
||||
case VIR_ARCH_SPARC64:
|
||||
case VIR_ARCH_ARMV6L:
|
||||
|
@ -82,8 +82,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -59,8 +59,6 @@
|
||||
<flag name='migrate-rdma'/>
|
||||
<flag name='ivshmem'/>
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='aarch64-off'/>
|
||||
<flag name='migration-event'/>
|
||||
|
@ -59,8 +59,6 @@
|
||||
<flag name='ivshmem'/>
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='rtl8139'/>
|
||||
|
@ -82,8 +82,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -58,8 +58,6 @@
|
||||
<flag name='ivshmem'/>
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='rtl8139'/>
|
||||
|
@ -26,8 +26,6 @@
|
||||
<flag name='memory-backend-file'/>
|
||||
<flag name='iothread'/>
|
||||
<flag name='migrate-rdma'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='virtio-net'/>
|
||||
<flag name='incoming-defer'/>
|
||||
|
@ -26,8 +26,6 @@
|
||||
<flag name='memory-backend-file'/>
|
||||
<flag name='iothread'/>
|
||||
<flag name='migrate-rdma'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='virtio-net'/>
|
||||
<flag name='incoming-defer'/>
|
||||
|
@ -81,8 +81,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -59,8 +59,6 @@
|
||||
<flag name='ivshmem'/>
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='rtl8139'/>
|
||||
|
@ -81,8 +81,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -61,8 +61,6 @@
|
||||
<flag name='migrate-rdma'/>
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='aarch64-off'/>
|
||||
<flag name='migration-event'/>
|
||||
|
@ -61,8 +61,6 @@
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -65,8 +65,6 @@
|
||||
<flag name='migrate-rdma'/>
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='gpex-pcihost'/>
|
||||
|
@ -65,8 +65,6 @@
|
||||
<flag name='migrate-rdma'/>
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='gpex-pcihost'/>
|
||||
|
@ -80,8 +80,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -80,8 +80,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -62,8 +62,6 @@
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='aarch64-off'/>
|
||||
<flag name='migration-event'/>
|
||||
|
@ -61,8 +61,6 @@
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -81,8 +81,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -64,8 +64,6 @@
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='aarch64-off'/>
|
||||
<flag name='migration-event'/>
|
||||
|
@ -62,8 +62,6 @@
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -65,8 +65,6 @@
|
||||
<flag name='migrate-rdma'/>
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='gpex-pcihost'/>
|
||||
|
@ -81,8 +81,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -26,8 +26,6 @@
|
||||
<flag name='memory-backend-file'/>
|
||||
<flag name='iothread'/>
|
||||
<flag name='migrate-rdma'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='incoming-defer'/>
|
||||
<flag name='chardev-file-append'/>
|
||||
|
@ -81,8 +81,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -63,8 +63,6 @@
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='aarch64-off'/>
|
||||
<flag name='migration-event'/>
|
||||
|
@ -61,8 +61,6 @@
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='ioh3420'/>
|
||||
|
@ -64,8 +64,6 @@
|
||||
<flag name='migrate-rdma'/>
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='gpex-pcihost'/>
|
||||
|
@ -80,8 +80,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='gpex-pcihost'/>
|
||||
|
@ -62,8 +62,6 @@
|
||||
<flag name='VGA.vgamem_mb'/>
|
||||
<flag name='vmware-svga.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='aarch64-off'/>
|
||||
<flag name='migration-event'/>
|
||||
|
@ -79,8 +79,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='gpex-pcihost'/>
|
||||
|
@ -79,8 +79,6 @@
|
||||
<flag name='qxl.vgamem_mb'/>
|
||||
<flag name='pc-dimm'/>
|
||||
<flag name='machine-vmport-opt'/>
|
||||
<flag name='aes-key-wrap'/>
|
||||
<flag name='dea-key-wrap'/>
|
||||
<flag name='pci-serial'/>
|
||||
<flag name='migration-event'/>
|
||||
<flag name='gpex-pcihost'/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user