Hide Forgot
Backport 972fc544b6034 "kvm: warn if num cpus is greater than num recommended" from uq/master in order to help enforce the recommended max vcpu limit.
Fix included in qemu-kvm-1.5.3-9.el7
Reproduce this bug using the following version: qemu-kvm-1.5.3-8.el7.x86_64 kernel-3.10.0-63.el7.x86_64 Steps to Reproduce: 1. Start a guest with 255 vcpus # /usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 2048 -smp 255 -name rhel7 -uuid 6afa5f93-2d4f-420f-81c6-e5fdddbd1c83 -drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,serial=40c061dd-5d60-4fc5-865f-55db700407f0,werror=stop,rerror=stop,aio=threads -device virtio-blk-pci,scsi=off,drive=drive-virtio-disk0,id=virtio-disk0 -vnc :1 -monitor stdio -spice port=5900,disable-ticketing -qmp tcp:0:4445,server,nowait -netdev tap,id=hostnet0,ifname=guest13,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown,vhost=on -device virtio-net,netdev=hostnet0,mac=54:52:1b:35:3c:16,id=test Actual results: After step1, there is no warning information.
Verify this bug using the following version: qemu-kvm-1.5.3-21.el7.x86_64 kernel-3.10.0-63.el7.x86_64 Steps to Reproduce: 1. Start a guest with 255 vcpus # /usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 2048 -smp 255 -name rhel7 -uuid 6afa5f93-2d4f-420f-81c6-e5fdddbd1c83 -drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,serial=40c061dd-5d60-4fc5-865f-55db700407f0,werror=stop,rerror=stop,aio=threads -device virtio-blk-pci,scsi=off,drive=drive-virtio-disk0,id=virtio-disk0 -vnc :1 -monitor stdio -spice port=5900,disable-ticketing -qmp tcp:0:4445,server,nowait -netdev tap,id=hostnet0,ifname=guest13,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown,vhost=on -device virtio-net,netdev=hostnet0,mac=54:52:1b:35:3c:16,id=test Actual results: After step1, there are the following warning information: Warning: Number of SMP cpus requested (255) exceeds the recommended cpus supported by KVM (160) Warning: Number of hotpluggable cpus requested (255) exceeds the recommended cpus supported by KVM (160) QEMU 1.5.3 monitor - type 'help' for more information (qemu) Based on the above result, I think this bug is fixed.
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request.