Revision 31d0f80f
b/hw/virtio-console.c | ||
---|---|---|
91 | 91 |
{ |
92 | 92 |
VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); |
93 | 93 |
|
94 |
port->is_console_dummy = true; |
|
95 | 94 |
return generic_port_init(vcon, port); |
96 | 95 |
} |
97 | 96 |
|
... | ... | |
117 | 116 |
.init = virtconsole_initfn, |
118 | 117 |
.exit = virtconsole_exitfn, |
119 | 118 |
.qdev.props = (Property[]) { |
120 |
DEFINE_PROP_UINT8("is_console", VirtConsole, port.is_console_dummy, 1), |
|
121 | 119 |
DEFINE_PROP_UINT32("nr", VirtConsole, port.id, VIRTIO_CONSOLE_BAD_ID), |
122 | 120 |
DEFINE_PROP_CHR("chardev", VirtConsole, chr), |
123 | 121 |
DEFINE_PROP_STRING("name", VirtConsole, port.name), |
b/hw/virtio-serial.h | ||
---|---|---|
124 | 124 |
*/ |
125 | 125 |
QEMUBH *bh; |
126 | 126 |
|
127 |
/* For property backward compatibility, not used otherwise */ |
|
128 |
uint8_t is_console_dummy; |
|
129 |
|
|
130 | 127 |
/* Is the corresponding guest device open? */ |
131 | 128 |
bool guest_connected; |
132 | 129 |
/* Is this device open for IO on the host? */ |
Also available in: Unified diff