mistranslation: 0.610 KVM: 0.578 other: 0.542 vnc: 0.494 device: 0.410 network: 0.379 graphic: 0.378 boot: 0.372 assembly: 0.366 semantic: 0.357 instruction: 0.350 socket: 0.348 virtio-vga does not let guest poweroff properly I have a VM running rawhide (Fedora development) and I can't poweroff the machine when I enable virtio-vga. Reboot works correctly. Using QXL works also. The machine arrive to print the "Powering off" message (from Linux kernel) but then hangs. The command line is /usr/bin/qemu-system-x86_64 -machine accel=kvm -name rawhide -machine pc-i440fx-2.3,accel=kvm,usb=off -cpu Haswell-noTSX -m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 64216421-aec4-4ce4-aa52-aed9e4e31a1c -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/rawhide.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive file=/home/rawhide.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive if=none,id=drive-ide0-0-0,readonly=on -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev user,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:fc:11:43,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/rawhide.org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel1,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0 -device usb-tablet,id=input0 -spice ipv4,addr=0.0.0.0,port=5900,disable-ticketing,image-compression=lz,seamless-migration=on,streaming-video=filter -device virtio-vga,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x8 -msg timestamp=on I though was due to Virgl but disabling it does not change. I'm using Qemu 2.6.0 from Fedora 24. Does the issue persist if you remove the intel-hda device (id=sound0) and the dependent hda-duplex device (id=sound0-codec0)? Asking because of . If it persists, then please capture a stack dump with gdb, when QEMU is hung. (Not that I'll look at it, but it will help whoever will look at it.) Thanks. Removed the parameters, now the command line is /usr/bin/qemu-system-x86_64 -machine accel=kvm -name rawhide -machine pc-i440fx-2.3,accel=kvm,usb=off -cpu Haswell-noTSX -m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 64216421-aec4-4ce4-aa52-aed9e4e31a1c -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/rawhide.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive file=/home/rawhide.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive if=none,id=drive-ide0-0-0,readonly=on -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev user,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:fc:11:43,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/rawhide.org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel1,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0 -device usb-tablet,id=input0 -spice ipv4,addr=0.0.0.0,port=5900,disable-ticketing,image-compression=lz,seamless-migration=on,streaming-video=filter -device virtio-vga,bus=pci.0,addr=0x2 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x8 -msg timestamp=on Shutdown stops again. (gdb) thread apply all bt full Thread 5 (Thread 0x7fab8f1ff700 (LWP 3152)): #0 0x00007fac23b7d32d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007fac27913a46 in g_main_context_iterate (priority=, n_fds=2, fds=0x5643798d6f00, timeout=, context=0x5643785d7760) at gmain.c:4135 poll_func = 0x7fac27922330 max_priority = 2147483647 timeout = 2147483647 some_ready = nfds = 2 allocated_nfds = 4 fds = 0x5643798d6f00 #2 0x00007fac27913a46 in g_main_context_iterate (context=0x5643785d7760, block=block@entry=1, dispatch=dispatch@entry=1, self=) at gmain.c:3835 max_priority = 2147483647 timeout = 2147483647 some_ready = nfds = 2 allocated_nfds = 4 fds = 0x5643798d6f00 #3 0x00007fac27913dd2 in g_main_loop_run (loop=0x564378645560) at gmain.c:4034 __func__ = "g_main_loop_run" #4 0x00007fac25820e70 in red_worker_main (arg=) at red-worker.c:1570 worker = __FUNCTION__ = "red_worker_main" loop = 0x564378645560 #5 0x00007fac23e4f5ca in start_thread (arg=0x7fab8f1ff700) at pthread_create.c:333 __res = pd = 0x7fab8f1ff700 now = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140374817371904, 1634185351380305518, 140727220814255, 4096, 140374817371904, 140374817372608, -1586721908543748498, -1588208112698816914}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = pagesize_m1 = sp = freesize = #6 0x00007fac23b88ead in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 4 (Thread 0x7fac10d2c700 (LWP 3150)): #0 0x00007fac23e54bd0 in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x0000564376e71d09 in qemu_cond_wait (cond=, mutex=) at /usr/src/debug/qemu-2.6.0/util/qemu-thread-posix.c:123 err = __func__ = "qemu_cond_wait" #2 0x0000564376b762df in qemu_kvm_cpu_thread_fn (arg=) at /usr/src/debug/qemu-2.6.0/cpus.c:1030 cpu = r = #3 0x00007fac23e4f5ca in start_thread (arg=0x7fac10d2c700) at pthread_create.c:333 __res = pd = 0x7fac10d2c700 now = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140376993351424, 1634185351380305518, 140727220813631, 4096, 140376993351424, 140376993352128, -1588104572869835154, -1588208112698816914}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = pagesize_m1 = sp = freesize = #4 0x00007fac23b88ead in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 3 (Thread 0x7fac1152d700 (LWP 3149)): #0 0x00007fac23e54bd0 in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x0000564376e71d09 in qemu_cond_wait (cond=, mutex=) at /usr/src/debug/qemu-2.6.0/util/qemu-thread-posix.c:123 err = __func__ = "qemu_cond_wait" #2 0x0000564376b762df in qemu_kvm_cpu_thread_fn (arg=) at /usr/src/debug/qemu-2.6.0/cpus.c:1030 cpu = r = #3 0x00007fac23e4f5ca in start_thread (arg=0x7fac1152d700) at pthread_create.c:333 __res = pd = 0x7fac1152d700 now = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140377001744128, 1634185351380305518, 140727220813631, 4096, 140377001744128, 140377001744832, -1588107869794105746, -1588208112698816914}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = pagesize_m1 = sp = freesize = #4 0x00007fac23b88ead in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 2 (Thread 0x7fac13b45700 (LWP 3147)): #0 0x00007fac23b82ff9 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38 #1 0x0000564376e72018 in qemu_event_wait (val=, ev=) at /usr/src/debug/qemu-2.6.0/util/qemu-thread-posix.c:292 value = #2 0x0000564376e72018 in qemu_event_wait (ev=ev@entry=0x56437786f264 ) at /usr/src/debug/qemu-2.6.0/util/qemu-thread-posix.c:399 value = #3 0x0000564376e8018e in call_rcu_thread (opaque=) at /usr/src/debug/qemu-2.6.0/util/rcu.c:250 tries = 0 n = node = #4 0x00007fac23e4f5ca in start_thread (arg=0x7fac13b45700) at pthread_create.c:333 __res = pd = 0x7fac13b45700 now = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140377041688320, 1634185351380305518, 140727220814879, 4096, 140377041688320, 140377041689024, -1588102144602700178, -1588208112698816914}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = pagesize_m1 = sp = freesize = #5 0x00007fac23b88ead in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Thread 1 (Thread 0x7fac4116af80 (LWP 3145)): #0 0x00007fac23b7d3f1 in __GI_ppoll (fds=0x56437863c000, nfds=27, timeout=, timeout@entry=0x7ffd9c01c3f0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:50 resultvar = 18446744073709551102 sc_cancel_oldtype = 0 tval = {tv_sec = 0, tv_nsec = 4479136} #1 0x0000564376ddfaa9 in qemu_poll_ns (__ss=0x0, __timeout=0x7ffd9c01c3f0, __nfds=, __fds=) at /usr/include/bits/poll2.h:77 ts = {tv_sec = 0, tv_nsec = 29561047} Python Exception That operation is not available on integers of more than 8 bytes.: #2 0x0000564376ddfaa9 in qemu_poll_ns (fds=, nfds=, timeout=timeout@entry=29561047) at /usr/src/debug/qemu-2.6.0/qemu-timer.c:325 ts = {tv_sec = 0, tv_nsec = 29561047} Python Exception That operation is not available on integers of more than 8 bytes.: #3 0x0000564376ddf4ca in main_loop_wait (timeout=29561047) at /usr/src/debug/qemu-2.6.0/main-loop.c:252 ret = spin_counter = 0 spin_counter = 0 notified = false timeout = 499 timeout_ns = #4 0x0000564376ddf4ca in main_loop_wait (nonblocking=) at /usr/src/debug/qemu-2.6.0/main-loop.c:506 timeout = 499 timeout_ns = #5 0x0000564376b42e2d in main () at /usr/src/debug/qemu-2.6.0/vl.c:1934 last_io = 0 i = snapshot = linux_boot = initrd_filename = kernel_filename = kernel_cmdline = boot_order = 0x564376e9aec0 "cad" boot_once = 0x0 ds = cyls = heads = secs = translation = hda_opts = opts = machine_opts = icount_opts = olist = optind = 87 optarg = 0x7ffd9c01f50d "timestamp=on" loadvm = cpu_model = vga_model = qtest_chrdev = qtest_log = pid_file = incoming = defconfig = userconfig = log_mask = log_file = trace_file = maxram_size = ram_slots = vmstate_dump_file = main_loop_err = 0x0 err = 0x0 __func__ = "main" #6 0x0000564376b42e2d in main (argc=, argv=, envp=) at /usr/src/debug/qemu-2.6.0/vl.c:4656 i = snapshot = linux_boot = initrd_filename = kernel_filename = kernel_cmdline = boot_order = 0x564376e9aec0 "cad" boot_once = 0x0 ds = cyls = heads = secs = translation = hda_opts = opts = machine_opts = icount_opts = olist = optind = 87 optarg = 0x7ffd9c01f50d "timestamp=on" loadvm = cpu_model = vga_model = qtest_chrdev = qtest_log = pid_file = incoming = defconfig = userconfig = log_mask = log_file = trace_file = maxram_size = ram_slots = vmstate_dump_file = main_loop_err = 0x0 err = 0x0 __func__ = "main" Can you still reproduce this problem with the latest version of QEMU? [Expired for QEMU because there has been no activity for 60 days.]