Red Hat Bugzilla – Bug 1292678
Qemu should report error when cmdline set threads=2 in amd host
Last modified: 2017-03-21 05:35:46 EDT
Description of problem: In amd host, when qemu cmdline set threads=2, qemu should report " AMD CPU doesn't support hyperthreading", just like rhel7.2. Version-Release number of selected component (if applicable): kernel: 2.6.32-593.el6.x86_64 qemu: qemu-kvm-0.12.1.2-2.481.el6 How reproducible: always Steps to Reproduce: 1. start a qemu process with threads=2 /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1 -numa node -numa node -monitor stdio 2. 3. Actual results: Qemu report nothing. Expected results: Qemu should report error, just like rhel7.2: qemu-kvm: AMD CPU doesn't support hyperthreading. Please configure -smp options properly. Additional info:
See https://bugzilla.redhat.com/show_bug.cgi?id=1135772. I will get a patch for 6.8. Please assign it to me. -Wei
Fix included in qemu-kvm-0.12.1.2-2.484.el6
Test on qemu-kvm version:qemu-kvm-0.12.1.2-2.482.el6.x86_64 No warning output after lunch qemu-kvm: # /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1 VNC server running on `::1:5900' Verified on qemu-kvm version:qemu-img-0.12.1.2-2.484.el6.x86_64: Warning output after lunch qemu-kvm: # /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1 qemu-kvm: AMD CPU doesn't support hyperthreading. Please configure -smp options properly.
Fix included in qemu-kvm-0.12.1.2-2.495.el6
Reproduce: host version: kernel-2.6.32-642.el6.x86_64 qemu-kvm-0.12.1.2-2.494.el6.x86_64 Steps to Reproduce: 1.start a qemu process with threads=2 # /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1 VNC server running on `::1:5900' Actual results: Qemu report nothing. ------------------------------------ Verify this bug on "qemu-kvm-0.12.1.2-2.495.el6.x86_64" as same steps above. Test results:Qemu report error # /usr/libexec/qemu-kvm -name win10 -m 6G -smp 2,threads=2,cores=1,sockets=1 qemu-kvm: AMD CPU doesn't support hyperthreading. Please configure -smp options properly. According to result above,this bug has been fixed.
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/RHSA-2017-0621.html