Bug 771545
Summary: | qemu should give friendly messages instead of quitting when Hot-plugging two devices with the same bootindex values | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | FuXiangChun <xfu> |
Component: | qemu-kvm-rhev | Assignee: | Marcel Apfelbaum <marcel> |
Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.0 | CC: | bcao, bsarathy, juzhang, knoel, michen, mkenneth, rbalakri, rhod, sluo, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-11-02 14:11:30 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 963588 |
Description
FuXiangChun
2012-01-04 02:53:10 UTC
> 2.(qemu)device_del virtio-disk2
>
> 3.(qemu) __com.redhat_drive_add
> file=/home/second-disk-3.qcow2,id=drive-virtio-disk2,media=disk,cache=none,format=qcow2,aio=native
> (qemu) device_add
> virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk2,id=virtio-disk2,bootindex=2
>
Maybe the key reason is step2 "device_del virtio-disk2" did not remove
bootindex flag:"bootindex=2". As usual,device_del should delete all
virtio-disk2 related flags and address. after device_del, all flags and address
can be re-use.
Gleb, Dev_ack+ for 6.4, to allow you a convenient moment to deal with this err-msg issue. We'll move to 6.3 if you do it earlier. Not worth fixing for RHEL 6.x because customers are unlikely to hit this problem. -> Move to 7.0. Removed RFE since is a plain bug. Splitting into 2 bugs: 1. qemu should give a message and return error and not quit 2. del_device should remove the device from boot order list I am going to work on it, so cond_nack upstream. The boot order is passed in fw cfg and updated only once at "machine done". There is no update of this list after this point. Modifying the boot order from monitor does not work at all. So in order to solve this issue we can: 1. Don't allow use of bootindex at hot-plug 2. Change the architecture so boot order changing during hot-plug will be possible Currently discussed upstream *** Bug 969968 has been marked as a duplicate of this bug. *** Moved to qemu-kvm-rhev because: 1. It is not a regression 2. The upstream featyre has a 30 patches series that solves a much bigger issue: botindex change between VM reboots BZ 1086603 is much wider and the upstream series solves it. *** This bug has been marked as a duplicate of bug 1086603 *** |