kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pcidevice: failed to assign irq / hang on Intel nic boot message
@ 2009-06-11 10:10 Heiko Harders
  0 siblings, 0 replies; only message in thread
From: Heiko Harders @ 2009-06-11 10:10 UTC (permalink / raw)
  To: kvm

Hello,

I'm trying to setup a virtual machine with my onboard nic passed 
through. Unfortunately I get the message:

Failed to assign irq for "2:00.0": Input/output error
Perhaps you are assigning a device that shares an IRQ with another device?

I'm using a clean Ubuntu 9.04 installation (64 bits version) which comes 
with kernel `2.6.28-11-generic'. The kvm version is 84 and I'm using an 
AMD cpu.

The relevant section from `dmesg' shows that IRQ 18 is used, but that by 
MSI/MSI-X also IRQ 2300 is assigned. IRQ 18 is also used for onboard usb 
devices and the graphics card. I need these, so I can't shut them down 
unfortunately.

# relevant snipped from dmesg after booting the machine:
[    4.123477] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    4.123498] r8169 0000:02:00.0: PCI INT A -> GSI 18 (level, low) -> 
IRQ 18
[    4.123514] r8169 0000:02:00.0: setting latency timer to 64
[    4.123593] r8169 0000:02:00.0: irq 2300 for MSI/MSI-X

The procedure I followed was:

# unbind the onboard nic
cd /sys/bus/pci/devices/0000:02:00.0/driver
echo -n "0000:02:00.0" > unbind

# try to run kvm
kvm -m 512 -hda /dev/vg/vm1 -cdrom ubuntu-9.04-server-amd64.iso 
-pcidevice host=2:00.0 -boot d
Failed to assign irq for "2:00.0": Input/output error
Perhaps you are assigning a device that shares an IRQ with another device?

# The following appeared in dmesg:
[ 1220.744178] r8169 0000:02:00.0: PCI INT A disabled
[ 1242.066374] pci 0000:02:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 1242.066662] pci 0000:02:00.0: Invalid ROM contents
[ 1242.761820] kvm: 5930: cpu0 unhandled wrmsr: 0xc0010117 data 0
[ 1243.389097] pci 0000:02:00.0: PCI INT A disabled

Does this mean that for my setup it isn't possible to use the onboard 
nic as a pcidevice for kvm? Anything I missed, or suggestions to try?

Another thing I tried was using another nic (an intel pro/100) as 
pcidevice. This seemed to work, I didn't get any complaints (that nic 
didn't share any irq's with other devices). The QEMU window appears and 
the virtual machine boots. But the Intel nic shows a message during booting:

Initializing Intel PRO/100 Boot Agent Version 2.0
Press Ctrl+S to enter the Setup Program..

While the progress dots (behind the word `Program' in the last sentence) 
appeared, QEMU didn't advance beyond this point. Pressing Ctrl+S brought 
me into the set program, but disabling the boot message didn't make any 
difference (and while the message was disabled it was still possible to 
enter the setup program using Ctrl+S). Is this a known problem? Any work 
arround for this?

Thanks for any help/insights,
Heiko


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-11 10:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 10:10 pcidevice: failed to assign irq / hang on Intel nic boot message Heiko Harders

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).