Re: [Qemu-devel] [PULL 1/1] virtio-input: evdev passthrough

2015-06-19 Thread Gerd Hoffmann
Hi, > > Hmm, looking into this. Can't figure how this works. For virtio-net a > > bunch of properties are defined for virtio-net-device. But they show up > > (using -device $dev,?) on both virtio-net-device and virtio-net-pci. > > > > Trying to do the same for the (already merged) virtio-inp

Re: [Qemu-devel] [PULL 1/1] virtio-input: evdev passthrough

2015-06-19 Thread Michael S. Tsirkin
On Thu, Jun 18, 2015 at 05:44:48PM +0200, Gerd Hoffmann wrote: > Hi, > > > > +static Property virtio_input_host_pci_properties[] = { > > > +DEFINE_VIRTIO_INPUT_PROPERTIES(VirtIOInputPCI, vdev.input), > > > +DEFINE_PROP_STRING("evdev", VirtIOInputHostPCI, vdev.evdev), > > > +DEFINE_PR

Re: [Qemu-devel] [PULL 1/1] virtio-input: evdev passthrough

2015-06-18 Thread Gerd Hoffmann
Hi, > > +static Property virtio_input_host_pci_properties[] = { > > +DEFINE_VIRTIO_INPUT_PROPERTIES(VirtIOInputPCI, vdev.input), > > +DEFINE_PROP_STRING("evdev", VirtIOInputHostPCI, vdev.evdev), > > +DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), > > +DEFINE_PROP_END

Re: [Qemu-devel] [PULL 1/1] virtio-input: evdev passthrough

2015-06-18 Thread Michael S. Tsirkin
On Thu, Jun 18, 2015 at 12:11:47PM +0100, Peter Maydell wrote: > On 18 June 2015 at 10:39, Michael S. Tsirkin wrote: > > On Thu, Jun 18, 2015 at 11:33:55AM +0200, Gerd Hoffmann wrote: > >> +static Property virtio_input_host_pci_properties[] = { > >> +DEFINE_VIRTIO_INPUT_PROPERTIES(VirtIOInputP

Re: [Qemu-devel] [PULL 1/1] virtio-input: evdev passthrough

2015-06-18 Thread Peter Maydell
On 18 June 2015 at 10:39, Michael S. Tsirkin wrote: > On Thu, Jun 18, 2015 at 11:33:55AM +0200, Gerd Hoffmann wrote: >> +static Property virtio_input_host_pci_properties[] = { >> +DEFINE_VIRTIO_INPUT_PROPERTIES(VirtIOInputPCI, vdev.input), >> +DEFINE_PROP_STRING("evdev", VirtIOInputHostPCI

Re: [Qemu-devel] [PULL 1/1] virtio-input: evdev passthrough

2015-06-18 Thread Michael S. Tsirkin
On Thu, Jun 18, 2015 at 11:33:55AM +0200, Gerd Hoffmann wrote: > This allows to assign host input devices to the guest: > > qemu -device virtio-input-host-pci,evdev=/dev/input/event > > The guest gets exclusive access to the input device, so be careful > with assigning the keyboard if you have on

[Qemu-devel] [PULL 1/1] virtio-input: evdev passthrough

2015-06-18 Thread Gerd Hoffmann
This allows to assign host input devices to the guest: qemu -device virtio-input-host-pci,evdev=/dev/input/event The guest gets exclusive access to the input device, so be careful with assigning the keyboard if you have only one connected to your machine. Signed-off-by: Gerd Hoffmann --- hw/in