From: Rusty Russell <rusty@rustcorp.com.au>
To: Amit Shah <amit.shah@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Subject: Re: [PATCH 21/31] virtio: console: Prepare for writing to userspace buffers
Date: Mon, 1 Feb 2010 10:49:51 +1030 [thread overview]
Message-ID: <201002011049.52053.rusty@rustcorp.com.au> (raw)
In-Reply-To: <1264772563-25517-4-git-send-email-amit.shah@redhat.com>
On Sat, 30 Jan 2010 12:12:40 am Amit Shah wrote:
> When ports get advertised as char devices, the buffers will come from
> userspace. Equip the fill_readbuf function with the ability to write
> to userspace buffers.
>
> Signed-off-by: Amit Shah <amit.shah@redhat.com>
> ---
> drivers/char/virtio_console.c | 20 ++++++++++++++------
> 1 files changed, 14 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
> index 9d33239..5f61021 100644
> --- a/drivers/char/virtio_console.c
> +++ b/drivers/char/virtio_console.c
> @@ -365,7 +365,8 @@ fail:
> * Give out the data that's requested from the buffer that we have
> * queued up.
> */
> -static ssize_t fill_readbuf(struct port *port, char *out_buf, size_t out_count)
> +static ssize_t fill_readbuf(struct port *port, char *out_buf, size_t out_count,
> + bool to_user)
This patch does not apply: your previous 19/31 "Introduce a send_buf function
for a common path for sending data to host" made this "void *out_buf". The
rest I can't even sort out.
I have dropped 19/31 onwards, as listed below. Please re-xmit privately,
tarball is fine.
Thanks,
Rusty.
Subject: virtio: console: Introduce a send_buf function for a common path for sending data to host
Subject: virtio: console: Add a new MULTIPORT feature, support for generic ports
Subject: virtio: console: Prepare for writing to / reading from userspace buffers
Subject: virtio: console: Associate each port with a char device
Subject: virtio: console: Add file operations to ports for open/read/write/poll
Subject: virtio: console: Ensure only one process can have a port open at a time
Subject: virtio: console: Register with sysfs and create a 'name' attribute for ports
Subject: virtio: console: Remove cached data on port close
Subject: virtio: console: Handle port hot-plug
Subject: virtio: console: Add ability to hot-unplug ports
Subject: virtio: console: Add debugfs files for each port to expose debug info
Subject: virtio: console: show error message if hvc_alloc fails for console ports
next prev parent reply other threads:[~2010-02-01 0:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 13:42 virtio: console: Return -EFAULT on copy_xx_user errors, allow larger writes Amit Shah
2010-01-29 13:42 ` [PATCH 19/31] virtio: console: Introduce a send_buf function for a common path for sending data to host Amit Shah
2010-01-29 13:42 ` [PATCH 20/31] virtio: console: Add a new MULTIPORT feature, support for generic ports Amit Shah
2010-01-29 13:42 ` [PATCH 21/31] virtio: console: Prepare for writing to userspace buffers Amit Shah
2010-01-29 13:42 ` [PATCH 22/31] virtio: console: Associate each port with a char device Amit Shah
2010-01-29 13:42 ` [PATCH 23/31] virtio: console: Add file operations to ports for open/read/write/poll Amit Shah
2010-01-29 13:42 ` [PATCH 29/31] virtio: console: Add ability to hot-unplug ports Amit Shah
2010-02-01 0:19 ` Rusty Russell [this message]
2010-02-01 5:08 ` [PATCH 21/31] virtio: console: Prepare for writing to userspace buffers Amit Shah
2010-01-30 4:55 ` virtio: console: Return -EFAULT on copy_xx_user errors, allow larger writes Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201002011049.52053.rusty@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=amit.shah@redhat.com \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).