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

[Xen-users] RE: DomU can't access PCI Parallel port



> The best way to get help from this list will be to post all the
> relevant logs and configuration files you have.  

To summarize the problem:  I've been stuck for several weeks with a Xen
problem at a client site.  I have a domU guest that needs access to a
parallel port for an old license dongle.  I've tried both an on-board
parallel port, and currently a PCI card without success.  

Currently, as a diagnostic move to make sure this isn't a guest OS problem,
I'm booting up Knoppix as the guest.  I've also replaced the dongle with an
HP Laserjet 4 printer, so we can ignore any dongle-specific issues.

The original OS (Win2K) seems to know the PCI parallel port is there, but
can't talk to it (ParVDM error 2 - unable to get device object pointer for
port object).  I tried the normal fixes for that error without success.

Knoppix 5.1.1 can't see the device at all (nothing from lspci or
/proc/ioports, either with or without pci=routeirq).  

Below are the relevant files and info.  I'm really stuck on this, and could
use some help figuring it out.  I think I'm close, but I've missed a step
somewhere.

                           -Brian 

Version Info:
--------------------------------------------------------
openSUSE-release-11.1-1.18
xen-3.3.1_18546_16-0.1.1
kernel-xen-2.6.27.23-0.1.1


DomU configuration file:
--------------------------------------------------------
name="vsvr6"
uuid="e0cee623-aa8b-3932-62ad-22396dedc659"
memory=1536
maxmem=1536
vcpus=1
on_poweroff="destroy"
on_reboot="restart"
on_crash="restart"
localtime=1
keymap="en-us"
builder="hvm"
extid=0
device_model="/usr/lib/xen/bin/qemu-dm"
kernel="/usr/lib/xen/boot/hvmloader"
boot="cd"
disk=[
'file:home/samba/common/downloads/Knoppix/KNOPPIX_V5.1.1CD-2007-01-04-EN.iso
,hdc:cdrom,r' ]
sdl=0
stdvga=0
vnc=1
vncconsole=0
vncdisplay=5
vncunused=1
apic=1
acpi=1
pae=0
usb=1
usbdevice='tablet'
serial="pty"
pci = [ '0000.01:02.0' ]


My additions to /etc/modprobe.d/blacklist:
--------------------------------------------------------
blacklist lp
blacklist parport
blacklist parport_pc


/etc/modprobe.conf.local:
--------------------------------------------------------
options pciback hide=(0000:01:02.0)


Excerpt from Dom0 lspci -vvv:
--------------------------------------------------------
01:02.0 Parallel controller: AFAVLAB Technology Inc TK9902 (prog-if 02
[ECP])
        Subsystem: AFAVLAB Technology Inc TK9902
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 10
        Region 0: I/O ports at ec00 [size=8]
        Region 1: I/O ports at e880 [size=4]
        Capabilities: [a0] Power Management version 1
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Kernel modules: parport_pc

[Note: lsmod does not indicate that parport_pc is loaded, as it was before I
blacklisted it.]


qemu-dm-vsvr6.log:
--------------------------------------------------------
domid: 23                                 
qemu: the number of cpus is 1             
Watching /local/domain/0/device-model/23/logdirty/next-active
Watching /local/domain/0/device-model/23/command             
xs_read(): vncpasswd get error.
/vm/e0cee623-aa8b-3932-62ad-22396dedc659/vncpasswd.
char device redirected to /dev/pts/0

qemu_map_cache_init nr_buckets = 10000 size 3145728

/usr/src/packages/BUILD/xen-3.3.1-testing/tools/ioemu-dir/hw/xen_blktap.c:71
3: Init blktap pipes
shared page at pfn 5fffe

buffered io page at pfn 5fffc

Time offset set -25200

Register xen platform.

Done register platform.

medium change watch on `hdc' (index: 0):
home/samba/common/downloads/Knoppix/KNOPPIX_V5.1.1CD-2007-01-04-EN.iso
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0

gpe_en_write: addr=0x1f6c, val=0x0.

gpe_sts_write: addr=0x1f68, val=0xff.

gpe_en_write: addr=0x1f6d, val=0x0.

gpe_sts_write: addr=0x1f69, val=0xff.

gpe_en_write: addr=0x1f6e, val=0x0.

gpe_sts_write: addr=0x1f6a, val=0xff.
gpe_en_write: addr=0x1f6f, val=0x0.
gpe_sts_write: addr=0x1f6b, val=0xff.
gpe_en_write: addr=0x1f6c, val=0x8.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
ACPI PCI hotplug: read addr=0x10c1, val=0x0.
ACPI PCI hotplug: read addr=0x10c2, val=0x0.
gpe_sts_write: addr=0x1f68, val=0xff.
gpe_sts_write: addr=0x1f69, val=0xff.
gpe_sts_write: addr=0x1f6a, val=0xff.
gpe_sts_write: addr=0x1f6b, val=0xff.
gpe_en_write: addr=0x1f6c, val=0x0.
gpe_en_write: addr=0x1f6d, val=0x0.
gpe_en_write: addr=0x1f6e, val=0x0.
gpe_en_write: addr=0x1f6f, val=0x0.
gpe_sts_write: addr=0x1f68, val=0xff.
gpe_sts_write: addr=0x1f69, val=0xff.
gpe_sts_write: addr=0x1f6a, val=0xff.
gpe_sts_write: addr=0x1f6b, val=0xff.
shutdown requested in cpu_handle_ioreq
Issued domain 23 poweroff
track_dirty_vram(f0000000, 180) failed (-1, 3)



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

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