Hide Forgot
Description of problem: rhel62.z guest unable to boot when using cpu model SandyBridge Version-Release number of selected component (if applicable): qemu-kvm-0.12.1.2-2.266.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. boot a rhel62 guest with -cpu SandyBridge 2. guest hang 3. Actual results: guest hang, unable to boot Expected results: guest work well Additional info: 1) rhel63 guest works well for me 2) rhel62 guest boot with -cpu Westmere works for me 3) rhel62 guest boot with -cpu 'SandyBridge,-xsave' works for me guest kernel version: 2.6.32-220.13.1.el6.x86_64 ====================================================== (qemu) info registers RAX=0000000000000000 RBX=0000000000000000 RCX=0000000000000000 RDX=0000000000000000 RSI=0000000000000001 RDI=ffffffff81dd5228 RBP=ffffffff81a01ec8 RSP=ffffffff81a01ec8 R8 =0000000000000000 R9 =0000000000000000 R10=0000000000000000 R11=0000000000000000 R12=ffffffff81c004c0 R13=0000000000000000 R14=ffffffffffffffff R15=0000000000093780 RIP=ffffffff810375eb RFL=00000246 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=1 ES =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] FS =0000 0000000000000000 000fffff 00000000 GS =0000 ffff880028200000 000fffff 00000000 LDT=0000 0000000000000000 000fffff 00000000 TR =0040 ffff880028213b00 00002087 00008b00 DPL=0 TSS64-busy GDT= ffff880028204000 0000007f IDT= ffffffff81dd2000 00000fff CR0=8005003b CR2=0000000000000000 CR3=0000000001a85000 CR4=000406f0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000 XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000 XMM08=00000000000000000000000000000000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 #### guest serial output nc -U /tmp/serial-20120401-155216-ewup Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Linux version 2.6.32-220.13.1.el6.x86_64 (mockbuild.bos.redhat.com) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Thu Mar 29 11:46:40 EDT 2012 Command line: ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS console=tty0 console=ttyS0,115200 LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM KERNEL supported cpus: Intel GenuineIntel AMD AuthenticAMD Centaur CentaurHauls Disabled fast string operations BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009dc00 (usable) BIOS-e820: 000000000009dc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable) BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved) BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved) BIOS-e820: 0000000100000000 - 0000000120000000 (usable) DMI 2.4 present. SMBIOS version 2.4 @ 0xFDA30 last_pfn = 0x120000 max_arch_pfn = 0x400000000 x86 PAT enabled: cpu 0, old 0x70106, new 0x7010600070106 last_pfn = 0xdfffd max_arch_pfn = 0x400000000 init_memory_mapping: 0000000000000000-00000000dfffd000 init_memory_mapping: 0000000100000000-0000000120000000 RAMDISK: 370c7000 - 37fef5b9 ACPI: RSDP 00000000000fda00 00014 (v00 BOCHS ) ACPI: RSDT 00000000dfffd2c0 00030 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001) ACPI: FACP 00000000dffffce0 00074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001) ACPI: DSDT 00000000dfffd760 02515 (v01 BXPC BXDSDT 00000001 INTL 20090123) ACPI: FACS 00000000dffffc80 00040 ACPI: SSDT 00000000dfffd410 00345 (v01 BOCHS BXPCSSDT 00000001 BXPC 00000001) ACPI: APIC 00000000dfffd2f0 000B0 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001) No NUMA configuration found Faking a node at 0000000000000000-0000000120000000 Bootmem setup node 0 0000000000000000-0000000120000000 NODE_DATA [000000000000d000 - 0000000000040fff] bootmap [0000000000041000 - 0000000000064fff] pages 24 (8 early reservations) ==> bootmem [0000000000 - 0120000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000] #1 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 - 0000008000] #2 [0001000000 - 000200c864] TEXT DATA BSS ==> [0001000000 - 000200c864] #3 [00370c7000 - 0037fef5b9] RAMDISK ==> [00370c7000 - 0037fef5b9] #4 [000009dc00 - 0000100000] BIOS reserved ==> [000009dc00 - 0000100000] #5 [000200d000 - 000200d059] BRK ==> [000200d000 - 000200d059] #6 [0000008000 - 000000c000] PGTABLE ==> [0000008000 - 000000c000] #7 [000000c000 - 000000d000] PGTABLE ==> [000000c000 - 000000d000] found SMP MP-table at [ffff8800000fda50] fda50 Reserving 129MB of memory at 48MB for crashkernel (System RAM: 4608MB) kvm-clock: Using msrs 4b564d01 and 4b564d00 kvm-clock: cpu 0, msr 0:1c1df01, boot clock Zone PFN ranges: DMA 0x00000001 -> 0x00001000 DMA32 0x00001000 -> 0x00100000 Normal 0x00100000 -> 0x00120000 Movable zone start PFN for each node early_node_map[3] active PFN ranges 0: 0x00000001 -> 0x0000009d 0: 0x00000100 -> 0x000dfffd 0: 0x00100000 -> 0x00120000 ACPI: PM-Timer IO Port: 0xb008 ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x04] enabled) ACPI: LAPIC (acpi_id[0x05] lapic_id[0x05] enabled) ACPI: LAPIC (acpi_id[0x06] lapic_id[0x06] enabled) ACPI: LAPIC (acpi_id[0x07] lapic_id[0x07] enabled) ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1]) ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 8, version 17, address 0xfec00000, GSI 0-23 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level) ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level) Using ACPI (MADT) for SMP configuration information SMP: Allowing 8 CPUs, 0 hotplug CPUs PM: Registered nosave memory: 000000000009d000 - 000000000009e000 PM: Registered nosave memory: 000000000009e000 - 00000000000a0000 PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000 PM: Registered nosave memory: 00000000000f0000 - 0000000000100000 PM: Registered nosave memory: 00000000dfffd000 - 00000000e0000000 PM: Registered nosave memory: 00000000e0000000 - 00000000fffbc000 PM: Registered nosave memory: 00000000fffbc000 - 0000000100000000 Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000) Booting paravirtualized kernel on KVM NR_CPUS:4096 nr_cpumask_bits:8 nr_cpu_ids:8 nr_node_ids:1 PERCPU: Embedded 30 pages/cpu @ffff880028200000 s92632 r8192 d22056 u262144 pcpu-alloc: s92632 r8192 d22056 u262144 alloc=1*2097152 pcpu-alloc: [0] 0 1 2 3 4 5 6 7 kvm-clock: cpu 0, msr 0:28215f01, primary cpu clock Built 1 zonelists in Node order, mobility grouping on. Total pages: 1032239 Policy zone: Normal Kernel command line: ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS console=tty0 console=ttyS0,115200 LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 rhgb crashkernel=129M@0M rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM PID hash table entries: 4096 (order: 3, 32768 bytes) xsave/xrstor: enabled xstate_bv 0x7, cntxt size 0x340 Checking aperture... No AGP bridge found PCI-DMA: Using software bounce buffering for IO (SWIOTLB) Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000 software IO TLB at phys 0x20000000 - 0x24000000 Memory: 3902916k/4718592k available (5085k kernel code, 524700k absent, 290976k reserved, 7228k data, 1244k init) Hierarchical RCU implementation. NR_IRQS:33024 nr_irqs:472 Console: colour VGA+ 80x25 console [tty0] enabled console [ttyS0] enabled allocated 33554432 bytes of page_cgroup please try 'cgroup_disable=memory' option if you don't want memory cgroups Detected 3392.292 MHz processor. Calibrating delay loop (skipped) preset value.. 6784.58 BogoMIPS (lpj=3392292) pid_max: default: 32768 minimum: 301 Security Framework initialized SELinux: Initializing. Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) Mount-cache hash table entries: 256 Initializing cgroup subsys ns Initializing cgroup subsys cpuacct Initializing cgroup subsys memory Initializing cgroup subsys devices Initializing cgroup subsys freezer Initializing cgroup subsys net_cls Initializing cgroup subsys blkio Initializing cgroup subsys perf_event Disabled fast string operations CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 mce: CPU supports 10 MCE banks alternatives: switching to unfair spinlock ACPI: Core revision 20090903 ftrace: converting mcount calls to 0f 1f 44 00 00 ftrace: allocating 20792 entries in 82 pages Enabling x2apic Enabled x2apic Setting APIC routing to physical x2apic ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 CPU0: Intel Xeon E312xx (Sandy Bridge) stepping 01 Performance Events: SandyBridge events, Intel PMU driver. ... version: 2 ... bit width: 48 ... generic registers: 4 ... value mask: 0000ffffffffffff ... max period: 000000007fffffff ... fixed-purpose events: 3 ... event mask: 000000070000000f NMI watchdog enabled, takes one hw-pmu counter. Booting Node 0, Processors #1 Disabled fast string operations kvm-clock: cpu 1, msr 0:28255f01, secondary cpu clock #2 Disabled fast string operations kvm-clock: cpu 2, msr 0:28295f01, secondary cpu clock #3 Disabled fast string operations kvm-clock: cpu 3, msr 0:282d5f01, secondary cpu clock #4 Disabled fast string operations kvm-clock: cpu 4, msr 0:28315f01, secondary cpu clock #5 Disabled fast string operations kvm-clock: cpu 5, msr 0:28355f01, secondary cpu clock #6 Disabled fast string operations TSC synchronization [CPU#0 -> CPU#6]: Measured 3601534511 cycles TSC warp between CPUs, turning off TSC clock. Marking TSC unstable due to check_tsc_sync_source failed kvm-clock: cpu 6, msr 0:28395f01, secondary cpu clock #7 Ok. Disabled fast string operations kvm-clock: cpu 7, msr 0:283d5f01, secondary cpu clock Brought up 8 CPUs Total of 8 processors activated (54276.67 BogoMIPS). devtmpfs: initialized regulator: core version 0.5 NET: Registered protocol family 16 ACPI: bus type pci registered PCI: Using configuration type 1 for base access bio: create slab <bio-0> at 0 ACPI: Interpreter enabled ACPI: (supports S0 S3 S4 S5) ACPI: Using IOAPIC for interrupt routing ACPI: No dock devices found. HEST: Table not found. ACPI: PCI Root Bridge [PCI0] (0000:00) pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11) ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11) ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11) ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11) ACPI: PCI Interrupt Link [LNKS] (IRQs 9) *0 vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none vgaarb: loaded vgaarb: bridge control possible 0000:00:02.0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb PCI: Using ACPI for IRQ routing NetLabel: Initializing NetLabel: domain hash size = 128 NetLabel: protocols = UNLABELED CIPSOv4 NetLabel: unlabeled traffic allowed by default Switching to clocksource kvm-clock pnp: PnP ACPI init ACPI: bus type pnp registered pnp: PnP ACPI: found 7 devices ACPI: ACPI bus type pnp unregistered NET: Registered protocol family 2 IP route cache hash table entries: 131072 (order: 8, 1048576 bytes) TCP established hash table entries: 524288 (order: 11, 8388608 bytes) TCP bind hash table entries: 65536 (order: 8, 1048576 bytes) TCP: Hash tables configured (established 524288 bind 65536) TCP reno registered NET: Registered protocol family 1 pci 0000:00:00.0: Limiting direct PCI/PCI transfers pci 0000:00:01.0: PIIX3: Enabling Passive Release pci 0000:00:01.0: Activating ISA DMA hang workarounds Trying to unpack rootfs image as initramfs... Freeing initrd memory: 15521k freed audit: initializing netlink socket (disabled) type=2000 audit(1333269362.166:1): initialized HugeTLB registered 2 MB page size, pre-allocated 0 pages VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 512 (order 0, 4096 bytes) msgmni has been set to 7653 alg: No test for stdrng (krng) ksign: Installing public key data Loading keyring - Added public key CA4252066A58DA39 - User ID: Red Hat, Inc. (Kernel Module GPG key) - Added public key D4A26C9CCD09BEDA - User ID: Red Hat Enterprise Linux Driver Update Program <secalert> Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.4 acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 acpiphp: Slot [1] registered acpiphp: Slot [2] registered acpiphp: Slot [3] registered acpiphp: Slot [4] registered acpiphp: Slot [5] registered acpiphp: Slot [6] registered acpiphp: Slot [7] registered acpiphp: Slot [8] registered acpiphp: Slot [9] registered acpiphp: Slot [10] registered acpiphp: Slot [11] registered acpiphp: Slot [12] registered acpiphp: Slot [13] registered acpiphp: Slot [14] registered acpiphp: Slot [15] registered acpiphp: Slot [16] registered acpiphp: Slot [17] registered acpiphp: Slot [18] registered acpiphp: Slot [19] registered acpiphp: Slot [20] registered acpiphp: Slot [21] registered acpiphp: Slot [22] registered acpiphp: Slot [23] registered acpiphp: Slot [24] registered acpiphp: Slot [25] registered acpiphp: Slot [26] registered acpiphp: Slot [27] registered acpiphp: Slot [28] registered acpiphp: Slot [29] registered acpiphp: Slot [30] registered acpiphp: Slot [31] registered input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 ACPI: Power Button [PWRF] processor LNXCPU:00: registered as cooling_device0 processor LNXCPU:01: registered as cooling_device1 processor LNXCPU:02: registered as cooling_device2 processor LNXCPU:03: registered as cooling_device3 processor LNXCPU:04: registered as cooling_device4 processor LNXCPU:05: registered as cooling_device5 processor LNXCPU:06: registered as cooling_device6 processor LNXCPU:07: registered as cooling_device7 ERST: Table is not found! GHES: HEST is not enabled! Non-volatile memory driver v1.3 Linux agpgart interface v0.103 crash memory driver: version 1.1 Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
Created attachment 574296 [details] gdb detail output this file is tooooo long so I attach it.
Tested with latest version, this issue still exists kernel-2.6.32-257.el6.x86_64 qemu-kvm-0.12.1.2-2.267.el6ev.x86_64 seabios-0.6.1.2-16.el6.x86_64
What's the physical cpu you're running on (should be SandyBridge too)? Please provide the full command line and use -cpu SandyBridge,enforce flag
(In reply to comment #4) > What's the physical cpu you're running on (should be SandyBridge too)? Yes, SandyBridge with 8 SMP processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz stepping : 7 cpu MHz : 1600.000 cache size : 8192 KB > Please provide the full command line and use -cpu SandyBridge,enforce flag qemu-kvm -monitor stdio -S -chardev socket,id=serial_id_20120401-155216-ewup,path=/tmp/serial-20120401-155216-ewup,server,nowait -device isa-serial,chardev=serial_id_20120401-155216-ewup -device ich9-usb-uhci1,id=usb1,multifunction=off,bus=pci.0,addr=0x4 -drive file='/home/rhel62_13.1.qcow2',index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,format=qcow2,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -device virtio-net-pci,netdev=idb4qUkh,mac=9a:66:b7:1e:83:6b,id=ndev00idb4qUkh,bus=pci.0,addr=0x3 -netdev tap,id=idb4qUkh,vhost=on -m 4G \ \ \ -smp 8,cores=4,threads=1,sockets=2 \ -cpu 'SandyBridge' \ \ \ -device usb-tablet,id=usb-tablet1,bus=usb1.0 -spice port=8010,disable-ticketing -vga qxl -rtc base=utc,clock=host,driftfix=slew -M rhel6.3.0 -boot order=cdn,once=c,menu=off -no-kvm-pit-reinjection -enable-kvm
oops, forgot to add enforce flag, but the host is truly SandyBridge :) qemu-kvm -monitor stdio -S -chardev socket,id=serial_id_20120401-155216-ewup,path=/tmp/serial-20120401-155216-ewup,server,nowait -device isa-serial,chardev=serial_id_20120401-155216-ewup -device ich9-usb-uhci1,id=usb1,multifunction=off,bus=pci.0,addr=0x4 -drive file='/home/rhel62_13.1.qcow2',index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,format=qcow2,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -device virtio-net-pci,netdev=idb4qUkh,mac=9a:66:b7:1e:83:6b,id=ndev00idb4qUkh,bus=pci.0,addr=0x3 -netdev tap,id=idb4qUkh,vhost=on -m 4G -smp 8,cores=4,threads=1,sockets=2 \ \ -cpu 'SandyBridge,enforce' \ \ -device usb-tablet,id=usb-tablet1,bus=usb1.0 -spice port=8010,disable-ticketing -vga qxl -rtc base=utc,clock=host,driftfix=slew -M rhel6.3.0 -boot order=cdn,once=c,menu=off -no-kvm-pit-reinjection -enable-kvm
As nobody is being able to reproduce the bug anymore, closing as WORKSFORME.