[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Pass-through of non-USB input devices



Hi,

I am currently setting up a new laptop (x86_64) and want
to pass the keyboard and mouse to a domU. Sadly,
I noticed that they are attached via PS/2 (I think),
and after searching for a while without finding a
solution, I decided to ask here.

So my question is: How do I pass devices to a domU,
that do not have a USB-ID and are propably not attached via PCI,
but are listed in /dev/input/ (and in the sysfs, of course).

To be honest: I am not _that_ sure if the input
devices are really attached via PS/2, as it looks like
the LPC-Controller (speak: ISA-Bus) might be the device
where they are attached to. But if I try to forward that
PCI-Device, nothing happens (It normally does not even
have a kernel module attached to), so I think this device
does not attach the input devices to the system.

I am using archlinux and compiled xen from source
(release 4.6.1). I would not have a problem with
applying a patch on my own.
The device is a ThinkPad T460p with dedicated GPU. VT-d
is working properly, as it can be seen in `xl dmesg` (Not supplied).


One short off-topic question, as it is my first post here: Is the way of
providing "big" outputs by pasting it in the text acceptable, or should
these be supplied as an attachment?


Thanks,
Carl



To supply some information about the device-structure:

Relevant parts of `xl info`:
machine                : x86_64
hw_caps                :
bfebfbff:2c100800:00000000:00007f00:77fafbbf:00000000:00000121:029c6fbf
virt_caps              : hvm hvm_directio
xen_version            : 4.6.1
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
hvm-3.0-x86_32p hvm-3.0-x86_64
platform_params        : virt_start=0xffff800000000000
xen_commandline        : /xen-4.6.1.gz xsave=1 dom0_mem=4096M,max:4096M
dom0_max_vcpus=1 dom0_vcpus_pin iommu=1




# lspci -tv
-[0000:00]-+-00.0  Intel Corporation Skylake Host Bridge/DRAM Registers
           +-01.0-[01]--
           +-01.2-[02]----00.0  NVIDIA Corporation GM108M [GeForce 940MX]
           +-02.0  Intel Corporation Skylake Integrated Graphics
           +-14.0  Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller
           +-14.2  Intel Corporation Sunrise Point-H Thermal subsystem
           +-16.0  Intel Corporation Sunrise Point-H CSME HECI #1
           +-17.0  Intel Corporation Sunrise Point-H SATA Controller
[AHCI mode]
           +-1c.0-[03]----00.0  Intel Corporation Wireless 8260
           +-1c.4-[04]----00.0  Realtek Semiconductor Co., Ltd. RTS522A
PCI Express Card Reader
           +-1f.0  Intel Corporation Sunrise Point-H LPC Controller
           +-1f.2  Intel Corporation Sunrise Point-H PMC
           +-1f.3  Intel Corporation Sunrise Point-H HD Audio
           +-1f.4  Intel Corporation Sunrise Point-H SMBus
           \-1f.6  Intel Corporation Ethernet Connection (2) I219-LM


Relevant parts of /proc/bus/input/devices:
I: Bus=0011 Vendor=0001 Product=0001 Version=ab54
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input0
U: Uniq=
H: Handlers=sysrq kbd leds event0
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input7
U: Uniq=
H: Handlers=event8 mouse0
B: PROP=5
B: EV=b
B: KEY=e520 10000 0 0 0 0
B: ABS=660800011000003

I: Bus=0011 Vendor=0002 Product=000a Version=0000
N: Name="TPPS/2 IBM TrackPoint"
P: Phys=synaptics-pt/serio0/input0
S: Sysfs=/devices/platform/i8042/serio1/serio2/input/input10
U: Uniq=
H: Handlers=event10 mouse1
B: PROP=21
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.