Description: Boot up a guest with a additional disk from nfs, and try to write data to it. While the data writing stop the nfs server, guest will turn to pause status. Then start the nfs server and try to continue the guest but always get this warning, and guest still pause status: QXL: qxl_vm_change_state_handler: running=1 handle_dev_input: start QXL: qxl_vm_change_state_handler: running=0 handle_dev_input: stop Version-Release number of selected component (if applicable): kernel: 2.6.18-262.el5 kvm: # rpm -qa |grep kvm etherboot-roms-kvm-5.4.4-13.el5 kvm-qemu-img-83-235.el5 etherboot-zroms-kvm-5.4.4-13.el5 kmod-kvm-83-235.el5 kvm-debuginfo-83-235.el5 kvm-83-235.el5 kvm-tools-83-235.el5 kmod-kvm-debug-83-235.el5 qemu: # rpm -qa |grep qemu kvm-qemu-img-83-235.el5 gpxe-roms-qemu-0.9.7-8.el5 How reproducible: always Steps to Reproduce: 1. Setup nfs server in host # cd /root/autotest-devel/client/tests/kvm; mkdir -p /tmp/nfs_dir && mkdir -p images/nfs && service nfs restart && exportfs 127.0.0.1:/tmp/nfs_dir -o rw,no_root_squash && mount 127.0.0.1:/tmp/nfs_dir images/nfs -o rw,soft,timeo=1,retrans=1,vers=3 2. boot up a guest with a storage in nfs and write the disk # qemu-img create -f qcow2 /root/autotest-devel/client/tests/kvm/images/nfs/storage.qcow2 10G # /root/autotest-devel/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20110530-164923-KKzm',server,nowait -serial unix:'/tmp/serial-20110530-164923-KKzm',server,nowait -drive file='/root/autotest-devel/client/tests/kvm/images/RHEL-4.9-32-virtio.qcow2',index=0,if=virtio,media=disk,cache=none,werror=stop,boot=on,format=qcow2 -drive file='/root/autotest-devel/client/tests/kvm/images/nfs/storage.qcow2',index=3,if=virtio,media=disk,cache=none,werror=stop,format=qcow2 -net nic,vlan=0,model=virtio,macaddr='9a:e3:cb:fc:e5:29' -net tap,vlan=0,ifname='t0-164923-KKzm',script='/root/autotest-devel/client/tests/kvm/scripts/qemu-ifup-switch',downscript='no' -m 2048 -smp 2,cores=1,threads=1,sockets=2 -cpu qemu64,+sse2 -soundhw ac97 -spice port=8000,disable-ticketing -qxl 1 -rtc-td-hack -M rhel5.6.0 -boot c -usbdevice tablet -no-kvm-pit-reinjection in guest: # dd=/dev/urandom of=/dev/vdb 3. stop nfs service in host and check guest status # service nfs stop #(qemu) info status info status VM status: paused 4. start nfs server in host, continue guset and check guest status # service nfs start #(qemu) c #(qemu) info status info status VM status: paused Actual results: Guest will be paused Expected results: Guest can running again Additional info: 1. cpu info: processor : 1 vendor_id : AuthenticAMD cpu family : 15 model : 67 model name : Dual-Core AMD Opteron(tm) Processor 1216 stepping : 3 cpu MHz : 1000.000 cache size : 1024 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy bogomips : 2009.36 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp tm stc
And while the guest in paused status, try to umount the disk in host will get a device is busy warning which shows the it is in use.