mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
virtio-serial: enable virtio console emergency write feature
Add support for enabling the virtio 1.0 "emergency write" (VIRTIO_CONSOLE_F_EMERG_WRITE) feature. The previous patch introduced the plumbing required for this; now we expose the virtio feature to the guest. The feature is disabled for compatibility machines to avoid exposing a new feature to existing guests. As required by the virtio 1.0 spec, the emergency write functionality is available to the guest even if the guest doesn't negotatiate the feature, as well as before feature negotation. Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Sascha Silbe <silbe@linux.vnet.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
09da01c3f2
commit
a06b1dae47
3 changed files with 15 additions and 3 deletions
|
@ -6,6 +6,10 @@
|
|||
.driver = "virtio-pci",\
|
||||
.property = "page-per-vq",\
|
||||
.value = "on",\
|
||||
},{\
|
||||
.driver = "virtio-serial-device",\
|
||||
.property = "emergency-write",\
|
||||
.value = "off",\
|
||||
},{\
|
||||
.driver = "ioapic",\
|
||||
.property = "version",\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue