diff options
| author | Andreas Färber | 2014-03-13 17:12:53 +0100 |
|---|---|---|
| committer | Andreas Färber | 2014-03-13 21:12:07 +0100 |
| commit | be21c336162f5f4269131faffb1c6461cf57b74a (patch) | |
| tree | bb23ee9148fdc4f8dc117eda1684a0ba91353b90 /scripts | |
| parent | Merge remote-tracking branch 'remotes/afaerber/tags/qom-cpu-for-2.0' into sta... (diff) | |
| download | qemu-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 'scripts')
0 files changed, 0 insertions, 0 deletions
