[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH qemu 5/6] virtio-input: control device
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH qemu 5/6] virtio-input: control device |
Date: |
Thu, 10 Apr 2014 14:10:20 +0200 |
On Do, 2014-04-10 at 14:05 +0300, Michael S. Tsirkin wrote:
> On Thu, Apr 10, 2014 at 11:07:53AM +0200, Gerd Hoffmann wrote:
> > Device for sending non-input control messages to the guest. For now
> > this is only a single event: shutdown requests are sent as power button
> > press to the guest.
> >
> > Possible other use is signaling sound volume changes to the guest (via
> > EV_ABS / ABS_VOLUME). I expect we'll find more over time.
> >
> > Signed-off-by: Gerd Hoffmann <address@hidden>
>
> Why not use a keyboard device for this?
>From the guests point of view this is looks like a keyboard. A keyboard
with a single key: power.
I prefer a clear separation between devices being feed from user input
and the control device which monitors other event sources (powerdown
notifier).
There is no fundamental reason why this can't live in the emulated
keyboard though.
cheers,
Gerd
[Qemu-devel] [PATCH qemu 6/6] virtio-input: evdev passthrough, Gerd Hoffmann, 2014/04/10
[Qemu-devel] [PATCH qemu 4/6] virtio-input: emulated devices, Gerd Hoffmann, 2014/04/10