mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
1dff399616
commit
f550804ab9
1 changed files with 5 additions and 0 deletions
|
@ -204,6 +204,11 @@ static int __devinit virtcons_probe(struct virtio_device *dev)
|
||||||
struct virtqueue *vqs[2];
|
struct virtqueue *vqs[2];
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
if (vdev) {
|
||||||
|
dev_warn(&vdev->dev,
|
||||||
|
"Multiple virtio-console devices not supported yet\n");
|
||||||
|
return -EEXIST;
|
||||||
|
}
|
||||||
vdev = dev;
|
vdev = dev;
|
||||||
|
|
||||||
/* This is the scratch page we use to receive console input */
|
/* This is the scratch page we use to receive console input */
|
||||||
|
|
Loading…
Reference in a new issue