Commit f550804a authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell

virtio: console: We support only one device at a time

We support only one virtio_console device at a time. If multiple are
found, error out if one is already initialized.
Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 1dff3996
......@@ -204,6 +204,11 @@ static int __devinit virtcons_probe(struct virtio_device *dev)
struct virtqueue *vqs[2];
int err;
if (vdev) {
dev_warn(&vdev->dev,
"Multiple virtio-console devices not supported yet\n");
return -EEXIST;
}
vdev = dev;
/* This is the scratch page we use to receive console input */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment