Skip to contentSkip to conversation

Test with VT-d patches

DISCUSSION Luca Tettamanti 2 participants 2 messages Sep 2, 2008 – Sep 3, 2008 1 message not in the archive KVM

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20301128.193551220365059586.JavaMail.servlet@kundenserver

#1 lore raw
Quoted 9 lines · On Tue, Sep 2, 2008 at 4:17 PM, <[email protected]> wrote:

Hi,

here comes a small part of the dmesg output. Qemu/KVM produces now a CPU usage of about 90%.

Sep  2 11:27:35 ubuntu klogd: [  335.057707] ------------[ cut here ]------------
Sep  2 11:27:35 ubuntu klogd: [  335.057711] WARNING: at kernel/irq/manage.c:180 __enable_irq+0x34/0x80()
Sep  2 11:27:35 ubuntu klogd: [  335.057713] Unbalanced enable for IRQ 21

[...]

Quoted 2 lines

This messages comes endless.
Something with IRQs?

Hum, seems that interrupt has already been enabled... did you load the driver for the NIC in the host? With pass-through the device is "owned" by the guest.

Luca

#2 lore raw
In reply to a message not in the archive

After I destroyed the guest by clicking qume "x" button, and assigned the same assigned device to guest, I met this same issue. The reason is the assigned device doesn't exit normally, then its status is incorrect. Doing FLR should solve the issue. We will add FLR mechanism for it later.

For Gregor's issue, I suspect your device is also in a incorrect status before assignment.

Randy (Weidong)

Quoted 89 lines · [email protected] wrote:

Hi,

here comes a small part of the dmesg output. Qemu/KVM produces now a CPU usage
of about 90%.

Sep  2 11:27:35 ubuntu klogd: [  335.057707] ------------[ cut here
]------------ 
Sep  2 11:27:35 ubuntu klogd: [  335.057711] WARNING: at
kernel/irq/manage.c:180 __enable_irq+0x34/0x80() 
Sep  2 11:27:35 ubuntu klogd: [  335.057713] Unbalanced enable for
IRQ 21 
Sep  2 11:27:35 ubuntu klogd: [  335.057714] Modules linked in:

kvm_intel kvm ipv6 binfmt_misc i915 drm rfcomm l2cap bluetooth ppdev cpufreq_ondemand cpufreq_conservative cpufreq_stats freq_table cpufreq_powersave cpufreq_userspace sbs wmi container sbshc video output pci_slot bay battery iptable_filter ip_tables x_tables ac lp loop snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device iTCO_wdt serio_raw psmouse iTCO_vendor_support snd soundcore snd_page_alloc parport_pc parport button shpchp pci_hotplug intel_agp joydev evdev dcdbas ext3 jbd mbcache sg sd_mod crc_t10dif sr_mod cdrom ata_generic usbhid hid pata_acpi ahci 8139too ehci_hcd libata uhci_hcd 8139cp mii scsi_mod usbcore dock thermal processor fan fuse Sep 2 11:27:35 ubuntu klogd:

[  335.057756] Pid: 6609, comm: qemu-system-x86 Tainted: G        W
2.6.27-rc4 #5             
Sep  2 11:27:35 ubuntu klogd: [  335.057758]
Sep  2 11:27:35 ubuntu klogd: [  335.057758] Call Trace:
Sep  2 11:27:35 ubuntu klogd: [  335.057761]  [<ffffffff802469bc>]
warn_slowpath+0xbc/0xf0 
Sep  2 11:27:35 ubuntu klogd: [  335.057769]  [<ffffffffa0450ba6>] ?
walk_shadow+0x96/0xe0 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057777]  [<ffffffffa0455190>] ?
paging64_page_fault+0x220/0x270 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057785]  [<ffffffffa0456a78>] ?
x86_decode_insn+0x8a8/0xe20 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057792]  [<ffffffffa04536c0>] ?
paging64_shadow_walk_entry+0x0/0x210 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057795]  [<ffffffff80294a04>]
__enable_irq+0x34/0x80 
Sep  2 11:27:35 ubuntu klogd: [  335.057797]  [<ffffffff80294aa2>]
enable_irq+0x52/0x80 
Sep  2 11:27:35 ubuntu klogd: [  335.057805]  [<ffffffffa044acad>]
kvm_assigned_dev_ack_irq+0x2d/0x40 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057812]  [<ffffffffa045ad4a>]
kvm_notify_acked_irq+0x3a/0x60 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057820]  [<ffffffffa045ac01>]
kvm_pic_read_irq+0x91/0x140 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057827]  [<ffffffffa045ae8f>]
kvm_cpu_get_interrupt+0x5f/0x70 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057831]  [<ffffffffa0475748>]
vmx_intr_assist+0x178/0x190 [kvm_intel] 
Sep  2 11:27:35 ubuntu klogd: [  335.057838]  [<ffffffffa04503c8>]
kvm_arch_vcpu_ioctl_run+0x3a8/0x810 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057841]  [<ffffffff8026193a>] ?
enqueue_hrtimer+0x8a/0x140 
Sep  2 11:27:35 ubuntu klogd: [  335.057848]  [<ffffffffa04455d2>]
kvm_vcpu_ioctl+0x2f2/0x5b0 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057856]  [<ffffffffa0446d75>] ?
kvm_vm_ioctl+0xd5/0x280 [kvm] 
Sep  2 11:27:35 ubuntu klogd: [  335.057858]  [<ffffffff8020a675>] ?
__switch_to+0x265/0x490 
Sep  2 11:27:35 ubuntu klogd: [  335.057860]  [<ffffffff802ef7c6>]
vfs_ioctl+0x36/0xb0 
Sep  2 11:27:35 ubuntu klogd: [  335.057862]  [<ffffffff804e6259>] ?
thread_return+0x3d/0x654 
Sep  2 11:27:35 ubuntu klogd: [  335.057864]  [<ffffffff802efac3>]
do_vfs_ioctl+0x283/0x2f0 
Sep  2 11:27:35 ubuntu klogd: [  335.057866]  [<ffffffff802e2078>] ?
fget_light+0x68/0xb0 
Sep  2 11:27:35 ubuntu klogd: [  335.057868]  [<ffffffff802efbd1>]
sys_ioctl+0xa1/0xb0 
Sep  2 11:27:35 ubuntu klogd: [  335.057870]  [<ffffffff8020c7da>]
system_call_fastpath+0x16/0x1b 
Sep  2 11:27:35 ubuntu klogd: [  335.057872]
Sep  2 11:27:35 ubuntu klogd: [  335.057873] ---[ end trace

5c1916f7999c68bb ]--

This messages comes endless.
Something with IRQs?

Regards,

Gregor Glomm