Bug 1529642 - Cores and sockets argument can be set to negative number
Summary: Cores and sockets argument can be set to negative number
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.0
Hardware: All
OS: Unspecified
low
unspecified
Target Milestone: rc
: ---
Assignee: Eduardo Habkost
QA Contact: Xujun Ma
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-29 04:52 UTC by Xujun Ma
Modified: 2021-08-05 01:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-15 07:34:20 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xujun Ma 2017-12-29 04:52:34 UTC
Description of problem:
Cores and sockets argument can be set to negative number

Version-Release number of selected component (if applicable):
host:3.10.0-748.el7.ppc64le
qemu-kvm-rhev-2.10.0-13.el7.ppc64le

How reproducible:


Steps to Reproduce:
1.Boot gues with command
 -smp 1,cores=-1,threads=1,sockets=-1

2.
3.

Actual results:
Can boot up successfully.

Expected results:
Cann't boot up successfully,should give some warning msg.

Additional info:

Comment 2 Xujun Ma 2018-01-02 02:32:54 UTC
On x86,have different result.qemu quit with error below:

qemu-kvm: /builddir/build/BUILD/qemu-2.10.0/target/i386/cpu.c:2979: cpu_x86_cpuid: Assertion `!(*eax & ~0x1f)' failed.
vm.sh: line 18:  5455 Aborted                 /usr/libexec/qemu-kvm -smp 1,sockets=-1,cores=-1,threads=1 -m 8192,slots=4,maxmem=32G -object memory-backend-file,mem-path=/mnt/kvm_hugepage,size=256M,id=mem-hugepage -device pc-dimm,id=dimm-hugepage,memdev=mem-hugepage -vnc :59 -device nec-usb-xhci,id=xhci -device usb-hub,id=hub,port=2 -device virtio-scsi-pci,bus=pci.0 -device scsi-hd,id=scsi-hd0,drive=scsi-hd0-dr0,bootindex=0 -drive file=rhel-guest-image-7.5-48.x86_64.qcow2,if=none,id=scsi-hd0-dr0,format=qcow2,cache=none -nographic -chardev stdio,mux=on,id=serial0,server,nowait -device isa-serial,chardev=serial0,id=serial0 -mon chardev=serial0,mode=readline -nodefaults -boot menu=on

Comment 7 Ademar Reis 2020-02-05 22:46:14 UTC
QEMU has been recently split into sub-components and as a one-time operation to avoid breakage of tools, we are setting the QEMU sub-component of this BZ to "General". Please review and change the sub-component if necessary the next time you review this BZ. Thanks

Comment 8 David Gibson 2020-04-22 04:55:32 UTC
Eduardo,

IIUC, this isn't really ppc related.  It's just that x86 happens to hit an abort() pretty early in this bogus situation, whereas power does not.

Given that, can we change Hardware to All?  At the moment this is (IMO, erroneously) showing up on searches I'm making to look for bugs relevant to me I might have missed.

Comment 9 Eduardo Habkost 2020-05-28 20:56:53 UTC
(In reply to David Gibson from comment #8)
> Eduardo,
> 
> IIUC, this isn't really ppc related.  It's just that x86 happens to hit an
> abort() pretty early in this bogus situation, whereas power does not.
> 
> Given that, can we change Hardware to All?  At the moment this is (IMO,
> erroneously) showing up on searches I'm making to look for bugs relevant to
> me I might have missed.

Done.  Thanks for noticing, and sorry for taking so long to reply.

Comment 12 RHEL Program Management 2021-02-15 07:34:20 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 13 Xujun Ma 2021-08-05 01:54:03 UTC
Can't trigger from libvirt side.
<topology sockets='-1' cores='-1' threads='1'/>
error: unsupported configuration: cpu topology results in more than 4294967295 cpus


Note You need to log in before you can comment on or make changes to this bug.