blob: bc20f3375a5dd40368263e3c4e9084787e75e592 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
The guest will be destroyed after hot remove the VF from the guest.
Environment:
------------
Host OS (ia32/ia32e/IA64):ia32e
Guest OS (ia32/ia32e/IA64):ia32e
Guest OS Type (Linux/Windows):Linux
kvm.git Commit:9f6226a762c7ae02f6a23a3d4fc552dafa57ea23
qemu.git Commit:5a7348045091a2bc15d85bb177e5956aa6114e5a
Host Kernel Version:3.16.0-rc1
Hardware:Romley_EP, Ivytown_EP,Haswell_EP
Bug detailed description:
--------------------------
hot add the VF to the guest, then hot remove the VF from the guest, the guest will be destroyed.
note:
1. when hot add the VF with vfio, the hot remove the VF from the guest, the guest works fine.
2. this shoule be a qemu bug:
kvm + qemu = result
9f6226a7 + 5a734804 = bad
9f6226a7 + 9f862687 = good
Reproduce steps:
----------------
1. create guest
qemu-system-x86_64 --enable-kvm -m 1024 -smp 4 -net none rhel6u5.qcow -monitor pty
2. hot add the vf to guest
echo "device_add pci-assign,host=05:10.0,id=nic" >/dev/pts/x
cat /dev/pts/x
3. hot remove the VF froem guest
echo "device_del nic" >/dev/pts/x
Current result:
----------------
the guest willl be destroyed after hot remove the VF from the guest
Expected result:
----------------
the guest works fine after hot remove the VF from the guest
Basic root-causing log:
----------------------
[root@vt-snb9 qemu.git]# qemu-system-x86_64 -enable-kvm -m 1024 -smp 2 -net none rhel6u5.qcow -monitor pty
VNC server running on `::1:5900'
**
ERROR:qom/object.c:725:object_unref: assertion failed: (obj->ref > 0)
Aborted (core dumped)
|