aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/virtio_console.c
AgeCommit message (Expand)AuthorFilesLines
5 daysvirtio_console: drop owner assignmentKrzysztof Kozlowski1-2/+0
2023-12-08tty: hvc: convert to u8 and size_tJiri Slaby (SUSE)1-5/+5
2023-12-08tty: virtio: drop virtio_cons_early_init()Jiri Slaby (SUSE)1-48/+0
2023-10-24virtio_console: Annotate struct port_buffer with __counted_byKees Cook1-1/+1
2023-07-03Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-0/+1
2023-07-03virtio-console: call scheduler when we free unused buffsXianting Tian1-0/+1
2023-06-23virtio_console: make port class a static const structureIvan Orlov1-13/+11
2023-03-17driver core: class: remove module * from class_create()Greg Kroah-Hartman1-1/+1
2023-01-20virtio_console: Use strscpy() to instead of strncpy()Bo Liu1-3/+2
2022-11-23virtio_console: Introduce an ID allocator for virtual console numbersCédric Le Goater1-15/+11
2022-03-28Merge tag 'char-misc-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-4/+4
2022-03-18virtio_console: eliminate anonymous module_init & module_exitRandy Dunlap1-4/+4
2022-03-04virtio_console: break out of buf poll on removeMichael S. Tsirkin1-0/+7
2022-01-14virtio: wrap config->reset callsMichael S. Tsirkin1-2/+2
2021-11-01virtio_console: validate max_nr_ports before trying to use itJason Wang1-0/+9
2021-07-03virtio_console: Assure used length from device is limitedXie Yongji1-2/+2
2021-03-10virtio_console: remove pointless check for debugfs_create_dir()Greg Kroah-Hartman1-14/+9
2020-11-09virtio: virtio_console: fix DMA memory allocation for rproc serialAlexander Lobakin1-4/+4
2020-07-20Merge v5.8-rc6 into char-misc-nextGreg Kroah-Hartman1-1/+2
2020-07-10virtio: virtio_console: add missing MODULE_DEVICE_TABLE() for rproc serialAlexander Lobakin1-1/+2
2020-07-10virtio_console: Constify some static variablesRikard Falkeborn1-4/+4
2020-05-20fs: rename pipe_buf ->steal to ->try_stealChristoph Hellwig1-1/+1
2020-02-14char: virtio: Replace zero-length array with flexible-array memberGustavo A. R. Silva1-1/+1
2019-11-30Merge tag 'notifications-pipe-prep-20191115' of git://git.kernel.org/pub/scm/...Linus Torvalds1-9/+7
2019-11-19virtio_console: allocate inbufs in add_port() only if it is neededLaurent Vivier1-15/+13
2019-10-31pipe: Use head and tail pointers for the ring, not cursor and lengthDavid Howells1-9/+7
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156Thomas Gleixner1-14/+1
2019-03-28virtio_console: initialize vtermno value for portsPankaj Gupta1-1/+2
2018-12-06char: virtio: Change to use DEFINE_SHOW_ATTRIBUTE macroYangtao Li1-14/+3
2018-07-16virtio: virtconsole: Use seq_file for debugfs operationsTuomas Tynkkynen1-38/+22
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-7/+8
2018-06-12Convert virtio_console to struct_sizeMatthew Wilcox1-2/+1
2018-04-25virtio_console: reset on out of memoryMichael S. Tsirkin1-7/+10
2018-04-25virtio_console: move removal codeMichael S. Tsirkin1-36/+36
2018-04-25virtio_console: drop custom control queue cleanupMichael S. Tsirkin1-17/+0
2018-04-25virtio_console: free buffers after resetMichael S. Tsirkin1-25/+24
2018-04-25virtio_console: don't tie bufs to a vqMichael S. Tsirkin1-7/+7
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-4/+4
2017-11-28the rest of drivers/*: annotate ->poll() instancesAl Viro1-2/+2
2017-09-12Merge tag 'dma-mapping-4.14' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds1-3/+0
2017-09-05Merge tag 'char-misc-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+1
2017-09-01dma-coherent: remove the DMA_MEMORY_INCLUDES_CHILDREN flagChristoph Hellwig1-3/+0
2017-08-28char: virtio: constify attribute_group structures.Arvind Yadav1-1/+1
2017-08-24x86/lguest: Remove lguest supportJuergen Gross1-1/+1
2017-05-10Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-3/+3
2017-05-04Merge tag 'char-misc-4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+1
2017-05-02virtio: wrap find_vqsMichael S. Tsirkin1-3/+3
2017-04-07virtio_console: fix uninitialized variable useMichael S. Tsirkin1-2/+4
2017-03-17drivers/char: Convert remaining use of pr_warning to pr_warnJoe Perches1-1/+1
2017-03-02virtio-console: avoid DMA from stackOmar Sandoval1-2/+10
2017-02-27virtio: allow drivers to request IRQ affinity when creating VQsChristoph Hellwig1-1/+1
2017-01-19virtio_console: fix a crash in config_work_handlerG. Campana1-1/+1
2016-12-15virtio_console: drop unused config fieldsMichael S. Tsirkin1-7/+7
2016-10-31virtio: console: Unlock vqs while freeing buffersMatt Redfearn1-6/+16
2016-10-11treewide: remove redundant #include <linux/kconfig.h>Masahiro Yamada1-1/+0
2016-10-05pipe: add pipe_buf_steal() helperMiklos Szeredi1-1/+1
2016-09-09virtio_console: Stop doing DMA on the stackAndy Lutomirski1-8/+15
2015-05-24virtio_console: silence a static checker warningDan Carpenter1-2/+2
2015-04-03virtio_console: Use bool function return values of true/false not 1/0Joe Perches1-1/+1
2015-03-05virtio_console: avoid config access from irqMichael S. Tsirkin1-0/+16
2015-03-05virtio_console: init work unconditionallyMichael S. Tsirkin1-1/+2
2015-02-11virtio: don't require a config space on the console device.Rusty Russell1-1/+4
2015-01-21virtio/console: verify device has config spaceMichael S. Tsirkin1-0/+6
2014-12-09virtio_console: fix sparse warningsMichael S. Tsirkin1-4/+5
2014-12-09virtio: drop VIRTIO_F_VERSION_1 from driversMichael S. Tsirkin1-1/+0
2014-12-09virtio_console: virtio 1.0 supportMichael S. Tsirkin1-12/+17
2014-12-09virtio: use u32, not bitmap for featuresMichael S. Tsirkin1-1/+1
2014-11-13virtio_console: move early VQ enablementCornelia Huck1-2/+2
2014-10-15virtio_console: enable VQs early on restoreMichael S. Tsirkin1-0/+2
2014-10-15virtio_console: enable VQs earlyMichael S. Tsirkin1-0/+2
2014-07-27virtio: console: remove unnecessary null test before debugfs_remove_recursiveFabian Frederick1-4/+2
2014-04-01pipe: kill ->map() and ->unmap()Al Viro1-2/+2
2014-02-09fix a kmap leak in virtio_consoleAl Viro1-6/+3
2013-10-29virtio_console: verify if queue is broken after virtqueue_get_buf()Heinz Graalfs1-2/+4
2013-10-17virtio: use size-based config accessors.Rusty Russell1-10/+5
2013-09-23virtio: pm: use CONFIG_PM_SLEEP instead of CONFIG_PMAaron Lu1-2/+2
2013-08-09virtio: console: prevent use-after-free of port name in port unplugAmit Shah1-2/+1
2013-08-09Merge branch 'master' into virtio-nextRusty Russell1-22/+48
2013-07-30virtio: console: cleanup an error messageDan Carpenter1-4/+2
2013-07-29virtio: console: fix locking around send_sigio_to_port()Amit Shah1-3/+5
2013-07-29virtio: console: add locking in port unplug pathAmit Shah1-0/+2
2013-07-29virtio: console: add locks around buffer removal in port unplug pathAmit Shah1-2/+6
2013-07-29virtio: console: return -ENODEV on all read operations after unplugAmit Shah1-1/+5
2013-07-29virtio: console: fix raising SIGIO after port unplugAmit Shah1-3/+5
2013-07-29virtio: console: clean up port data immediately at time of unplugAmit Shah1-8/+8
2013-07-29virtio: console: fix race in port_fops_open() and port unplugAmit Shah1-0/+4
2013-07-29virtio: console: fix race with port unplug and open/closeAmit Shah1-7/+6
2013-07-23virtio/console: Add pipe_lock/unlock for splice_writeYoshihiro YUNOMAE1-5/+15
2013-07-23virtio/console: Quit from splice_write if pipe->nrbufs is 0Yoshihiro YUNOMAE1-0/+7
2013-05-02Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-7/+7
2013-04-15virtio: console: replace EMFILE with EBUSY for already-open portAmit Shah1-1/+1
2013-04-08virtio_console: make local symbols staticWei Yongjun1-3/+3
2013-03-30virtio: console: add locking around c_ovq operationsAmit Shah1-0/+5
2013-03-30virtio: console: rename cvq_lock to c_ivq_lockAmit Shah1-8/+9
2013-03-20virtio_console: use simplified virtqueue accessors.Rusty Russell1-3/+3
2013-03-18Revert "virtio_console: Initialize guest_connected=true for rproc_serial"Sjur Brændeland1-6/+16
2013-02-26Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-14/+4
2013-02-13virtio_console: Initialize guest_connected=true for rproc_serialSjur Brændeland1-5/+2
2013-02-12virtio_console: Use virtio device index to generate port nameSjur Brændeland1-13/+3
2013-02-07virtio_console: Don't access uninitialized data.Sjur Brændeland1-1/+2
2013-01-22virtio_console: Let unconnected rproc device receive data.Sjur Brændeland1-1/+4
2013-01-03Drivers: char: remove __dev* attributes.Greg Kroah-Hartman1-5/+1
2012-12-20Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-99/+230
2012-12-18virtio_console: Add support for remoteproc serialSjur Brændeland1-23/+169
2012-12-18virtio_console: Merge struct buffer_token into struct port_bufferSjur Brændeland1-76/+53
2012-12-18virtio_console: Free buffers from out-queue upon closesjur.brandeland@stericsson.com1-0/+4
2012-12-18virtio_console: Use kmalloc instead of kzallocSjur Brændeland1-1/+1
2012-12-18virtio_console: Free buffer if splice failsSjur Brændeland1-0/+2
2012-12-18virtio: console: make it clear that virtqueue_add_buf() no longer returns > 0Rusty Russell1-5/+5
2012-12-18virtio: console: don't rely on virtqueue_add_buf() returning capacity.Amit Shah1-0/+2
2012-11-21char: remove use of __devinitBill Pemberton1-1/+1
2012-09-28virtio: console: fix error handling in init() functionAlexey Khoroshilov1-1/+11
2012-09-28virtio/console: Allocate scatterlist according to the current pipe sizeMasami Hiramatsu1-11/+12
2012-09-28virtio/console: Wait until the port is ready on spliceMasami Hiramatsu1-12/+27
2012-09-28virtio/console: Add a failback for unstealable pipe bufferMasami Hiramatsu1-3/+25
2012-09-28virtio/console: Add splice_write supportMasami Hiramatsu1-8/+128
2012-05-17virtio: console: tell host of open ports after resume from s3/s4Amit Shah1-0/+7
2012-04-05simple_open: automatically convert to simple_open()Stephen Boyd1-7/+1
2012-01-12virtio: console: Disable callbacks for virtqueues at start of S4 freezeAmit Shah1-0/+8
2012-01-12virtio: console: Add freeze and restore handlers to support S4Amit Shah1-0/+58
2012-01-12virtio: console: Move vq and vq buf removal into separate functionsAmit Shah1-28/+40
2012-01-12virtio: rename virtqueue_add_buf_gfp to virtqueue_add_bufRusty Russell1-3/+3
2011-11-06Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-0/+1
2011-11-02virtio: console: wait for first console port for early console outputChristian Borntraeger1-0/+20
2011-11-02virtio: console: add port stats for bytes received, sent and discardedAmit Shah1-0/+24
2011-11-02virtio: console: make discard_port_data() use get_inbuf()Amit Shah1-10/+5
2011-11-02virtio: console: rename variableAmit Shah1-6/+5
2011-11-02virtio: console: make get_inbuf() return port->inbuf if presentAmit Shah1-14/+8
2011-11-02virtio: console: Fix return type for get_inbuf()Amit Shah1-1/+1
2011-11-02virtio: console: Use wait_event_freezable instead of _interruptibleAmit Shah1-4/+5
2011-11-02virtio: console: Ignore port name update request if name already setAmit Shah1-0/+7
2011-11-02virtio: console: Fix indentationAmit Shah1-1/+1
2011-11-02virtio-console: Use virtio_config_val() for retrieving configSasha Levin1-6/+4
2011-10-31drivers/char: Add module.h to those who were using it implicitlyPaul Gortmaker1-0/+1
2011-05-30virtio console: don't manually set or finalize VIRTIO_CONSOLE_F_MULTIPORT.Rusty Russell1-5/+0
2011-04-21virtio: console: Enable call to hvc_remove() on console port removeAmit Shah1-11/+0
2011-03-06virtio: console: Don't access vqs if device was unpluggedAmit Shah1-0/+8
2011-02-10Merge branch 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-0/+1850
2011-02-03virtio: console: Move file back to drivers/char/Amit Shah1-0/+1838
2011-01-13tty: move hvc drivers to drivers/tty/hvc/Greg Kroah-Hartman1-1838/+0
2010-11-24Char: virtio_console, fix memory leakJiri Slaby1-28/+9
2010-10-21virtio: console: Disable lseek(2) for port file operationsAmit Shah1-0/+3
2010-10-21virtio: console: Send SIGIO in case of port unplugAmit Shah1-0/+3
2010-10-21virtio: console: Send SIGIO on new data arrival on portsAmit Shah1-0/+3
2010-10-21virtio: console: Send SIGIO to processes that request it for host eventsAmit Shah1-0/+25
2010-10-21virtio: console: Reference counting portdev structs is not neededAmit Shah1-0/+8
2010-10-21virtio: console: Add reference counting for port structAmit Shah1-16/+64
2010-10-21virtio: console: Use cdev_alloc() instead of cdev_init()Amit Shah1-7/+13
2010-10-21virtio: console: Add a find_port_by_devt() functionAmit Shah1-1/+36
2010-10-21virtio: console: Add a list of portdevs that are activeAmit Shah1-0/+15
2010-10-21virtio: console: open: Use a common path for error handlingAmit Shah1-3/+9
2010-10-21virtio: console: remove_port() should return voidAmit Shah1-2/+1
2010-10-21virtio: console: Make write() return -ENODEV on hot-unplugAmit Shah1-0/+3
2010-10-21virtio: console: Make read() return -ENODEV on hot-unplugAmit Shah1-0/+3
2010-10-21virtio: console: Unblock poll on port hot-unplugAmit Shah1-0/+4
2010-10-21virtio: console: Un-block reads on chardev closeAmit Shah1-0/+4
2010-10-21virtio: console: Check if portdev is valid in send_control_msg()Amit Shah1-1/+4
2010-10-21virtio: console: Remove control vq data only if using multiport supportAmit Shah1-6/+9
2010-10-21virtio: console: Reset vdev before removing deviceAmit Shah1-0/+3
2010-10-20virtio: console: Don't block entire guest if host doesn't read dataAmit Shah1-3/+14
2010-09-21virtio: console: Prevent userspace from submitting NULL buffersAmit Shah1-0/+4
2010-09-21virtio: console: Fix poll blocking even though there is data to readHans de Goede1-1/+1
2010-06-03virtio: console: Fix crash when port is unplugged and blocked for writeAmit Shah1-0/+4
2010-06-03virtio: console: Fix crash when hot-unplugging a port and read is blockedAmit Shah1-3/+7
2010-05-19drivers/char: Eliminate use after freeJulia Lawall1-4/+4
2010-05-19virtio: console: Accept console size along with resize control messageAmit Shah1-1/+12
2010-05-19virtio: console: Store each console's size in the console structureAmit Shah1-12/+31
2010-05-19virtio: console: Resize console port 0 on config intr only if multiport is offAmit Shah1-7/+10
2010-05-19virtio: console: Add support for nonblocking write()sAmit Shah1-8/+111
2010-05-19virtio: console: Rename wait_is_over() to will_read_block()Amit Shah1-3/+3
2010-05-19virtio: console: Don't always create a port 0 if using multiportAmit Shah1-17/+15
2010-05-19virtio: console: Use a control message to add portsAmit Shah1-44/+33
2010-05-19virtio: console: Move code around for future patchesAmit Shah1-133/+133
2010-05-19virtio: console: Remove config work handlerAmit Shah1-63/+1
2010-05-19virtio: console: Don't call hvc_remove() on unplugging console portsAmit Shah1-0/+11
2010-05-19virtio: console: Return -EPIPE to hvc_console if we lost the connectionAmit Shah1-2/+6
2010-05-19virtio: console: Let host know of port or device add failuresAmit Shah1-0/+5
2010-05-19virtio: console: Add a __send_control_msg() that can send messages without a ...Amit Shah1-5/+11
2010-05-19virtio: Revert "virtio: disable multiport console support."Amit Shah1-41/+8
2010-05-19virtio_console: use virtqueue_xxx wrappersMichael S. Tsirkin1-16/+16
2010-04-08virtio: disable multiport console support.Michael S. Tsirkin1-8/+41
2010-04-08virtio: console makes incorrect assumption about virtio APIRusty Russell1-7/+3
2010-04-08virtio: console: Fix early_put_chars usageFrançois Diakhaté1-3/+3
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2010-03-22virtio: console: Check if port is valid in resize_consoleAmit Shah1-0/+4
2010-03-22virtio: console: Generate a kobject CHANGE event on adding 'name' attributeAmit Shah1-2/+9
2010-03-04virtio: console: Use better variable names for fill_queue operationAmit Shah1-12/+15
2010-03-04virtio: console: Fix type of 'len' as unsigned intAmit Shah1-1/+1
2010-02-24virtio: console: Fill ports' entire in_vq with buffersAmit Shah1-21/+32
2010-02-24virtio: console: Error out if we can't allocate buffers for control queueAmit Shah1-6/+21
2010-02-24virtio: console: Add ability to remove moduleAmit Shah1-0/+41
2010-02-24virtio: console: Ensure no memleaks in case of unused buffersAmit Shah1-3/+8
2010-02-24virtio: console: show error message if hvc_alloc fails for console portsAmit Shah1-0/+2
2010-02-24virtio: console: Add debugfs files for each port to expose debug infoAmit Shah1-0/+71
2010-02-24virtio: console: Add ability to hot-unplug portsAmit Shah1-2/+63
2010-02-24virtio: console: Handle port hot-plugAmit Shah1-6/+72
2010-02-24virtio: console: Remove cached data on port closeAmit Shah1-0/+40
2010-02-24virtio: console: Register with sysfs and create a 'name' attribute for portsAmit Shah1-0/+57
2010-02-24virtio: console: Ensure only one process can have a port open at a timeAmit Shah1-1/+17
2010-02-24virtio: console: Add file operations to ports for open/read/write/pollAmit Shah1-1/+163