summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Färber2014-03-13 17:12:53 +0100
committerAndreas Färber2014-03-13 21:12:07 +0100
commitbe21c336162f5f4269131faffb1c6461cf57b74a (patch)
treebb23ee9148fdc4f8dc117eda1684a0ba91353b90 /include
parentMerge remote-tracking branch 'remotes/afaerber/tags/qom-cpu-for-2.0' into sta... (diff)
downloadqemu-be21c336162f5f4269131faffb1c6461cf57b74a.tar.gz
qemu-be21c336162f5f4269131faffb1c6461cf57b74a.tar.xz
qemu-be21c336162f5f4269131faffb1c6461cf57b74a.zip
virtio-console: Fix VIRTIO_CONSOLE() cast macro
Commit 0399a3819b27083ba69b88a9baa9025facab85bd (virtio-console: QOM cast cleanup for VirtConsole) broke virtserialport since it shares functions and state struct with virtconsole. Let virtconsole inherit from virtserialport, and use virtserialport type for casting. Note that virtio-serial-port is the abstract base type in virtio-serial-bus.c, whereas virtserialport is the user-instantiatable type in virtio-console.c. Therefore using TYPE_VIRTIO_CONSOLE_SERIAL_PORT. Reported-by: Richard W.M. Jones <rjones@redhat.com> Acked-by: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions