Bug 852642
Summary: | qemu process should exit when a invaild value set for "-smp" | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Xu Tian <xutian> |
Component: | qemu-kvm | Assignee: | Markus Armbruster <armbru> |
Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 6.4 | CC: | acathrow, areis, bsarathy, dyasny, ehabkost, juzhang, mkenneth, shuang, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-09-07 20:29:05 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Xu Tian
2012-08-29 08:11:19 UTC
Yes, parsing of -smp's argument is sloppy. Same upstream. -help claims number of CPUs is mandatory, but the code treats it as optional. Additional funnies: * -smp "" Since all parameters are optional, this has no effect * -smp 0 Code interprets 0 as "use default", and the default is 1. Same for all the named parameter values. * -smp 4294967296 Argument is silently truncated to int, in this case to zero. * -smp 1,sockets= Named parameter with empty value is silently ignored. * -smp 1,sockets=maybe Named parameter value is parsed just as sloppily as the number of CPUs, in this case as zero. * -smp 1,silly -smp 1,qemu=moron Unknown parameters are silently ignored. *** This bug has been marked as a duplicate of bug 745047 *** |