[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/6] Always notify consumers of char devices if
From: |
Amit Shah |
Subject: |
Re: [Qemu-devel] [PATCH 4/6] Always notify consumers of char devices if they're open |
Date: |
Mon, 5 Apr 2010 09:13:38 +0530 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On (Thu) Apr 01 2010 [18:42:39], Alexander Graf wrote:
> When using virtio-console on s390, the input doesn't work.
>
> The root of the problem is rather simple. What happens is the following:
>
> 1) create character device for stdio
> 2) char device is done creating, sends OPENED event
> 3) virtio-console adds handlers
> 4) no event comes because the char device is open already
> 5) virtio-console doesn't accept input because it didn't
> receive an OPENED event
>
> To make that sure virtio-console gets notified that the character device
> is open even when it's been open from the beginning, this patch introduces
> a variable that keeps track of the opened state. If the device is open when
> the event handlers get installed, we just notify the handler.
>
> This fixes input with virtio-console on s390.
>
> Signed-off-by: Alexander Graf <address@hidden>
Acked-by: Amit Shah <address@hidden>
Amit
- [Qemu-devel] [PATCH 0/6] S390 April patch round, Alexander Graf, 2010/04/01
- [Qemu-devel] [PATCH 1/6] S390: Add stub for cpu_get_phys_page_debug, Alexander Graf, 2010/04/01
- [Qemu-devel] [PATCH 5/6] [S390] Implement virtio reset, Alexander Graf, 2010/04/01
- [Qemu-devel] [PATCH 4/6] Always notify consumers of char devices if they're open, Alexander Graf, 2010/04/01
- [Qemu-devel] [PATCH 2/6] S390: Tell user why VM creation failed, Alexander Graf, 2010/04/01
- [Qemu-devel] [PATCH 6/6] [S390] Add firmware code, Alexander Graf, 2010/04/01