search for: resize_console

Displaying 20 results from an estimated 34 matches for "resize_console".

2010 Mar 19
3
[PATCH 0/6] virtio: console: Fixes, abi update
...K with these. I also have a git repo at git://git.kernel.org/pub/scm/linux/kernel/git/amit/vs-kernel.git master if you prefer to pull the patches. Amit Shah (6): virtio: console: Generate a kobject CHANGE event on adding 'name' attribute virtio: console: Check if port is valid in resize_console virtio: console: Switch to using a port bitmap for port discovery virtio: console: Separate out get_config in a separate function virtio: console: Handle hot-plug/unplug config actions virtio: console: Remove hot-unplug control message drivers/char/virtio_console.c | 238 +++++++++++++++...
2010 Mar 19
3
[PATCH 0/6] virtio: console: Fixes, abi update
...K with these. I also have a git repo at git://git.kernel.org/pub/scm/linux/kernel/git/amit/vs-kernel.git master if you prefer to pull the patches. Amit Shah (6): virtio: console: Generate a kobject CHANGE event on adding 'name' attribute virtio: console: Check if port is valid in resize_console virtio: console: Switch to using a port bitmap for port discovery virtio: console: Separate out get_config in a separate function virtio: console: Handle hot-plug/unplug config actions virtio: console: Remove hot-unplug control message drivers/char/virtio_console.c | 238 +++++++++++++++...
2010 May 05
2
[PATCH 0/3] virtio: console: Handle multiple console port resizes
Hello, This series adds resize support for multiple console ports. The size for each console is stored in its structure and the host informs the guest about size changes via the VIRTIO_CONSOLE_RESIZE control message. This is easily tested by the qemu patches provided by Kusanagi Kouichi with some updates, which I will shortly send to the qemu-devel list. Please apply, Amit. Amit Shah (3):
2010 May 05
2
[PATCH 0/3] virtio: console: Handle multiple console port resizes
Hello, This series adds resize support for multiple console ports. The size for each console is stored in its structure and the host informs the guest about size changes via the VIRTIO_CONSOLE_RESIZE control message. This is easily tested by the qemu patches provided by Kusanagi Kouichi with some updates, which I will shortly send to the qemu-devel list. Please apply, Amit. Amit Shah (3):
2010 Feb 28
3
[PULL] virtio
Linus, Rusty asked me to resolve any issues with virtio and lguest that surface, so here comes. Thanks! The following changes since commit 847f9c606cad121cebf984639e3eeee1c4db82f8: Linus Torvalds (1): Merge branch 'for-linus' of git://git.kernel.org/.../geert/linux-m68k are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git
2010 Feb 28
3
[PULL] virtio
Linus, Rusty asked me to resolve any issues with virtio and lguest that surface, so here comes. Thanks! The following changes since commit 847f9c606cad121cebf984639e3eeee1c4db82f8: Linus Torvalds (1): Merge branch 'for-linus' of git://git.kernel.org/.../geert/linux-m68k are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git
2014 Dec 01
1
[PATCH] virtio_console: fix sparse warnings
...7 @@ static int get_chars(u32 vtermno, char *buf, int count) /* If we don't have an input queue yet, we can't get input. */ BUG_ON(!port->in_vq); - return fill_readbuf(port, buf, count, false); + return fill_readbuf(port, (__force char __user *)buf, count, false); } static void resize_console(struct port *port) -- MST
2014 Dec 01
1
[PATCH] virtio_console: fix sparse warnings
...7 @@ static int get_chars(u32 vtermno, char *buf, int count) /* If we don't have an input queue yet, we can't get input. */ BUG_ON(!port->in_vq); - return fill_readbuf(port, buf, count, false); + return fill_readbuf(port, (__force char __user *)buf, count, false); } static void resize_console(struct port *port) -- MST
2012 Sep 19
2
[PATCHv2] virtio_console: Add support for remoteproc serial
...t; } @@ -767,6 +826,7 @@ static int port_fops_release(struct inode *inode, struct file *filp) spin_unlock_irq(&port->inbuf_lock); spin_lock_irq(&port->outvq_lock); + reclaim_consumed_buffers(port); spin_unlock_irq(&port->outvq_lock); @@ -918,7 +978,8 @@ static void resize_console(struct port *port) return; vdev = port->portdev->vdev; - if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) + if (!is_rproc_serial(vdev) && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) hvc_resize(port->cons.hvc, port->cons.ws); } @@ -1102,7 +1163,7 @@ st...
2012 Sep 19
2
[PATCHv2] virtio_console: Add support for remoteproc serial
...t; } @@ -767,6 +826,7 @@ static int port_fops_release(struct inode *inode, struct file *filp) spin_unlock_irq(&port->inbuf_lock); spin_lock_irq(&port->outvq_lock); + reclaim_consumed_buffers(port); spin_unlock_irq(&port->outvq_lock); @@ -918,7 +978,8 @@ static void resize_console(struct port *port) return; vdev = port->portdev->vdev; - if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) + if (!is_rproc_serial(vdev) && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) hvc_resize(port->cons.hvc, port->cons.ws); } @@ -1102,7 +1163,7 @@ st...
2012 Sep 13
0
[PATCH] virtio_console: Add support for remoteproc serial
...= alloc_databuf(vdev, count, GFP_KERNEL); if (!buf) return -ENOMEM; @@ -720,7 +772,7 @@ static ssize_t port_fops_write(struct file *filp, const char __user *ubuf, goto out; free_buf: - kfree(buf); + free_databuf(vdev, count, buf); out: return ret; } @@ -918,7 +970,8 @@ static void resize_console(struct port *port) return; vdev = port->portdev->vdev; - if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) + if (!is_rproc_serial(vdev) && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) hvc_resize(port->cons.hvc, port->cons.ws); } @@ -1102,7 +1155,7 @@ st...
2012 Sep 13
0
[PATCH] virtio_console: Add support for remoteproc serial
...= alloc_databuf(vdev, count, GFP_KERNEL); if (!buf) return -ENOMEM; @@ -720,7 +772,7 @@ static ssize_t port_fops_write(struct file *filp, const char __user *ubuf, goto out; free_buf: - kfree(buf); + free_databuf(vdev, count, buf); out: return ret; } @@ -918,7 +970,8 @@ static void resize_console(struct port *port) return; vdev = port->portdev->vdev; - if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) + if (!is_rproc_serial(vdev) && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) hvc_resize(port->cons.hvc, port->cons.ws); } @@ -1102,7 +1155,7 @@ st...
2012 Sep 20
0
[PATCHv3] virtio_console: Add support for remoteproc serial
...oc_databuf(vdev, buf_size, GFP_KERNEL); if (!buf) return -ENOMEM; @@ -720,7 +783,7 @@ static ssize_t port_fops_write(struct file *filp, const char __user *ubuf, goto out; free_buf: - kfree(buf); + free_databuf(vdev, buf_size, buf); out: return ret; } @@ -918,7 +981,8 @@ static void resize_console(struct port *port) return; vdev = port->portdev->vdev; - if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) + if (!is_rproc_serial(vdev) && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) hvc_resize(port->cons.hvc, port->cons.ws); } @@ -1102,7 +1166,7 @@ st...
2012 Sep 20
0
[PATCHv3] virtio_console: Add support for remoteproc serial
...oc_databuf(vdev, buf_size, GFP_KERNEL); if (!buf) return -ENOMEM; @@ -720,7 +783,7 @@ static ssize_t port_fops_write(struct file *filp, const char __user *ubuf, goto out; free_buf: - kfree(buf); + free_databuf(vdev, buf_size, buf); out: return ret; } @@ -918,7 +981,8 @@ static void resize_console(struct port *port) return; vdev = port->portdev->vdev; - if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) + if (!is_rproc_serial(vdev) && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) hvc_resize(port->cons.hvc, port->cons.ws); } @@ -1102,7 +1166,7 @@ st...
2012 Sep 24
2
[PATCHv4] virtio_console: Add support for remoteproc serial
...>outvq_lock); + if (is_rproc_serial(port->portdev->vdev) && !irqs_disabled()) + reclaim_dma_bufs(); /* * Locks aren't necessary here as a port can't be opened after * unplug, and if a port isn't unplugged, a kref would already @@ -918,7 +1024,8 @@ static void resize_console(struct port *port) return; vdev = port->portdev->vdev; - if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) + if (!is_rproc_serial(vdev) && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) hvc_resize(port->cons.hvc, port->cons.ws); } @@ -1102,10 +1209,10 @@...
2012 Sep 24
2
[PATCHv4] virtio_console: Add support for remoteproc serial
...>outvq_lock); + if (is_rproc_serial(port->portdev->vdev) && !irqs_disabled()) + reclaim_dma_bufs(); /* * Locks aren't necessary here as a port can't be opened after * unplug, and if a port isn't unplugged, a kref would already @@ -918,7 +1024,8 @@ static void resize_console(struct port *port) return; vdev = port->portdev->vdev; - if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) + if (!is_rproc_serial(vdev) && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) hvc_resize(port->cons.hvc, port->cons.ws); } @@ -1102,10 +1209,10 @@...
2010 Mar 30
3
[PATCH 4/4] virtio: disable multiport console support.
...s_console_port(port)) - break; - - init_port_console(port); - /* - * Could remove the port here in case init fails - but - * have to notify the host first. - */ - break; - case VIRTIO_CONSOLE_RESIZE: - if (!is_console_port(port)) - break; - port->cons.hvc->irq_requested = 1; - resize_console(port); - break; - case VIRTIO_CONSOLE_PORT_OPEN: - port->host_connected = cpkt->value; - wake_up_interruptible(&port->waitqueue); - break; - case VIRTIO_CONSOLE_PORT_NAME: - /* - * Skip the size of the header and the cpkt to get the size - * of the name that was sent - */ -...
2010 Mar 30
3
[PATCH 4/4] virtio: disable multiport console support.
...s_console_port(port)) - break; - - init_port_console(port); - /* - * Could remove the port here in case init fails - but - * have to notify the host first. - */ - break; - case VIRTIO_CONSOLE_RESIZE: - if (!is_console_port(port)) - break; - port->cons.hvc->irq_requested = 1; - resize_console(port); - break; - case VIRTIO_CONSOLE_PORT_OPEN: - port->host_connected = cpkt->value; - wake_up_interruptible(&port->waitqueue); - break; - case VIRTIO_CONSOLE_PORT_NAME: - /* - * Skip the size of the header and the cpkt to get the size - * of the name that was sent - */ -...
2012 Dec 12
2
[PATCHv9 0/2] virtio_console: Add rproc_serial driver
This patch-set introduces a new virtio type "rproc_serial" for communicating with remote processors over shared memory. The driver depends on the the remoteproc framework. As preparation for introducing "rproc_serial" I've done a refactoring of the transmit buffer handling. NOTE: These two patches are identical to first two patches of the V8 patch-set, but are rebased to
2012 Dec 12
2
[PATCHv9 0/2] virtio_console: Add rproc_serial driver
This patch-set introduces a new virtio type "rproc_serial" for communicating with remote processors over shared memory. The driver depends on the the remoteproc framework. As preparation for introducing "rproc_serial" I've done a refactoring of the transmit buffer handling. NOTE: These two patches are identical to first two patches of the V8 patch-set, but are rebased to