aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-05-25 14:21:12 +0200
committerAmit Shah <amit.shah@redhat.com>2011-05-27 15:50:56 +0530
commit31d0f80f17b37a71ad4231daf05be9fab3c70292 (patch)
treea6ee07cc0a2dc01d949e131ce525ed79dad482f2 /hw
parent2a3d57ce4278dfd898d8b5639ace21fa4a4fb9bd (diff)
virtio-serial: Drop useless property is_console
All you could ever achieve with it is break stuff, so removing it should be safe. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/virtio-console.c2
-rw-r--r--hw/virtio-serial.h3
2 files changed, 0 insertions, 5 deletions
diff --git a/hw/virtio-console.c b/hw/virtio-console.c
index 50b85f8a60..180ac0af76 100644
--- a/hw/virtio-console.c
+++ b/hw/virtio-console.c
@@ -91,7 +91,6 @@ static int virtconsole_initfn(VirtIOSerialPort *port)
{
VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port);
- port->is_console_dummy = true;
return generic_port_init(vcon, port);
}
@@ -117,7 +116,6 @@ static VirtIOSerialPortInfo virtconsole_info = {
.init = virtconsole_initfn,
.exit = virtconsole_exitfn,
.qdev.props = (Property[]) {
- DEFINE_PROP_UINT8("is_console", VirtConsole, port.is_console_dummy, 1),
DEFINE_PROP_UINT32("nr", VirtConsole, port.id, VIRTIO_CONSOLE_BAD_ID),
DEFINE_PROP_CHR("chardev", VirtConsole, chr),
DEFINE_PROP_STRING("name", VirtConsole, port.name),
diff --git a/hw/virtio-serial.h b/hw/virtio-serial.h
index 350ed21911..ac612f219f 100644
--- a/hw/virtio-serial.h
+++ b/hw/virtio-serial.h
@@ -124,9 +124,6 @@ struct VirtIOSerialPort {
*/
QEMUBH *bh;
- /* For property backward compatibility, not used otherwise */
- uint8_t is_console_dummy;
-
/* Is the corresponding guest device open? */
bool guest_connected;
/* Is this device open for IO on the host? */