The guest will be destroyed when hot plug the VF to guest for the second time.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Environment:
------------
Host OS (ia32/ia32e/
Guest OS (ia32/ia32e/
Guest OS Type (Linux/
kvm.git Commit: 6557bada461afea
qemu.kvm Commit: cd2d5541271f193
Host Kernel Version:3.19.0-rc3
Hardware:
Bug detailed description:
-------
create guest , then hot plug the VF to the guest for the second time, the guest will be destroyed.
note:
1. hot plug the device to guest with vfio, the guest works fine
2.this should be a qemu bug:
kvm + qemu = result
6557bada + cd2d5541 = bad
6557bada + a805ca54 = good
Reproduce steps:
----------------
1. qemu-system-x86_64 -enable-kvm -m 2G -net none -monitor pty rhel6u5.qcow
2. echo "device_add pci-assign,
3. cat /dev/pts/2 &
4. echo "device_del nic" >/dev/pts/2
5. echo "device_add pci-assign,
Current result:
----------------
guest will be destroyed when hot plug the vf to guest for the second time.
Expected result:
----------------
guest works fine when hot plug the vf to guest for the second time
Basic root-causing log:
-------
[root@vt-hsw2 cathy]# qemu-system-x86_64 -enable-kvm -m 2G -net none -monitor pty rhel6u5.qcow
char device redirected to /dev/pts/2 (label compat_monitor0)
Segmentation fault (core dumped)
some dmesg log:
pci-stub 0000:03:10.1: kvm deassign device
pci-stub 0000:03:10.1: enabling device (0000 -> 0002)
qemu-system-
pci-stub 0000:03:10.1: kvm assign device
Changed in qemu: | |
status: | Fix Committed → Fix Released |
the first bad commit is: e1e9f734984ef88 85172fd9e2
commit ec6f25e788ef57c
Merge: 007c99f 9ef1473
Author: Peter Maydell <email address hidden>
Date: Tue Feb 3 21:37:16 2015 +0000
Merge remote-tracking branch 'remotes/ rth/tags/ pull-tg- s390-20150203' into staging
s390 translator bug fixes
# gpg: Signature made Tue 03 Feb 2015 20:39:15 GMT using RSA key ID 4DD0279B
# gpg: Good signature from "Richard Henderson <email address hidden>"
# gpg: aka "Richard Henderson <email address hidden>"
# gpg: aka "Richard Henderson <email address hidden>"
* remotes/ rth/tags/ pull-tg- s390-20150203:
target-s390x: fix and optimize slb* and slbg* computation of carry/borrow flag
target-s390x: support OC and NC in the EX instruction
disas/s390.c: Remove unused variables
target-s390x: Mark check_privileged() as !CONFIG_USER_ONLY
target-s390: Implement ECAG
target-s390: Implement LURA, LURAG, STURG
target-s390: Fix STURA
target-s390: Fix STIDP
target-s390: Implement EPSW
target-s390: Implement SAM specification exception
Signed-off-by: Peter Maydell <email address hidden>