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

Re: [Xen-users] mainboard serial (ttyS) port redirection AND pci passthrou



It's the thing I was working on during last days.
For me the ser2net + socat was the solution. Be prepared for playing with configuration.
This worked for me:
Â- dom0 ser2net line
 - 10.0.0.2,11111:raw:0:/dev/ttyS0:38400 8DATABITS NONE 1STOPBIT
Â- domU socat command
 - /usr/bin/socat pty,link=/dev/ttyS10 tcp:10.0.0.2:11111

Hope it helps.

--
Peter Viskup

On Tue, Dec 16, 2014 at 11:03 AM, ÃliÃs TamÃs <et@xxxxxxx> wrote:
Hi all.

I have a host system with debian linux and my self-compiled xen 4.4.1.
the guest is also a debian linux.

I have pci-passthrough working well for a pci card that provides 4
serial (COM) ports, these com ports are working from the domu
(more-or-less) well.

Now I have the need to passthrough the server's mainboard's onboard COM
port too to the virtual machine.

How can I do this?

the onboard COM port has no associated pci device to it, it is just
coming from from the mainboard chipset, so I cannot use pci passthrough.

Is there any way to give the onboard serial to the virtual machine
(exclusively)?

Thank you.

host lspci:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core
processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core
processor PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series
Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset
Family USB Enhanced Host Controller #2 (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
Family PCI Express Root Port 1 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
Family PCI Express Root Port 3 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
Family PCI Express Root Port 6 (rev b5)
00:1c.6 PCI bridge: Intel Corporation 82801 PCI Bridge (rev b5)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
Family PCI Express Root Port 8 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset
Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation P67 Express Chipset Family LPC
Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset
Family SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family
SMBus Controller (rev 05)
01:00.0 PCI bridge: Intel Corporation 80333 Segment-A PCI Express-to-PCI
Express Bridge
01:00.2 PCI bridge: Intel Corporation 80333 Segment-B PCI Express-to-PCI
Express Bridge
02:0e.0 RAID bus controller: Promise Technology, Inc. 80333 [SuperTrak
EX8350/EX16350], 80331 [SuperTrak EX8300/EX16300]
05:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network
Connection
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
07:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI
Bridge (rev 01)
08:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI
3D Rage II+ 215GTB [Mach64 GTB] (rev 9a)
08:02.0 Serial controller: NetMos Technology PCI 9845 Multi-I/O
Controller (rev 01)
09:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA
6Gb/s Controller (rev 11)

host dmesg relevant lines:
Âdmesg | grep tty
[Â Â 0.000000] console [tty0] enabled
[Â Â 3.004207] 00:08: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200)
is a 16550A
[Â Â 3.025891] 0000:08:02.0: ttyS4 at I/O 0xc150 (irq = 16, base_baud =
115200) is a 16550A
[Â Â 3.047065] 0000:08:02.0: ttyS5 at I/O 0xc140 (irq = 16, base_baud =
115200) is a 16550A
[Â Â 3.068125] 0000:08:02.0: ttyS6 at I/O 0xc130 (irq = 16, base_baud =
115200) is a 16550A
[Â Â 3.089184] 0000:08:02.0: ttyS7 at I/O 0xc120 (irq = 16, base_baud =
115200) is a 16550A

I need to redirect ttyS0 (4-5-6-7 already given to the guest)!

guest lspci:
Âlspci
00:00.0 Serial controller: NetMos Technology PCI 9845 Multi-I/O
Controller (rev 01)

guest dmesg
Âdmesg|grep tty
[Â Â 0.000000] console [tty0] enabled
[Â Â 7.131109] 0000:00:00.0: ttyS4 at I/O 0xc150 (irq = 38, base_baud =
115200) is a 16550A
[Â Â 7.152337] 0000:00:00.0: ttyS5 at I/O 0xc140 (irq = 38, base_baud =
115200) is a 16550A
[Â Â 7.173591] 0000:00:00.0: ttyS6 at I/O 0xc130 (irq = 38, base_baud =
115200) is a 16550A
[Â Â 7.194693] 0000:00:00.0: ttyS7 at I/O 0xc120 (irq = 38, base_baud =
115200) is a 16550A



--


ÃliÃs TamÃs
Thomas Elias

ETIT[nwpro] KFT, ÃgyvezetÅ
ETIT[nwpro] Ltd, General Manager

Tel. HU: +36/30-497-1626
Tel. DE: +49/160-651-8723
OpenPGP pubkey: http://etit.hu/doc/et-pub.asc

Okleveles mÃrnÃk-informatikus (MSC)
Master of Science in Information Technology (MSC)

Kapcsolat: http://etit.hu/index.php/hu/kapcsolat
Jogi nyilatkozat: http://etit.hu/disclaimer-email-hu.txt
Contact: http://etit.hu/index.php/en/contact
Disclaimer: http://etit.hu/disclaimer-email-en.txt


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users
_______________________________________________
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®.