Is there a way to pass a system''s on-board serial port(s) into a paravirtualized domU? I don''t have any on hand to test with, but would passing a PCI serial card into the domU have any issues? -Mike --- Michael D Labriola Electric Boat mlabriol@gdeb.com 401-848-8871 (desk) 401-848-8513 (lab) 401-316-9844 (cell) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Fri, 2010-03-19 at 17:21 +0000, Michael D Labriola wrote:> Is there a way to pass a system''s on-board serial port(s) into a > paravirtualized domU?I think you can pass individual IO ports and interrupt through to a PV guest without necessarily passing through a PCI device. I''m afraid I don''t actually know the exact runes to cause xend or xl or whatever to do this though -- I think perhaps for xend lines like: ioport=03f8-03f9 irq=3 (or whatever the com port uses) in your config file might do the trick.> I don''t have any on hand to test with, but would passing a PCI serial card > into the domU have any issues?I''d expect that to work alright. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hello Michael, I have done it in the past to both a HVM as a PV guest. For the PV guest adding this to the guest config worked for my serial port, irq and address may vary for your port of course. irq = [4] ioports = ["3f8-3ff"] -- Sander Friday, March 19, 2010, 6:21:44 PM, you wrote:> Is there a way to pass a system''s on-board serial port(s) into a > paravirtualized domU?> I don''t have any on hand to test with, but would passing a PCI serial card > into the domU have any issues?> -Mike> --- > Michael D Labriola > Electric Boat > mlabriol@gdeb.com > 401-848-8871 (desk) > 401-848-8513 (lab) > 401-316-9844 (cell)-- Best regards, Sander mailto:linux@eikelenboom.it _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
xen-devel-bounces@lists.xensource.com wrote on 03/19/2010 01:30:08 PM:> Hello Michael, > > I have done it in the past to both a HVM as a PV guest. > > For the PV guest adding this to the guest config worked for my > serial port, irq and address may vary for your port of course. > > > irq = [4] > ioports = ["3f8-3ff"]Awesome! That seems to work for the onboard serial. Any idea if passing a PCI serial card to a domU would automatically work or if I would have to do the irq/ioports thing for each serial port? --- Michael D Labriola Electric Boat mlabriol@gdeb.com 401-848-8871 (desk) 401-848-8513 (lab) 401-316-9844 (cell) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
xen-devel-bounces@lists.xensource.com wrote on 03/19/2010 01:29:22 PM:> On Fri, 2010-03-19 at 17:21 +0000, Michael D Labriola wrote: > > Is there a way to pass a system''s on-board serial port(s) into a > > paravirtualized domU? > > I think you can pass individual IO ports and interrupt through to a PV > guest without necessarily passing through a PCI device. > > I''m afraid I don''t actually know the exact runes to cause xend or xl or > whatever to do this though -- I think perhaps for xend lines like: > ioport=03f8-03f9 > irq=3 > (or whatever the com port uses) in your config file might do the trick. > > > I don''t have any on hand to test with, but would passing a PCI serialcard> > into the domU have any issues? > > I''d expect that to work alright.Hmm, thought I had this working. With ''ioports = [''3f8-3ff'']'' and ''irq=[4]'' in my cfg file, I get appropriate messages in domU''s dmesg about initializing ttyS0... But the device doesn''t seem to work. And the device still works in dom0... I looked at the old InstallationNotes Wiki (last touched Nov 2007?) which says to blacklist the 8250, 8250_pnp, and serial_core modules... is this still needed with the pv_ops kernels? Pretty sure I''ve got the serial stuff compiled into the kernel, so I can''t really blacklist those unless I recompile. I tried unbinding the devices from their driver via sysfs, but then the devices don''t show up in domU at all... --- Michael D Labriola Electric Boat mlabriol@gdeb.com 401-848-8871 (desk) 401-848-8513 (lab) 401-316-9844 (cell) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
xen-devel-bounces@lists.xensource.com wrote on 03/19/2010 03:36:57 PM:> xen-devel-bounces@lists.xensource.com wrote on 03/19/2010 01:29:22 PM: > > > On Fri, 2010-03-19 at 17:21 +0000, Michael D Labriola wrote: > > > Is there a way to pass a system''s on-board serial port(s) into a > > > paravirtualized domU? > > > > I think you can pass individual IO ports and interrupt through to a PV > > guest without necessarily passing through a PCI device. > > > > I''m afraid I don''t actually know the exact runes to cause xend or xlor> > whatever to do this though -- I think perhaps for xend lines like: > > ioport=03f8-03f9 > > irq=3 > > (or whatever the com port uses) in your config file might do thetrick.> > > > > I don''t have any on hand to test with, but would passing a PCIserial> card > > > into the domU have any issues? > > > > I''d expect that to work alright. > > Hmm, thought I had this working. With ''ioports = [''3f8-3ff'']'' and > ''irq=[4]'' in my cfg file, I get appropriate messages in domU''s dmesgabout> initializing ttyS0... But the device doesn''t seem to work. And the > device still works in dom0... > > I looked at the old InstallationNotes Wiki (last touched Nov 2007?)which> says to blacklist the 8250, 8250_pnp, and serial_core modules... is this> still needed with the pv_ops kernels? Pretty sure I''ve got the serial > stuff compiled into the kernel, so I can''t really blacklist those unlessI> recompile. I tried unbinding the devices from their driver via sysfs,but> then the devices don''t show up in domU at all...Odd... after breaking everything by manually unbinding from the serial driver, I rebooted. And now my domU has ttyS0 and it actually works. --- Michael D Labriola Electric Boat mlabriol@gdeb.com 401-848-8871 (desk) 401-848-8513 (lab) 401-316-9844 (cell) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel