[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 07/11] qemu-char: Move incrementing of avail_con
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 07/11] qemu-char: Move incrementing of avail_connections to qdev-properties-system |
Date: |
Wed, 27 Mar 2013 15:58:08 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 |
Il 27/03/2013 15:09, Hans de Goede ha scritto:
> Hi,
>
> On 03/26/2013 02:50 PM, Paolo Bonzini wrote:
>
> <snip>
>
>>> 1) For most problematic devices, the proper fix would be to make them
>>> use a chardev qdev property for there chardev usage, and then this
>>> would be automatically fixed, agreed?
>>
>> At least on x86, all devices already use a chardev qdev property.
>
> Yes on x86 maybe, but a lot of the other serial-port emulations are
> still using serial_hds directly, making proper avail_connections tracking
> a pain.
serial_hds is still passed to most devices via a chardev qdev property.
See for example sparc/leon3.c, which uses grlib_apbuart_create and that
function sets the chardev.
Luckily there are very few UART implementations, most boards use the
8250/16550, hence this is even true of boards that are generally not
qdev-ified (like OMAP). There are exceptions, like mcf_uart.c and
bt-hci-csr.c.
Paolo
> Anyways I've audited all frontends now, fixing things where necessary,
> and where possible in a generic way.
>
> I'll send a patch for this right after this mail.
>
> Regards,
>
> Hans
- [Qemu-devel] [PATCH 01/11] qemu-char: Rename opened to be_open, (continued)
- [Qemu-devel] [PATCH 01/11] qemu-char: Rename opened to be_open, Hans de Goede, 2013/03/26
- [Qemu-devel] [PATCH 02/11] qemu-char: Rename qemu_chr_generic_open to qemu_chr_be_generic_open, Hans de Goede, 2013/03/26
- [Qemu-devel] [PATCH 05/11] qemu-char: Cleanup: consolidate fe_open/fe_close into fe_set_open, Hans de Goede, 2013/03/26
- [Qemu-devel] [PATCH 04/11] qemu-char: Automatically do fe_open / fe_close on qemu_chr_add_handlers, Hans de Goede, 2013/03/26
- [Qemu-devel] [PATCH 03/11] qemu-char: Add fe_open tracking, Hans de Goede, 2013/03/26
- [Qemu-devel] [PATCH 07/11] qemu-char: Move incrementing of avail_connections to qdev-properties-system, Hans de Goede, 2013/03/26
[Qemu-devel] [PATCH 06/11] qemu-char: Consolidate guest_close/guest_open into a set_fe_open callback, Hans de Goede, 2013/03/26
[Qemu-devel] [PATCH 08/11] qemu-char: add_handlers: Don't re-send the be_open event on unregister, Hans de Goede, 2013/03/26
[Qemu-devel] [PATCH 10/11] virtio-serial: propagate guest_connected to the port on post_load, Hans de Goede, 2013/03/26
[Qemu-devel] [PATCH 09/11] virtio-serial: Consolidate guest_open/guest_close into set_guest_connected, Hans de Goede, 2013/03/26
[Qemu-devel] [PATCH 11/11] spice-qemu-char: Drop hackish vmc_register on spice_chr_write, Hans de Goede, 2013/03/26
Re: [Qemu-devel] [PATCH 0/11] chardev frontend open handling cleanup v2, Eric Blake, 2013/03/26
Re: [Qemu-devel] [PATCH 0/11] chardev frontend open handling cleanup v2, Anthony Liguori, 2013/03/27