Hello all. I''ve reached a problem I haven''t found in the docs or on the user''s list. I have a Zapata Telephony FXO interface in a PCI card. I would like an unprivleged domain to have access to it. I hid the device from Domain 0 like so: (without the line wrap) kernel /boot/xen.gz dom0_mem=128000 physdev_dom0_hide=''(00:06.0)'' Domain 0 forgot about it and I told vm 1 about the same device in its configuration file: pci = [ ''00,06,00'' ] When I boot vm 1, I see this in the xend log: [2005-07-12 14:44:52 xend] DEBUG (XendDomainInfo:1178) Creating pci device dom=3 bus=0 dev=6 func=0 I built the device driver in Domain 0 against the kernel source for xen-U and the driver loads and claims to see the card. But the application I need to access it claims it can''t open the device. Before I go to the application developer (Asterisk, if you''re interested), I want to confirm that my xen-U domain really does know about the device and the driver is being properly loaded. How would I do this beyond the output I pasted above? Is there any way at all? Thanks for any help you can offer. -- Lee Azzarello Network Engineer Progressive Solutions +1 212 937 8939 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2005-Jul-15 00:59 UTC
Re: [Xen-users] PCI device access and debugging output
> Domain 0 forgot about itGood.> When I boot vm 1, I see this in the xend log: > [2005-07-12 14:44:52 xend] DEBUG (XendDomainInfo:1178) Creating pci > device dom=3 bus=0 dev=6 func=0Good.> I built the device driver in Domain 0 against the kernel source for > xen-U and the driver loads and claims to see the card. But the > application I need to access it claims it can''t open the device.Interesting.> Before I go to the application developer (Asterisk, if you''re > interested), I want to confirm that my xen-U domain really does know > about the device and the driver is being properly loaded. How would I do > this beyond the output I pasted above? Is there any way at all?Check the dmesg output and see what it says - should have some blurb following the point where you loaded the module. Does the driver work in dom0 OK? Some DMA issues have been fixed in the 2.0-testing tree recently, so you might want to try that out. Cheers, Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Lee Azzarello
2005-Jul-18 13:28 UTC
Re: [Xen-users] PCI device access and debugging output
On Fri, 2005-07-15 at 01:59 +0100, Mark Williamson wrote:> > > I built the device driver in Domain 0 against the kernel source for > > xen-U and the driver loads and claims to see the card. But the > > application I need to access it claims it can''t open the device. > > Interesting. > > > Before I go to the application developer (Asterisk, if you''re > > interested), I want to confirm that my xen-U domain really does know > > about the device and the driver is being properly loaded. How would I do > > this beyond the output I pasted above? Is there any way at all? > > Check the dmesg output and see what it says - should have some blurb following > the point where you loaded the module. > > Does the driver work in dom0 OK? Some DMA issues have been fixed in the > 2.0-testing tree recently, so you might want to try that out.No. After some further testing, it turns out it was the application developer''s fault. I updated their latest driver from CVS and the card was recognized on a non-xen system. I''ll try it on the xen dom0 kernel when I can get over to the box. -- Lee Azzarello Network Engineer Progressive Solutions +1 212 937 8939 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users