qemu-discuss
[Top][All Lists]
Advanced

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

[Qemu-discuss] PCI passthrough (shared IRQ) not working


From: 2020human
Subject: [Qemu-discuss] PCI passthrough (shared IRQ) not working
Date: Tue, 7 Jul 2015 17:16:58 +0800

Hi ,all
I have set up a KVM virtual machine with PCI passthrough.
But now, I have a Problem with one VM who uses PCI passthrough

VM can not start:

qemu-kvm: -device pci-assign,configfd=29,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x7: PCI region 1 at address 0xf0720000 has size 0x100, which is not a multiple of 4K.  You might experience some performance hit due to that.
qemu-kvm: -device pci-assign,configfd=29,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x7: Failed to assign irq for "hostdev0": Input/output error
qemu-kvm: -device pci-assign,configfd=29,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x7: Perhaps you are assigning a device that shares an IRQ with another device?
qemu-kvm: -device pci-assign,configfd=29,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x7: Device initialization failed.
qemu-kvm: -device pci-assign,configfd=29,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x7: Device 'kvm-pci-assign' could not be initialized

dmesg output:
pci-stub 0000:05:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci-stub 0000:05:00.0: restoring config space at offset 0x1 (was 0x2900000, writing 0x2900003)
assign device: host bdf = 5:0:0
IRQ handler type mismatch for IRQ 16
current handler: ehci_hcd:usb1
Pid: 22957, comm: qemu-kvm Tainted: G        W  --------------- H  2.6.32-431.el6.x86_64 #1
Call Trace:
 [<ffffffff810e7fb2>] ? __setup_irq+0x382/0x3c0
 [<ffffffffa0382df0>] ? kvm_assigned_dev_intr+0x0/0xd0 [kvm]
 [<ffffffff810e87b3>] ? request_threaded_irq+0x133/0x230
 [<ffffffffa038648d>] ? kvm_vm_ioctl+0xccd/0x1030 [kvm]
 [<ffffffff8118ae1d>] ? __sb_end_write+0x3d/0x70
 [<ffffffff81440903>] ? pci_conf1_read+0xc3/0x120
 [<ffffffff81442853>] ? raw_pci_read+0x23/0x40
 [<ffffffffa0385316>] ? kvm_dev_ioctl+0xd6/0x550 [kvm]
 [<ffffffff8129d1bc>] ? pci_user_read_config_byte+0x5c/0xa0
 [<ffffffff812a7bec>] ? pci_read_config+0x1ac/0x240
 [<ffffffff8119db42>] ? vfs_ioctl+0x22/0xa0
 [<ffffffff812070f3>] ? read+0x1a3/0x210
 [<ffffffff8119e00a>] ? do_vfs_ioctl+0x3aa/0x580
 [<ffffffff8118971f>] ? vfs_read+0x12f/0x1a0
 [<ffffffff8119e261>] ? sys_ioctl+0x81/0xa0
 [<ffffffff810e1e5e>] ? __audit_syscall_exit+0x25e/0x290
 [<ffffffff8100b072>] ? system_call_fastpath+0x16/0x1b
deassign device: host bdf = 5:0:0
pci-stub 0000:05:00.0: restoring config space at offset 0x1 (was 0x2900000, writing 0x2900003)
pci-stub 0000:05:00.0: PCI INT A disabled


I see pci 05:00.0 share IRQ 16

I try :
echo 1 > /sys/module/kvm/parameters/allow_unsafe_assigned_interrupts
not solve

My system : centos6.5 qemu1.5.3 libvirt1.0.5.7 

Please help


reply via email to

[Prev in Thread] Current Thread [Next in Thread]