Bug 1100575

Summary: Some vCPU topologies not accepted by libvirt
Product: Red Hat Enterprise Linux 6 Reporter: Jan Kurik <jkurik>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.5CC: acathrow, asegundo, bsarathy, chayang, ehabkost, jentrena, juzhang, lersek, mkenneth, mrezanin, pablo.iranzo, pkrempa, pm-eus, qzhang, tdosek, virt-maint, xwei
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.415.el6_5.10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-10 20:22:01 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: 1099599    
Bug Blocks:    

Description Jan Kurik 2014-05-23 06:49:12 UTC
This bug has been copied from bug #1099599 and has been proposed
to be backported to 6.5 z-stream (EUS).

Comment 4 Jeff Nelson 2014-05-28 16:07:45 UTC
Fix included in qemu-kvm-0.12.1.2-2.415.el6_5.10

Comment 5 Xiaoqing Wei 2014-05-29 06:22:07 UTC
[root@dhcp-9-130 home]# rpm -q libvirt qemu-kvm-rhev
libvirt-0.10.2-29.el6_5.7.x86_64
qemu-kvm-rhev-0.12.1.2-2.415.el6_5.10.x86_64

with components above, qemu cmd has been generated by libvirt correctly.


[root@dhcp-9-130 home]# ps aux | grep -i smp --color
qemu      5671 84.4  0.4 1774120 35320 ?       Sl   14:20   0:23 /usr/libexec/qemu-kvm -name smp6 -S -M rhel6.5.0 -enable-kvm -m 1024 -realtime mlock=off -smp 6,sockets=2,cores=3,threads=1 -uuid e5447184-ede7-4884-07d8-59c3b0ce9202 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/smp6.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/home/test.qcow2,if=none,id=drive-virtio-disk0,format=raw,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=22,id=hostnet0,vhost=on,vhostfd=23 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:69:c3:7c,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
root      5737  0.0  0.0 103252   856 pts/0    S+   14:20   0:00 grep -i smp --color

Comment 6 Xiaoqing Wei 2014-05-29 06:58:38 UTC
snip of xml used in C#5

  <vcpu placement='static'>6</vcpu>
  <os>
    <type arch='x86_64' machine='rhel6.5.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu>
    <topology sockets='2' cores='3' threads='1'/>
  </cpu>

define a smp6 vm in virt-manager, and config the cpu to 2 sockets, each has 3 cores
then boot it.

As not error like https://bugzilla.redhat.com/show_bug.cgi?id=1099599#c0 found, 
this bug is fixed.

libvirt-0.10.2-29.el6_5.7.x86_64
qemu-kvm-rhev-0.12.1.2-2.415.el6_5.10.x86_64

Comment 10 errata-xmlrpc 2014-06-10 20:22:01 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.

http://rhn.redhat.com/errata/RHSA-2014-0743.html