intel / KVMGT-kernel

Other
41 stars 20 forks source link

kernel error when start vm #2

Open limbo127 opened 9 years ago

limbo127 commented 9 years ago

hello, i report vm crash ( black screen after bios )
model name : Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz [127.0.0.1/10.10.0.78/]~ >>lspci 00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) 00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09) 00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04) 00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04) 00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-V (rev 04) 00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04) 00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode](rev 04) 00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)

qemu command line : /usr/bin/qemu-kvm --enable-kvm -name NP_TESTRW -S -M pc -machine kernel_irqchip=on -m 1024 -uuid 7ba6515a-8ee9-32f0-8ded-24e9d55beb9a -vgt -vga vgt -hda /tmpsafe/MASTER-centos7_64_100g.1415285497.6644611.MASTER

69.222678] vGT info:(vgt_handle_default_event_phys:822) IRQ: receive event (Blitter Command Streamer MI USER INTERRUPT) [ 69.222748] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(0) receive event (Blitter Command Streamer MI USER INTERRUPT) [ 69.228395] i9xx_update_plane [ 69.228859] vGT info:(vgt_handle_default_event_phys:822) IRQ: receive event (RP DOWN threshold interrupt) [ 69.228917] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(0) receive event (RP DOWN threshold interrupt) [ 70.999908] hda-intel: IRQ timing workaround is activated for card #2. Suggest a bigger bdl_pos_adj. [ 79.921803] VM 0 activate context [ 79.921835] Ring-0 starts work for vgt-0 [ 79.960403] vGT info:(vgt_handle_default_event_phys:822) IRQ: receive event (Render Command Streamer MI USER INTERRUPT) [ 79.960522] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(0) receive event (Render Command Streamer MI USER INTERRUPT) [ 80.319684] vGT info:(vgt_handle_default_event_phys:822) IRQ: receive event (RP UP threshold interrupt) [ 80.319752] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(0) receive event (RP UP threshold interrupt) [ 147.970582] ------------[ cut here ]------------ [ 147.970650] WARNING: CPU: 2 PID: 10194 at arch/x86/kvm/../../../virt/kvm/kvm_main.c:3002 kvm_io_bus_register_dev+0x122/0x130() [ 147.970653] Modules linked in: nbd x86_pkg_temp_thermal libafs(PO) zfs(PO) zavl(PO) zcommon(PO) zunicode(PO) znvpair(PO) spl(O) [ 147.970760] CPU: 2 PID: 10194 Comm: qemu-kvm Tainted: P O 3.14.1-igvt #5 [ 147.970809] Hardware name: /D34010WYK, BIOS WYLPT10H.86A.0018.2013.0918.2135 09/18/2013 [ 147.970811] 0000000000000bba ffff88006e837bf8 ffffffff8217a848 0000000000000036 [ 147.970850] 0000000000000000 ffff88006e837c38 ffffffff810cb49c ffffffff8100691d [ 147.970888] ffff8800bc5a0300 ffff88006e874000 ffff88006e874000 0000000000000001 [ 147.970931] Call Trace: [ 147.970961] [] dump_stack+0x46/0x58 [ 147.970994] [] warn_slowpath_common+0x8c/0xc0 [ 147.971023] [] ? mark_page_dirty+0x1d/0x20 [ 147.971053] [] warn_slowpath_null+0x1a/0x20 [ 147.971086] [] kvm_io_bus_register_dev+0x122/0x130 [ 147.971115] [] kvm_create_pic+0xa2/0x150 [ 147.971145] [] kvm_arch_vm_ioctl+0x388/0xb00 [ 147.971178] [] ? handle_mm_fault+0x24b/0xe90 [ 147.971206] [] ? update_curr+0x121/0x1e0 [ 147.971241] [] ? tty_flip_buffer_push+0x34/0x50 [ 147.971270] [] ? set_next_entity+0x3e/0x80 [ 147.971298] [] kvm_vm_ioctl+0x92/0x780 [ 147.971329] [] ? do_page_fault+0x1cc/0x4c0 [ 147.971357] [] ? kvm_dev_ioctl+0xae/0x490 [ 147.971386] [] do_vfs_ioctl+0x86/0x4f0 [ 147.971415] [] ? vfs_write+0x18c/0x1e0 [ 147.971441] [] SyS_ioctl+0x4c/0x90 [ 147.971467] [] ? down_read+0x16/0x30 [ 147.971498] [] system_call_fastpath+0x16/0x1b [ 147.971518] ---[ end trace 3e9ffdebd7e7328b ]--- [ 148.116300] [kvmgt] __kvm_set_memory_region-846: hi [ 148.128507] [kvmgt] kvm_set_memory_region-846: hi [ 148.131300] vGT info:(create_vgt_instance:118) vm_id=1, low_gm_sz=64MB, high_gm_sz=448MB, fence_sz=4, vgt_primary=1 [ 148.132215] vGT info:(create_vgt_instance:171) Virtual GTT size: 0x200000 [ 148.132529] VM1 Ring0 context_save_area is allocated at gm(f952000) [ 148.134808] VM1 Ring1 context_save_area is allocated at gm(f992000) [ 148.134886] VM1 Ring2 context_save_area is allocated at gm(f9d2000) [ 148.134965] VM1 Ring3 context_save_area is allocated at gm(fa12000) [ 148.135079] vGT info:(create_vgt_instance:207) aperture: [0xe7800000, 0xeb7fffff] guest [0xe7800000, 0xeb7fffff] va(0xffffc9000ce80000) [ 148.135153] vGT info:(create_vgt_instance:218) GM: [0x7800000, 0xb7fffff], [0x28000000, 0x43ffffff], guest[0x7800000, 0xb7fffff], [0x28000000, 0x43ffffff] [ 148.136859] vGT info:(create_vgt_instance:255) filling VGT_PVINFO_PAGE for dom1: visable_gm_base=0x7800000, size=0x4000000 hidden_gm_base=0x28000000, size=0x1c000000 fence_base=4, num=4 [ 148.137213] vGT info:(create_vgt_instance:297) emulating a writing 0xfc opregion for VM1..., value:0xcbc87018 [ 148.137274] [kvmgt] private_map_opregion-7220: userspace_addr I got from vm_mmap: 0x7fb99aff1000 [ 148.137299] ------------[ cut here ]------------ [ 148.137363] WARNING: CPU: 2 PID: 10194 at arch/x86/kvm/../../../virt/kvm/kvm_main.c:736 install_new_memslots+0x155/0x190() [ 148.137367] Modules linked in: nbd x86_pkg_temp_thermal libafs(PO) zfs(PO) zavl(PO) zcommon(PO) zunicode(PO) znvpair(PO) spl(O) [ 148.137474] CPU: 2 PID: 10194 Comm: qemu-kvm Tainted: P W O 3.14.1-igvt #5 [ 148.137523] Hardware name: /D34010WYK, BIOS WYLPT10H.86A.0018.2013.0918.2135 09/18/2013 [ 148.137525] 00000000000002e0 ffff88006e837ad8 ffffffff8217a848 000000000000001a [ 148.137565] 0000000000000000 ffff88006e837b18 ffffffff810cb49c ffff88006e837b48 [ 148.137602] ffff88006d254000 ffff88006e874000 ffff88006da18000 0000000000000000 [ 148.137646] Call Trace: [ 148.137675] [] dump_stack+0x46/0x58 [ 148.137706] [] warn_slowpath_common+0x8c/0xc0 [ 148.137735] [] warn_slowpath_null+0x1a/0x20 [ 148.137766] [] install_new_memslots+0x155/0x190 [ 148.137800] [] kvm_set_memory_region+0x26d/0x6e0 [ 148.137832] [] kvmgt_add_opreg_slot+0x60/0xd0 [ 148.137862] [] vgt_hvm_opregion_init+0x77/0x3a0 [ 148.137896] [] create_vgt_instance+0x9f5/0xb20 [ 148.137932] [] vgt_create_instance_store+0x13a/0x3b0 [ 148.137960] [] kobj_attr_store+0x14/0x30 [ 148.137990] [] sysfs_kf_write+0x41/0x50 [ 148.138020] [] kernfs_fop_write+0xe6/0x150 [ 148.138049] [] vfs_write+0xcb/0x1e0 [ 148.138074] [] SyS_write+0x4f/0xc0 [ 148.138106] [] system_call_fastpath+0x16/0x1b [ 148.138126] ---[ end trace 3e9ffdebd7e7328c ]--- [ 148.138229] vGT(1): create debugfs node: virtual_mmio_space [ 148.138255] vGT(1): create debugfs node: shadow_mmio_space [ 148.138283] vGT(1): create debugfs node: frame_buffer_format [ 148.138309] vGT(1): create debugfs node: frame_buffer_format [ 148.149890] vGT info:(vgt_vport_connection_store:594) Monitor detection: PORT_A is disconnected [ 148.209502] vGT info:(vgt_vport_connection_store:582) Monitor detection: PORT_B is connected [ 148.209533] update_pipe_mapping: Enable. pport = 2, vport = 2 [ 148.209560] update_pipe_mapping: Enable. pport = 2, vport = 0 [ 148.209588] update_pipe_mapping: Enable. pport = 2, vport = 0 [ 148.209644] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(1) receive event (DisplayPort/HDMI/DVI B Hotplug) [ 148.222476] vGT info:(vgt_vport_connection_store:594) Monitor detection: PORT_C is disconnected [ 148.234040] vGT info:(vgt_vport_connection_store:594) Monitor detection: PORT_D is disconnected [ 148.245250] vGT info:(vgt_vport_connection_store:594) Monitor detection: PORT_E is disconnected [ 148.385800] [kvmgt] kvmgt_put_vgt-193: release vgt resource for KVM! [ 148.385832] prepare to destroy vgt (1) [ 148.386036] check render ownership... [ 148.386062] vgt instance has been removed from run queue [ 148.386077] check display ownership... [ 148.386100] release display/render ownership... done [ 148.399226] vGT: vgt_release_instance done [ 158.290567] [kvmgt] kvm_set_memory_region-846: hi [ 158.302763] [kvmgt] kvm_set_memory_region-846: hi [ 158.305540] vGT info:(create_vgt_instance:118) vm_id=2, low_gm_sz=64MB, high_gm_sz=448MB, fence_sz=4, vgt_primary=1 [ 158.306454] vGT info:(create_vgt_instance:171) Virtual GTT size: 0x200000 [ 158.306770] VM2 Ring0 context_save_area is allocated at gm(f952000) [ 158.309053] VM2 Ring1 context_save_area is allocated at gm(f992000) [ 158.309131] VM2 Ring2 context_save_area is allocated at gm(f9d2000) [ 158.309208] VM2 Ring3 context_save_area is allocated at gm(fa12000) [ 158.309322] vGT info:(create_vgt_instance:207) aperture: [0xe7800000, 0xeb7fffff] guest [0xe7800000, 0xeb7fffff] va(0xffffc9000ce80000) [ 158.309396] vGT info:(create_vgt_instance:218) GM: [0x7800000, 0xb7fffff], [0x28000000, 0x43ffffff], guest[0x7800000, 0xb7fffff], [0x28000000, 0x43ffffff] [ 158.311124] vGT info:(create_vgt_instance:255) filling VGT_PVINFO_PAGE for dom2: visable_gm_base=0x7800000, size=0x4000000 hidden_gm_base=0x28000000, size=0x1c000000 fence_base=4, num=4 [ 158.311528] vGT info:(create_vgt_instance:297) emulating a writing 0xfc opregion for VM2..., value:0xcbc87018 [ 158.311592] [kvmgt] private_map_opregion-7220: userspace_addr I got from vm_mmap: 0x7f63d85f4000 [ 158.311688] vGT(1): create debugfs node: virtual_mmio_space [ 158.311715] vGT(1): create debugfs node: shadow_mmio_space [ 158.311742] vGT(1): create debugfs node: frame_buffer_format [ 158.311769] vGT(1): create debugfs node: frame_buffer_format [ 158.328148] vGT info:(vgt_vport_connection_store:594) Monitor detection: PORT_A is disconnected [ 158.381935] vGT info:(vgt_vport_connection_store:582) Monitor detection: PORT_B is connected [ 158.381965] update_pipe_mapping: Enable. pport = 2, vport = 2 [ 158.381993] update_pipe_mapping: Enable. pport = 2, vport = 0 [ 158.382020] update_pipe_mapping: Enable. pport = 2, vport = 0 [ 158.395206] vGT info:(vgt_vport_connection_store:594) Monitor detection: PORT_C is disconnected [ 158.406132] vGT info:(vgt_vport_connection_store:594) Monitor detection: PORT_D is disconnected [ 158.416985] vGT info:(vgt_vport_connection_store:594) Monitor detection: PORT_E is disconnected [ 158.675210] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(2) receive event (Render Command Streamer MI USER INTERRUPT) [ 163.515380] [kvmgt] __kvm_set_memory_region-846: hi [ 163.515925] [kvmgt] kvm_set_memory_region-846: hi [ 163.522728] Programming bar 0x10 with 0xffffffff [ 163.522757] Programming bar 0x10 with 0xf7800004 [ 163.522805] Programming bar 0x18 with 0xffffffff [ 163.522835] Programming bar 0x18 with 0xe000000c [ 163.522877] Programming bar 0x20 with 0xffffffff [ 163.522903] Programming bar 0x20 with 0xf001 [ 163.524124] Programming bar 0x20 with 0xc040 [ 163.524475] Programming bar 0x10 with 0xfe400000 [ 163.525206] Programming bar 0x18 with 0xe0000000 [ 163.526209] [kvmgt] kvmgt_add_apt_slot-208: hi, vgt-2, p1: 0xe7800, g1: 0xe7800, nr_mfns: 16384, hva: 0xffffc9000ce80000 [ 163.526246] [kvmgt] kvmgt_add_apt_slot-209: hi, vgt-2, aperture_offset: 0x7800000 [ 163.526306] [kvmgt] private_map_aperture-7239: hi, open & mmap /dev/mem [ 163.538988] [kvmgt] private_map_aperture-7261: userspace_addr I got from vm_mmap: 0x7f63367cc000 [ 173.953438] Programming bar 0x10 with 0xffffffff [ 173.953470] Programming bar 0x10 with 0xfe400004 [ 173.953546] Programming bar 0x18 with 0xffffffff [ 173.953577] Programming bar 0x18 with 0xe000000c [ 173.953643] Programming bar 0x20 with 0xffffffff [ 173.953671] Programming bar 0x20 with 0xc041 [ 173.953808] vGT: write to MSI capa(92) with val (80000000) [ 177.244807] vGT warning:(fpga_dbg_mmio_write:2192) VM 2 writes FPGA_DBG register: 80000000. [ 177.269027] VM2 write register RC_STATE_CTRL_1 with 0x0 [ 177.269533] vGT (1) , write fence register 100020, 4 out of assignment 4. [ 177.269573] vGT(1) , read fence register 100020, 4 out of assignment 4. [ 177.269614] vGT (1) , write fence register 100024, 4 out of assignment 4.

l1viathan commented 9 years ago

thank you for reporting this. however, I failed to find anything suspicious in the dmesg.
Was the guest instance killed? What did the guest kernel log say? would you please also have the guest kernel log attached?

PS, specifying "-serial stdio" in qemu cmdline, and "console=ttyS0" in guest kernel cmdline, will make you able to get the guest dmesg via qemu stdout.