Bug 1408122

Summary: Opteron_G4 CPU model broken in QEMU 2.6 with RHEL 6 machine type
Product: Red Hat Enterprise Linux 7 Reporter: Marcel Kolaja <mkolaja>
Component: qemu-kvm-rhevAssignee: Paolo Bonzini <pbonzini>
Status: CLOSED ERRATA QA Contact: Guo, Zhiyi <zhguo>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.3CC: chayang, jherrman, juzhang, knoel, pbonzini, sbonazzo, sherold, virt-maint
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-rhev-2.6.0-28.el7_3.3 Doc Type: Bug Fix
Doc Text:
Using "Opteron" CPU options with Red Hat Enterprise Linux (RHEL) 6 machine types caused the QEMU emulator to terminate unexpectedly due to a typographical error in one of device names. This update corrects the error so "Opteron" CPU options can be used with RHEL 6 machine types as expected.
Story Points: ---
Clone Of: 1405123
: 1408230 (view as bug list) Environment:
Last Closed: 2017-01-17 20:10:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1405123    
Bug Blocks: 1408230    

Description Marcel Kolaja 2016-12-22 08:41:41 UTC
This bug has been copied from bug #1405123 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 4 Miroslav Rezanina 2017-01-04 19:35:20 UTC
Fix included in qemu-kvm-rhev-2.6.0-28.el7_3.3

Comment 6 Guo, Zhiyi 2017-01-05 09:10:33 UTC
Reproduce this issue against qemu-kvm-rhev-2.6.0-28.el7_3.2.x86_64.
qemu cmds used:
/usr/libexec/qemu-kvm -name rhel7.2 -m 2048 \
	-cpu Opteron_G4 -M rhel6.6.0 \
	-smp 4 \
	 -vga qxl\
	-spice port=3001,disable-ticketing \
        -device virtio-serial -chardev spicevmc,id=vdagent,debug=0,name=vdagent \
	-serial unix:/tmp/m,server,nowait \
        -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
	-drive file=rhel73,if=none,id=drive-scsi-disk0,format=qcow2,cache=none,werror=stop,rerror=stop -device virtio-scsi-pci,id=scsi0 -device scsi-hd,drive=drive-scsi-disk0,bus=scsi0.0,scsi-id=0,lun=0,id=scsi-disk0,bootindex=1 \
	-monitor stdio \
Steps:
1.Install rhel7.3 guest use above cmd.

Results:
qemu core dump with:
(gdb) bt
#0  0x00007f812c26b1d7 in raise () from /lib64/libc.so.6
#1  0x00007f812c26c8c8 in abort () from /lib64/libc.so.6
#2  0x00007f8136e53484 in error_handle_fatal (errp=<optimized out>, 
    err=0x7f8139fa70b0) at util/error.c:38
#3  0x00007f8136e53986 in error_propagate (
    dst_errp=0x7f8137857dd8 <error_abort>, local_err=0x7f8139fa70b0)
    at util/error.c:267
#4  0x00007f8136cdeb19 in qdev_prop_set_globals_for_type (
    typename=0x7f8139fadd20 "Opteron_G4-x86_64-cpu", dev=0x7f813aa48000)
    at hw/core/qdev-properties.c:1091
#5  qdev_prop_set_globals (dev=0x7f813aa48000)
    at hw/core/qdev-properties.c:1105
#6  0x00007f8136db1eda in object_post_init_with_type (ti=0x7f813a03b480, 
    obj=0x7f813aa48000) at qom/object.c:346
#7  object_initialize_with_type (data=data@entry=0x7f813aa48000, size=76368, 
    type=type@entry=0x7f813a033900) at qom/object.c:371
#8  0x00007f8136db2071 in object_new_with_type (type=0x7f813a033900)
    at qom/object.c:478
#9  0x00007f8136db20e5 in object_new (
    typename=typename@entry=0x7f8139fadd20 "Opteron_G4-x86_64-cpu")
    at qom/object.c:488
#10 0x00007f8136c1082d in pc_new_cpu (
    typename=typename@entry=0x7f8139fadd20 "Opteron_G4-x86_64-cpu", apic_id=0, 
---Type <return> to continue, or q <return> to quit---
    errp=0x7f8137857dd0 <error_fatal>)
    at /usr/src/debug/qemu-2.6.0/hw/i386/pc.c:1059
#11 0x00007f8136c1374e in pc_cpus_init (pcms=pcms@entry=0x7f813a08c000)
    at /usr/src/debug/qemu-2.6.0/hw/i386/pc.c:1157
#12 0x00007f8136c15aad in pc_init1 (machine=0x7f813a08c000, 
    pci_type=0x7f8136e79960 "i440FX", 
    host_type=0x7f8136e79967 "i440FX-pcihost")
    at /usr/src/debug/qemu-2.6.0/hw/i386/pc_piix.c:146
#13 0x00007f8136b88bc5 in main (argc=<optimized out>, argv=<optimized out>, 
    envp=<optimized out>) at vl.c:4552

Verify this bug against qemu-kvm-rhev-2.6.0-28.el7_3.3.x86_64, rhel7.3 guest can install and boot without error using same steps

Comment 7 Guo, Zhiyi 2017-01-05 09:11:13 UTC
Move to Verified per comment 6

Comment 9 errata-xmlrpc 2017-01-17 20:10:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0115.html