[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: Extending virtio_console to support multiple ports
From: |
Benjamin Herrenschmidt |
Subject: |
[Qemu-devel] Re: Extending virtio_console to support multiple ports |
Date: |
Thu, 27 Aug 2009 19:27:23 +1000 |
On Thu, 2009-08-27 at 10:08 +0100, Alan Cox wrote:
> > - Then, are we certain that there's no case where the tty layer will
> > call us with some lock held or in an atomic context ? To be honest,
> > I've totally lost track of the locking rules in tty land lately so it
> > might well be ok, but something to verify.
>
> Some of the less well behaved line disciplines do this and always have
> done.
That was also my understanding but heh, I though that maybe you may have
fixed all of that already :-)
So at this stage, I think the reasonably thing to do is to stick to the
spinlock, but we can try to make it a bit smarter, and we can definitely
attempt to fix the case Amit pointed out where we call resize without a
lock while it seems to expect it (though we also need to be careful
about re-entrancy I believe).
Cheers,
Ben.
- [Qemu-devel] Extending virtio_console to support multiple ports, Amit Shah, 2009/08/25
- [Qemu-devel] [PATCH] virtio_console: Add interface for guest and host communication, Amit Shah, 2009/08/25
- [Qemu-devel] [PATCH 3/3] virtio-console: Add interface for generic guest-host communication, Amit Shah, 2009/08/25
- [Qemu-devel] Re: Extending virtio_console to support multiple ports, Amit Shah, 2009/08/26
- [Qemu-devel] Re: Extending virtio_console to support multiple ports, Amit Shah, 2009/08/26
- [Qemu-devel] Re: Extending virtio_console to support multiple ports, Benjamin Herrenschmidt, 2009/08/27
- Re: [Qemu-devel] Re: Extending virtio_console to support multiple ports, Amit Shah, 2009/08/27
- [Qemu-devel] Re: Extending virtio_console to support multiple ports, Alan Cox, 2009/08/28
- [Qemu-devel] Re: Extending virtio_console to support multiple ports,
Benjamin Herrenschmidt <=
- [Qemu-devel] [PATCH] hvc_console: provide (un)locked version for hvc_resize(), Hendrik Brueckner, 2009/08/28
- Re: [Qemu-devel] Re: Extending virtio_console to support multiple ports, Jamie Lokier, 2009/08/28
- [Qemu-devel] Re: Extending virtio_console to support multiple ports, Michael Ellerman, 2009/08/28
- [Qemu-devel] Re: Extending virtio_console to support multiple ports, Amit Shah, 2009/08/27
- [Qemu-devel] Re: Extending virtio_console to support multiple ports, Ryan Arnold, 2009/08/28
- [Qemu-devel] Re: Extending virtio_console to support multiple ports, Anthony Liguori, 2009/08/28