Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197872
b: refs/heads/master
c: 4038f5b
h: refs/heads/master
v: v3
  • Loading branch information
Amit Shah authored and Rusty Russell committed May 19, 2010
1 parent 98aca2d commit c2e0461
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdfadfc1adb87fc7e8a631b1f299715feacbde90
refs/heads/master: 4038f5b767a610c5a5d92d7047755c663ead1568
17 changes: 10 additions & 7 deletions trunk/drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1319,13 +1319,16 @@ static void config_intr(struct virtio_device *vdev)

portdev = vdev->priv;

/*
* We'll use this way of resizing only for legacy support.
* For newer userspace (VIRTIO_CONSOLE_F_MULTPORT+), use
* control messages to indicate console size changes so that
* it can be done per-port
*/
resize_console(find_port_by_id(portdev, 0));
if (!use_multiport(portdev)) {
/*
* We'll use this way of resizing only for legacy
* support. For newer userspace
* (VIRTIO_CONSOLE_F_MULTPORT+), use control messages
* to indicate console size changes so that it can be
* done per-port.
*/
resize_console(find_port_by_id(portdev, 0));
}
}

static int init_vqs(struct ports_device *portdev)
Expand Down

0 comments on commit c2e0461

Please sign in to comment.