[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-1.4 10/12] qemu-char: General chardev "memor
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH for-1.4 10/12] qemu-char: General chardev "memory" code cleanup |
Date: |
Tue, 05 Feb 2013 16:03:18 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 02/05/2013 09:22 AM, Markus Armbruster wrote:
> Inline trivial cirmem_chr_is_empty() into its only caller.
>
> Rename qemu_chr_cirmem_count() to cirmem_count().
>
> Fast ring buffer index wraparound. Without this, there's no point in
> restricting size to a power two.
>
> qemu_is_chr(chr, "memory") returns *zero* when chr is a memory
> character device, which isn't what I'd expect. Replace it by the
> saner and more obviously correct chr_is_cirmem(). Also avoids
> encouraging testing for specific character devices elsewhere.
>
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
> qemu-char.c | 31 ++++++++++++-------------------
> 1 file changed, 12 insertions(+), 19 deletions(-)
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH for-1.4 08/12] qemu-char: Drop undocumented chardev "memory" compatibility syntax, (continued)
- [Qemu-devel] [PATCH for-1.4 08/12] qemu-char: Drop undocumented chardev "memory" compatibility syntax, Markus Armbruster, 2013/02/05
- [Qemu-devel] [PATCH for-1.4 09/12] qemu-char: Redo chardev "memory" size configuration, Markus Armbruster, 2013/02/05
- [Qemu-devel] [PATCH for-1.4 12/12] QAPI QMP HMP: Fix and improve memchar-read/-write docs, Markus Armbruster, 2013/02/05
- [Qemu-devel] [PATCH for-1.4 11/12] qmp: Use generic errors in memchar-read, memchar-write, Markus Armbruster, 2013/02/05
- [Qemu-devel] [PATCH for-1.4 10/12] qemu-char: General chardev "memory" code cleanup, Markus Armbruster, 2013/02/05
- Re: [Qemu-devel] [PATCH for-1.4 10/12] qemu-char: General chardev "memory" code cleanup,
Eric Blake <=
- Re: [Qemu-devel] [PATCH for-1.4 00/12] Fix memchar-read/-write before API gets released, Luiz Capitulino, 2013/02/06
- Re: [Qemu-devel] [PATCH for-1.4 00/12] Fix memchar-read/-write before API gets released, Anthony Liguori, 2013/02/06