Qemu VirtFS mounts are not accessible after resuming guest from hibernation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
New
|
Undecided
|
Unassigned |
Bug Description
Host OS: Funtoo Linux
Host Kernel: 4.7.4-gentoo
Qemu Version: 2.7.0
Guest OS: Ubuntu 14.04
Guest Kernel: reproduced with both 4.4.0-42-generic and 3.13.0-98-generic
Qemu command line:
qemu-system-x86_64 \
-machine type=pc,accel=kvm \
-cpu host \
-smp 3 \
-m 8G \
-netdev bridge,
-device virtio-
-drive file=/dev/
-virtfs local,path=
-virtfs local,path=
-display gtk
Relevant lines from guest /etc/fstab:
code /home/dharding/code 9p trans=virtio,
xfer /home/dharding/xfer 9p trans=virtio,
Steps to reproduce:
- start qemu using the above command line
- in the guest, run "sudo pm-hibernate"
- after qemu exits, run again using the same command line
- once the guest resumes from hibernation, run "ls /home/dharding/
- the ls command will hang forever
The ls call stack is:
[<ffffffffc0074
[<ffffffffc0076
[<ffffffffc009e
[<ffffffff81202
[<ffffffff81202
[<ffffffff81202
[<ffffffff81203
[<ffffffff81203
[<ffffffff817fa
The root cause lies in the 9pnet_virtio driver in the guest kernel: it does not support suspend/ hibernation. ..