Hi, all: Recently when i try to reset a vm, I find it may be stuck in SeaBIOS. I use a shell script to continuously reset a vm to see what may happen.
#!/bin/bash while((1)) do virsh reset VMNAME sleep 1 done
After one day, the vm is stuck. Looking from the following seabios log, it seems seabios stops at "PCI: Using 00:02.0 for primary VGA", and can not execute handle_smp() any more. What may be the reason?
============My SeaBIOS log============ 2016-07-26 14:58:49PCI: Using 00:02.0 for primary VGA 2016-07-26 14:58:51In resume (status=0) 2016-07-26 14:58:51In 32bit resume 2016-07-26 14:58:51Attempting a hard reboot 2016-07-26 14:58:51SeaBIOS (version rel-1.9.1-0-gb3ef39f-20160720_133625-HGH1000003484) 2016-07-26 14:58:51BUILD: gcc: (GCC) 4.8.3 20140911 (EulerOS 4.8.3-10) binutils: version 2.23.52.0.1-55 20130226 2016-07-26 14:58:51No Xen hypervisor found. 2016-07-26 14:58:51Running on QEMU (i440fx) 2016-07-26 14:58:51Running on KVM 2016-07-26 14:58:51RamSize: 0xc0000000 [cmos] 2016-07-26 14:58:51Relocating init from 0x000dc320 to 0xbffad7e0 (size 75664) 2016-07-26 14:58:51Found QEMU fw_cfg 2016-07-26 14:58:51QEMU fw_cfg DMA interface supported 2016-07-26 14:58:51RamBlock: addr 0x0000000000000000 len 0x00000000c0000000 [e820] 2016-07-26 14:58:51RamBlock: addr 0x0000000100000000 len 0x0000000040000000 [e820] 2016-07-26 14:58:51Moving pm_base to 0x600 2016-07-26 14:58:51boot order: 2016-07-26 14:58:511: /pci@i0cf8/scsi@4/channel@0/disk@0,0 2016-07-26 14:58:512: HALT 2016-07-26 14:58:51=== PCI bus & bridge init === 2016-07-26 14:58:51PCI: pci_bios_init_bus_rec bus = 0x0 2016-07-26 14:58:51=== PCI device probing === 2016-07-26 14:58:51Found 10 PCI devices (max PCI bus is 00) 2016-07-26 14:58:51=== PCI new allocation pass #1 === 2016-07-26 14:58:51PCI: check devices 2016-07-26 14:58:51=== PCI new allocation pass #2 === 2016-07-26 14:58:51PCI: IO: c000 - c1af 2016-07-26 14:58:51PCI: 32: 00000000c0000000 - 00000000fec00000 2016-07-26 14:58:51PCI: map device bdf=00:1f.0 bar 0, addr 0000c000, size 00000100 [io] 2016-07-26 14:58:51PCI: map device bdf=00:04.0 bar 0, addr 0000c100, size 00000040 [io] 2016-07-26 14:58:51PCI: map device bdf=00:01.2 bar 4, addr 0000c140, size 00000020 [io] 2016-07-26 14:58:51PCI: map device bdf=00:03.0 bar 0, addr 0000c160, size 00000020 [io] 2016-07-26 14:58:51PCI: map device bdf=00:05.0 bar 0, addr 0000c180, size 00000020 [io] 2016-07-26 14:58:51PCI: map device bdf=00:01.1 bar 4, addr 0000c1a0, size 00000010 [io] 2016-07-26 14:58:51PCI: map device bdf=00:03.0 bar 6, addr feb80000, size 00040000 [mem] 2016-07-26 14:58:51PCI: map device bdf=00:02.0 bar 6, addr febc0000, size 00010000 [mem] 2016-07-26 14:58:51PCI: map device bdf=00:02.0 bar 1, addr febd0000, size 00001000 [mem] 2016-07-26 14:58:51PCI: map device bdf=00:03.0 bar 1, addr febd1000, size 00001000 [mem] 2016-07-26 14:58:51PCI: map device bdf=00:04.0 bar 1, addr febd2000, size 00001000 [mem] 2016-07-26 14:58:51PCI: map device bdf=00:05.0 bar 1, addr febd3000, size 00001000 [mem] 2016-07-26 14:58:51PCI: map device bdf=00:02.0 bar 0, addr fc000000, size 02000000 [prefmem] 2016-07-26 14:58:51PCI: init bdf=00:00.0 id=8086:1237 2016-07-26 14:58:51PCI: init bdf=00:01.0 id=8086:7000 2016-07-26 14:58:51PIIX3/PIIX4 init: elcr=00 0c 2016-07-26 14:58:51PCI: init bdf=00:01.1 id=8086:7010 2016-07-26 14:58:51PCI: init bdf=00:01.2 id=8086:7020 2016-07-26 14:58:51PCI: init bdf=00:01.3 id=8086:7113 2016-07-26 14:58:51Using pmtimer, ioport 0x608 2016-07-26 14:58:51PCI: init bdf=00:02.0 id=1013:00b8 2016-07-26 14:58:51PCI: init bdf=00:03.0 id=1af4:1000 2016-07-26 14:58:51PCI: init bdf=00:04.0 id=1af4:1004 2016-07-26 14:58:51PCI: init bdf=00:05.0 id=1af4:1003 2016-07-26 14:58:51PCI: init bdf=00:1f.0 id=1af4:8888 2016-07-26 14:58:51PCI: Using 00:02.0 for primary VGA <---------- stuck here 2016-07-26 14:58:52In resume (status=0) 2016-07-26 14:58:52In 32bit resume 2016-07-26 14:58:53Attempting a hard reboot 2016-07-26 14:58:53SeaBIOS (version rel-1.9.1-0-gb3ef39f-20160720_133625-HGH1000003484) 2016-07-26 14:58:53BUILD: gcc: (GCC) 4.8.3 20140911 (EulerOS 4.8.3-10) binutils: version 2.23.52.0.1-55 20130226 2016-07-26 14:58:53No Xen hypervisor found. 2016-07-26 14:58:53Running on QEMU (i440fx) 2016-07-26 14:58:53Running on KVM 2016-07-26 14:58:53RamSize: 0xc0000000 [cmos] 2016-07-26 14:58:53Relocating init from 0x000dc320 to 0xbffad7e0 (size 75664) 2016-07-26 14:58:53Found QEMU fw_cfg 2016-07-26 14:58:53QEMU fw_cfg DMA interface supported 2016-07-26 14:58:53RamBlock: addr 0x0000000000000000 len 0x00000000c0000000 [e820] 2016-07-26 14:58:53RamBlock: addr 0x0000000100000000 len 0x0000000040000000 [e820] 2016-07-26 14:58:53Moving pm_base to 0x600 2016-07-26 14:58:53boot order: 2016-07-26 14:58:531: /pci@i0cf8/scsi@4/channel@0/disk@0,0 2016-07-26 14:58:532: HALT 2016-07-26 14:58:53=== PCI bus & bridge init === 2016-07-26 14:58:53PCI: pci_bios_init_bus_rec bus = 0x0 2016-07-26 14:58:53=== PCI device probing === 2016-07-26 14:58:53Found 10 PCI devices (max PCI bus is 00) 2016-07-26 14:58:53=== PCI new allocation pass #1 === 2016-07-26 14:58:53PCI: check devices 2016-07-26 14:58:53=== PCI new allocation pass #2 === 2016-07-26 14:58:53PCI: IO: c000 - c1af 2016-07-26 14:58:53PCI: 32: 00000000c0000000 - 00000000fec00000 2016-07-26 14:58:53PCI: map device bdf=00:1f.0 bar 0, addr 0000c000, size 00000100 [io] 2016-07-26 14:58:53PCI: map device bdf=00:04.0 bar 0, addr 0000c100, size 00000040 [io] 2016-07-26 14:58:53PCI: map device bdf=00:01.2 bar 4, addr 0000c140, size 00000020 [io] 2016-07-26 14:58:53PCI: map device bdf=00:03.0 bar 0, addr 0000c160, size 00000020 [io] 2016-07-26 14:58:53PCI: map device bdf=00:05.0 bar 0, addr 0000c180, size 00000020 [io] 2016-07-26 14:58:53PCI: map device bdf=00:01.1 bar 4, addr 0000c1a0, size 00000010 [io] 2016-07-26 14:58:53PCI: map device bdf=00:03.0 bar 6, addr feb80000, size 00040000 [mem] 2016-07-26 14:58:53PCI: map device bdf=00:02.0 bar 6, addr febc0000, size 00010000 [mem] 2016-07-26 14:58:53PCI: map device bdf=00:02.0 bar 1, addr febd0000, size 00001000 [mem] 2016-07-26 14:58:53PCI: map device bdf=00:03.0 bar 1, addr febd1000, size 00001000 [mem] 2016-07-26 14:58:53PCI: map device bdf=00:04.0 bar 1, addr febd2000, size 00001000 [mem] 2016-07-26 14:58:53PCI: map device bdf=00:05.0 bar 1, addr febd3000, size 00001000 [mem] 2016-07-26 14:58:53PCI: map device bdf=00:02.0 bar 0, addr fc000000, size 02000000 [prefmem] 2016-07-26 14:58:53PCI: init bdf=00:00.0 id=8086:1237 2016-07-26 14:58:53PCI: init bdf=00:01.0 id=8086:7000 2016-07-26 14:58:53PIIX3/PIIX4 init: elcr=00 0c 2016-07-26 14:58:53PCI: init bdf=00:01.1 id=8086:7010 2016-07-26 14:58:53PCI: init bdf=00:01.2 id=8086:7020 2016-07-26 14:58:53PCI: init bdf=00:01.3 id=8086:7113 2016-07-26 14:58:53Using pmtimer, ioport 0x608 2016-07-26 14:58:53PCI: init bdf=00:02.0 id=1013:00b8 2016-07-26 14:58:53PCI: init bdf=00:03.0 id=1af4:1000 2016-07-26 14:58:53PCI: init bdf=00:04.0 id=1af4:1004 2016-07-26 14:58:53PCI: init bdf=00:05.0 id=1af4:1003 2016-07-26 14:58:53PCI: init bdf=00:1f.0 id=1af4:8888 2016-07-26 14:58:53PCI: Using 00:02.0 for primary VGA <---- i wait here for 3 days, seabios can not go on 2016-07-29 11:33:56In resume (status=0) 2016-07-29 11:33:56In 32bit resume 2016-07-29 11:33:56Attempting a hard reboot 2016-07-29 11:33:56SeaBIOS (version rel-1.9.1-0-gb3ef39f-20160720_133625-HGH1000003484) 2016-07-29 11:33:56BUILD: gcc: (GCC) 4.8.3 20140911 (EulerOS 4.8.3-10) binutils: version 2.23.52.0.1-55 20130226 2016-07-29 11:33:56No Xen hypervisor found. 2016-07-29 11:33:56Running on QEMU (i440fx) 2016-07-29 11:33:56Running on KVM 2016-07-29 11:33:56RamSize: 0xc0000000 [cmos] 2016-07-29 11:33:56Relocating init from 0x000dc320 to 0xbffad7e0 (size 75664) 2016-07-29 11:33:56Found QEMU fw_cfg 2016-07-29 11:33:56QEMU fw_cfg DMA interface supported 2016-07-29 11:33:56RamBlock: addr 0x0000000000000000 len 0x00000000c0000000 [e820] 2016-07-29 11:33:56RamBlock: addr 0x0000000100000000 len 0x0000000040000000 [e820] 2016-07-29 11:33:56Moving pm_base to 0x600 2016-07-29 11:33:56boot order: 2016-07-29 11:33:561: /pci@i0cf8/scsi@4/channel@0/disk@0,0 2016-07-29 11:33:562: HALT 2016-07-29 11:33:56=== PCI bus & bridge init === 2016-07-29 11:33:56PCI: pci_bios_init_bus_rec bus = 0x0 2016-07-29 11:33:56=== PCI device probing === 2016-07-29 11:33:56Found 10 PCI devices (max PCI bus is 00) 2016-07-29 11:33:56=== PCI new allocation pass #1 === 2016-07-29 11:33:56PCI: check devices 2016-07-29 11:33:56=== PCI new allocation pass #2 === 2016-07-29 11:33:56PCI: IO: c000 - c1af 2016-07-29 11:33:56PCI: 32: 00000000c0000000 - 00000000fec00000 2016-07-29 11:33:56PCI: map device bdf=00:1f.0 bar 0, addr 0000c000, size 00000100 [io] 2016-07-29 11:33:56PCI: map device bdf=00:04.0 bar 0, addr 0000c100, size 00000040 [io] 2016-07-29 11:33:56PCI: map device bdf=00:01.2 bar 4, addr 0000c140, size 00000020 [io] 2016-07-29 11:33:56PCI: map device bdf=00:03.0 bar 0, addr 0000c160, size 00000020 [io] 2016-07-29 11:33:56PCI: map device bdf=00:05.0 bar 0, addr 0000c180, size 00000020 [io] 2016-07-29 11:33:56PCI: map device bdf=00:01.1 bar 4, addr 0000c1a0, size 00000010 [io] 2016-07-29 11:33:56PCI: map device bdf=00:03.0 bar 6, addr feb80000, size 00040000 [mem] 2016-07-29 11:33:56PCI: map device bdf=00:02.0 bar 6, addr febc0000, size 00010000 [mem] 2016-07-29 11:33:56PCI: map device bdf=00:02.0 bar 1, addr febd0000, size 00001000 [mem] 2016-07-29 11:33:56PCI: map device bdf=00:03.0 bar 1, addr febd1000, size 00001000 [mem] 2016-07-29 11:33:56PCI: map device bdf=00:04.0 bar 1, addr febd2000, size 00001000 [mem] 2016-07-29 11:33:56PCI: map device bdf=00:05.0 bar 1, addr febd3000, size 00001000 [mem] 2016-07-29 11:33:56PCI: map device bdf=00:02.0 bar 0, addr fc000000, size 02000000 [prefmem] 2016-07-29 11:33:56PCI: init bdf=00:00.0 id=8086:1237 2016-07-29 11:33:56PCI: init bdf=00:01.0 id=8086:7000 2016-07-29 11:33:56PIIX3/PIIX4 init: elcr=00 0c 2016-07-29 11:33:56PCI: init bdf=00:01.1 id=8086:7010 2016-07-29 11:33:56PCI: init bdf=00:01.2 id=8086:7020 2016-07-29 11:33:56PCI: init bdf=00:01.3 id=8086:7113 2016-07-29 11:33:56Using pmtimer, ioport 0x608 2016-07-29 11:33:56PCI: init bdf=00:02.0 id=1013:00b8 2016-07-29 11:33:56PCI: init bdf=00:03.0 id=1af4:1000 2016-07-29 11:33:56PCI: init bdf=00:04.0 id=1af4:1004 2016-07-29 11:33:56PCI: init bdf=00:05.0 id=1af4:1003 2016-07-29 11:33:56PCI: init bdf=00:1f.0 id=1af4:8888 2016-07-29 11:33:56PCI: Using 00:02.0 for primary VGA
-------------- Xulei (Stone)