<p dir="ltr">Yeah but you can't switch the keyboard between host and guest. That's the whole point.</p>
<div class="gmail_quote">On 13 Apr 2016 8:29 am, "Jiri 'Ghormoon' Novak" <<a href="mailto:ghormoon@gmail.com">ghormoon@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
that's better done with the usb features, some very basic info here:<br>
<a href="http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest" rel="noreferrer" target="_blank">http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest</a><br>
<br>
you can google up more.<br>
<br>
if you'll want to assign whole usb controller, that's possible too with<br>
pci passthrough (requires VT-d), but seems you want only device passthrough.<br>
<br>
Gh.<br>
<br>
Jonathan Scruggs wrote:<br>
><br>
> Hi,<br>
><br>
> It took me awhile to figure out what was going on when I got my new<br>
> keyboard. It turns out when you list all devices in by-id there were<br>
> three entries for the keyboard. The third one was the keyboard part<br>
> and the other ones were the macro keys.<br>
><br>
> Gerd, would it possible to use the device as listed by lsusb (the user<br>
> pass in the bus and port numbers so a small amount of detail) because<br>
> it shows only one for the keyboard. Also would it be possible to scan<br>
> the keyboard details and pass that information through to the VM so<br>
> the VM thinks that device is plugged into the USB port then we can use<br>
> the software from the manufacturer to make the macro keys and special<br>
> features work. Then press both control keys to switch the device back<br>
> and forth between guest and host?<br>
><br>
> Jon<br>
><br>
> On 12 Apr 2016 10:04 am, "Gerd Hoffmann" <<a href="mailto:kraxel@redhat.com">kraxel@redhat.com</a><br>
> <mailto:<a href="mailto:kraxel@redhat.com">kraxel@redhat.com</a>>> wrote:<br>
><br>
>     On Di, 2016-04-12 at 00:33 -0700, William Green wrote:<br>
>     > Using latest git:<br>
>     ><br>
>     > /dev/input/event1<br>
>     >    id   : 046d:200a, (null), v273<br>
>     >    phys : "usb-0000:00:14.0-14:2"<br>
>     >    name : "Logitech K350"<br>
>     >    KEY  : [ 261 codes ]<br>
>     >    REL  : HWHEEL<br>
>     >    ABS  : VOLUME<br>
>     >    MSC  : SCAN<br>
>     >    LED  : NUML CAPSL SCROLLL COMPOSE KANA<br>
><br>
>     Ah, that is more useful ;)<br>
><br>
>     Guess we should check the relative axis is actually x or y before<br>
>     classifying the device as mouse ...<br>
><br>
>     cheers,<br>
>       Gerd<br>
><br>
><br>
><br>
>     _______________________________________________<br>
>     vfio-users mailing list<br>
>     <a href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a> <mailto:<a href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a>><br>
>     <a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> vfio-users mailing list<br>
> <a href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
<br>
</blockquote></div>