| Summary: | qemu-kvm allows a value of -1 for uint32 qdev property types | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | FuXiangChun <xfu> |
| Component: | qemu-kvm | Assignee: | Amit Shah <amit.shah> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.3 | CC: | acathrow, bsarathy, chayang, flang, juzhang, michen, mkenneth, qzhang, rhod, shu, sluo, tburke, virt-maint, wdai |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-0.12.1.2-2.299.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-21 07:32:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
FuXiangChun
2012-02-27 07:00:13 UTC
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4. Reproduced on qemu-kvm-0.12.1.2-2.295.el6.x86_64 and verified pass on qemu-kvm-0.12.1.2-2.334.el6.x86_64.
Reproduction:
1. Boot guest with some negative value for qdev property, like 'nr=-1' for virtio serial port, or "vectors=-1 for virtio-blk-pci or virtio-net-pci" :
/usr/libexec/qemu-kvm .... -device virtio-serial-pci,id=virtio-serial1 -device virtserialport,bus=virtio-serial1.0,id=test1,chardev=channel1,name=org.linux-kvm.port.1,nr=-1
2. (qemu)info qtree
......
bus: virtio-serial1.0
type virtio-serial-bus
dev: virtserialport, id "test1"
dev-prop: chardev = channel1
bus-prop: nr = 1
bus-prop: name = "org.linux-kvm.port.1"
dev-prop-int: id: 1
dev-prop-int: guest_connected: 0
dev-prop-int: host_connected: 1
dev-prop-int: throttled: 0
......
Result:
The guest can boot up with negative value like -1 for qdev property.
Verification:
Boot guest with "nr=-1" for virtio serial port and "vectors=-1" for virtio-blk-pci.
Result:
Failed to boot up guest and there's related prompt.
qemu-kvm: -device virtserialport,bus=virtio-serial1.0,id=test1,chardev=channel1,name=org.linux-kvm.port.1,nr=-10000: Property 'virtserialport.nr' doesn't take value '-10000'
qemu-kvm: -device virtio-net-pci,netdev=netdev0,id=device-net0,vectors=-1: Property 'virtio-net-pci.vectors' doesn't take value '-1'
So, based on above, this issue is 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. http://rhn.redhat.com/errata/RHBA-2013-0527.html |