mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
qemu: rename QEMU_CAPS_SCLP_S390 to QEMU_CAPS_DEVICE_SCLPCONSOLE
Give a better name to the capability for the sclpconsole device. Signed-off-by: Pino Toscano <ptoscano@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
87eabeb17d
commit
98b55862ef
@ -1598,7 +1598,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
|
||||
{ "ich9-ahci", QEMU_CAPS_ICH9_AHCI },
|
||||
{ "virtio-blk-s390", QEMU_CAPS_VIRTIO_S390 },
|
||||
{ "virtio-blk-ccw", QEMU_CAPS_VIRTIO_CCW },
|
||||
{ "sclpconsole", QEMU_CAPS_SCLP_S390 },
|
||||
{ "sclpconsole", QEMU_CAPS_DEVICE_SCLPCONSOLE },
|
||||
{ "lsi53c895a", QEMU_CAPS_SCSI_LSI },
|
||||
{ "virtio-scsi-pci", QEMU_CAPS_VIRTIO_SCSI },
|
||||
{ "virtio-scsi-s390", QEMU_CAPS_VIRTIO_SCSI },
|
||||
|
@ -220,7 +220,7 @@ typedef enum {
|
||||
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* */
|
||||
QEMU_CAPS_DEVICE_SCLPCONSOLE, /* -device sclpconsole */
|
||||
|
||||
/* 125 */
|
||||
QEMU_CAPS_DEVICE_USB_SERIAL, /* -device usb-serial */
|
||||
|
@ -9308,9 +9308,9 @@ qemuBuildConsoleCommandLine(virLogManagerPtr logManager,
|
||||
switch (console->targetType) {
|
||||
case VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SCLP:
|
||||
case VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SCLPLM:
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCLP_S390)) {
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_SCLPCONSOLE)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("sclp console requires QEMU to support s390-sclp"));
|
||||
_("sclpconsole is not supported in this QEMU binary"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -1330,7 +1330,7 @@ mymain(void)
|
||||
DO_TEST("console-sclp",
|
||||
QEMU_CAPS_NODEFCONFIG,
|
||||
QEMU_CAPS_VIRTIO_S390,
|
||||
QEMU_CAPS_SCLP_S390);
|
||||
QEMU_CAPS_DEVICE_SCLPCONSOLE);
|
||||
DO_TEST("channel-spicevmc",
|
||||
QEMU_CAPS_NODEFCONFIG,
|
||||
QEMU_CAPS_SPICE,
|
||||
|
Loading…
Reference in New Issue
Block a user