qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Bug 1924914] [NEW] Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver)
@ 2021-04-18 13:33 Diego Viola
  2021-04-18 13:40 ` [Bug 1924914] " Diego Viola
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Diego Viola @ 2021-04-18 13:33 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

System is Arch Linux (guest and host OS).

Problem:

Basically, when using sway on a guest and running certain applications
via Xwayland (on the guest), the GUI will freeze and won't be usable
anymore, I can still ssh to the guest and run commands.

This is the command I use to run my guest:

qemu-system-x86_64 -enable-kvm -cdrom
~/Downloads/linux/archlinux/archlinux-2021.04.01-x86_64.iso -m 4G -vga
virtio -nic user,hostfwd=tcp::10022-:22

This doesn't happen when I use X with i3-wm.

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "dmesg of the guest VM when the crash occurs"
   https://bugs.launchpad.net/bugs/1924914/+attachment/5489500/+files/dmesg-sway-qemu-crash

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1924914

Title:
  Running sway in a QEMU VM results in a GPU hang of the guest (virtio-
  gpu driver)

Status in QEMU:
  New

Bug description:
  System is Arch Linux (guest and host OS).

  Problem:

  Basically, when using sway on a guest and running certain applications
  via Xwayland (on the guest), the GUI will freeze and won't be usable
  anymore, I can still ssh to the guest and run commands.

  This is the command I use to run my guest:

  qemu-system-x86_64 -enable-kvm -cdrom
  ~/Downloads/linux/archlinux/archlinux-2021.04.01-x86_64.iso -m 4G -vga
  virtio -nic user,hostfwd=tcp::10022-:22

  This doesn't happen when I use X with i3-wm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1924914/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1924914] Re: Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver)
  2021-04-18 13:33 [Bug 1924914] [NEW] Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver) Diego Viola
@ 2021-04-18 13:40 ` Diego Viola
  2021-04-19 15:16 ` Diego Viola
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Diego Viola @ 2021-04-18 13:40 UTC (permalink / raw)
  To: qemu-devel

I can't get it to happen with -vga qxl.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1924914

Title:
  Running sway in a QEMU VM results in a GPU hang of the guest (virtio-
  gpu driver)

Status in QEMU:
  New

Bug description:
  System is Arch Linux (guest and host OS).

  Problem:

  Basically, when using sway on a guest and running certain applications
  via Xwayland (on the guest), the GUI will freeze and won't be usable
  anymore, I can still ssh to the guest and run commands.

  This is the command I use to run my guest:

  qemu-system-x86_64 -enable-kvm -cdrom
  ~/Downloads/linux/archlinux/archlinux-2021.04.01-x86_64.iso -m 4G -vga
  virtio -nic user,hostfwd=tcp::10022-:22

  This doesn't happen when I use X with i3-wm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1924914/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1924914] Re: Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver)
  2021-04-18 13:33 [Bug 1924914] [NEW] Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver) Diego Viola
  2021-04-18 13:40 ` [Bug 1924914] " Diego Viola
@ 2021-04-19 15:16 ` Diego Viola
  2021-04-19 15:54 ` Diego Viola
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Diego Viola @ 2021-04-19 15:16 UTC (permalink / raw)
  To: qemu-devel

I can't reproduce it with weston.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1924914

Title:
  Running sway in a QEMU VM results in a GPU hang of the guest (virtio-
  gpu driver)

Status in QEMU:
  New

Bug description:
  System is Arch Linux (guest and host OS).

  Problem:

  Basically, when using sway on a guest and running certain applications
  via Xwayland (on the guest), the GUI will freeze and won't be usable
  anymore, I can still ssh to the guest and run commands.

  This is the command I use to run my guest:

  qemu-system-x86_64 -enable-kvm -cdrom
  ~/Downloads/linux/archlinux/archlinux-2021.04.01-x86_64.iso -m 4G -vga
  virtio -nic user,hostfwd=tcp::10022-:22

  This doesn't happen when I use X with i3-wm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1924914/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1924914] Re: Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver)
  2021-04-18 13:33 [Bug 1924914] [NEW] Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver) Diego Viola
  2021-04-18 13:40 ` [Bug 1924914] " Diego Viola
  2021-04-19 15:16 ` Diego Viola
@ 2021-04-19 15:54 ` Diego Viola
  2021-04-19 17:21 ` Diego Viola
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Diego Viola @ 2021-04-19 15:54 UTC (permalink / raw)
  To: qemu-devel

-cpu host -smp 4 makes the hang/freeze go away.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1924914

Title:
  Running sway in a QEMU VM results in a GPU hang of the guest (virtio-
  gpu driver)

Status in QEMU:
  New

Bug description:
  System is Arch Linux (guest and host OS).

  Problem:

  Basically, when using sway on a guest and running certain applications
  via Xwayland (on the guest), the GUI will freeze and won't be usable
  anymore, I can still ssh to the guest and run commands.

  This is the command I use to run my guest:

  qemu-system-x86_64 -enable-kvm -cdrom
  ~/Downloads/linux/archlinux/archlinux-2021.04.01-x86_64.iso -m 4G -vga
  virtio -nic user,hostfwd=tcp::10022-:22

  This doesn't happen when I use X with i3-wm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1924914/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1924914] Re: Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver)
  2021-04-18 13:33 [Bug 1924914] [NEW] Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver) Diego Viola
                   ` (2 preceding siblings ...)
  2021-04-19 15:54 ` Diego Viola
@ 2021-04-19 17:21 ` Diego Viola
  2021-05-15 11:19 ` Thomas Huth
  2021-07-15  4:17 ` Launchpad Bug Tracker
  5 siblings, 0 replies; 7+ messages in thread
From: Diego Viola @ 2021-04-19 17:21 UTC (permalink / raw)
  To: qemu-devel

>From the dmesg above:

[  573.935889] Oops: 0000 [#1] PREEMPT SMP PTI
[  573.935892] CPU: 0 PID: 7 Comm: kworker/u2:0 Not tainted 5.11.11-arch1-1 #1
[  573.935896] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS ArchLinux 1.14.0-1 04/01/2014
[  573.935899] Workqueue: events_unbound commit_work [drm_kms_helper]
[  573.935949] RIP: 0010:dma_fence_wait_timeout+0x20/0x110
[  573.935953] Code: 5c 41 5d 41 5e 41 5f c3 66 90 0f 1f 44 00 00 41 54 55 53 48 83 ec 08 48 85 d2 0f 88 da 00 00 00 48 89 fd 89 f3 0f 1f 44 00 00 <48> 8b 45 08 0f b6 f3 48 89 ef 48 8b 40 28 48 85 c0 0f 84 ac 00 00
[  573.935956] RSP: 0018:ffffbbf100043db0 EFLAGS: 00010206
[  573.935958] RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000000000001
[  573.935959] RDX: 7fffffffffffffff RSI: 0000000000000001 RDI: 0000000000000000
[  573.935961] RBP: 0000000000000000 R08: 0000000000000001 R09: ffff90631e171bc0
[  573.935962] R10: 0000000000000001 R11: 0000000000000001 R12: ffff906408336000
[  573.935964] R13: ffff906380260cc0 R14: ffff906401700000 R15: 0000000000000005
[  573.935966] FS:  0000000000000000(0000) GS:ffff90643bc00000(0000) knlGS:0000000000000000
[  573.935967] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  573.935969] CR2: 0000000000000008 CR3: 000000011ed86000 CR4: 00000000000006f0
[  573.935973] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  573.935974] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  573.935976] Call Trace:
[  573.935983]  ? virtio_gpu_notify+0x46/0x60 [virtio_gpu]
[  573.935995]  virtio_gpu_cursor_plane_update+0x1c3/0x2a0 [virtio_gpu]
[  573.936005]  drm_atomic_helper_commit_planes+0xb7/0x220 [drm_kms_helper]
[  573.936024]  drm_atomic_helper_commit_tail+0x42/0x80 [drm_kms_helper]
[  573.936038]  commit_tail+0xce/0x130 [drm_kms_helper]
[  573.936050]  process_one_work+0x214/0x3e0
[  573.936054]  worker_thread+0x4d/0x3d0
[  573.936056]  ? rescuer_thread+0x3c0/0x3c0
[  573.936058]  kthread+0x133/0x150
[  573.936061]  ? __kthread_bind_mask+0x60/0x60
[  573.936064]  ret_from_fork+0x22/0x30
[  573.936072] Modules linked in: cfg80211 rfkill ghash_generic gf128mul cryptd gcm ccm algif_aead des_generic libdes cbc ecb algif_skcipher cmac md4 algif_hash af_alg ppdev pktcdvd parport_pc parport i2c_piix4 joydev mousedev mac_hid psmouse qemu_fw_cfg pcspkr pkcs8_key_parser speakup_soft speakup fuse bpf_preload ip_tables x_tables overlay squashfs loop isofs sr_mod cdrom ata_generic pata_acpi virtio_gpu virtio_dma_buf drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm intel_agp intel_gtt serio_raw e1000 virtio_pci ata_piix agpgart floppy
[  573.936161] CR2: 0000000000000008
[  573.936163] ---[ end trace 0f1e24b3ea0a35cd ]---
[  573.936165] RIP: 0010:dma_fence_wait_timeout+0x20/0x110

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1924914

Title:
  Running sway in a QEMU VM results in a GPU hang of the guest (virtio-
  gpu driver)

Status in QEMU:
  New

Bug description:
  System is Arch Linux (guest and host OS).

  Problem:

  Basically, when using sway on a guest and running certain applications
  via Xwayland (on the guest), the GUI will freeze and won't be usable
  anymore, I can still ssh to the guest and run commands.

  This is the command I use to run my guest:

  qemu-system-x86_64 -enable-kvm -cdrom
  ~/Downloads/linux/archlinux/archlinux-2021.04.01-x86_64.iso -m 4G -vga
  virtio -nic user,hostfwd=tcp::10022-:22

  This doesn't happen when I use X with i3-wm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1924914/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1924914] Re: Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver)
  2021-04-18 13:33 [Bug 1924914] [NEW] Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver) Diego Viola
                   ` (3 preceding siblings ...)
  2021-04-19 17:21 ` Diego Viola
@ 2021-05-15 11:19 ` Thomas Huth
  2021-07-15  4:17 ` Launchpad Bug Tracker
  5 siblings, 0 replies; 7+ messages in thread
From: Thomas Huth @ 2021-05-15 11:19 UTC (permalink / raw)
  To: qemu-devel

The QEMU project is currently moving its bug tracking to another system.
For this we need to know which bugs are still valid and which could be
closed already. Thus we are setting the bug state to "Incomplete" now.

If the bug has already been fixed in the latest upstream version of QEMU,
then please close this ticket as "Fix released".

If it is not fixed yet and you think that this bug report here is still
valid, then you have two options:

1) If you already have an account on gitlab.com, please open a new ticket
for this problem in our new tracker here:

    https://gitlab.com/qemu-project/qemu/-/issues

and then close this ticket here on Launchpad (or let it expire auto-
matically after 60 days). Please mention the URL of this bug ticket on
Launchpad in the new ticket on GitLab.

2) If you don't have an account on gitlab.com and don't intend to get
one, but still would like to keep this ticket opened, then please switch
the state back to "New" or "Confirmed" within the next 60 days (other-
wise it will get closed as "Expired"). We will then eventually migrate
the ticket automatically to the new system (but you won't be the reporter
of the bug in the new system and thus you won't get notified on changes
anymore).

Thank you and sorry for the inconvenience.


** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1924914

Title:
  Running sway in a QEMU VM results in a GPU hang of the guest (virtio-
  gpu driver)

Status in QEMU:
  Incomplete

Bug description:
  System is Arch Linux (guest and host OS).

  Problem:

  Basically, when using sway on a guest and running certain applications
  via Xwayland (on the guest), the GUI will freeze and won't be usable
  anymore, I can still ssh to the guest and run commands.

  This is the command I use to run my guest:

  qemu-system-x86_64 -enable-kvm -cdrom
  ~/Downloads/linux/archlinux/archlinux-2021.04.01-x86_64.iso -m 4G -vga
  virtio -nic user,hostfwd=tcp::10022-:22

  This doesn't happen when I use X with i3-wm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1924914/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1924914] Re: Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver)
  2021-04-18 13:33 [Bug 1924914] [NEW] Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver) Diego Viola
                   ` (4 preceding siblings ...)
  2021-05-15 11:19 ` Thomas Huth
@ 2021-07-15  4:17 ` Launchpad Bug Tracker
  5 siblings, 0 replies; 7+ messages in thread
From: Launchpad Bug Tracker @ 2021-07-15  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1924914

Title:
  Running sway in a QEMU VM results in a GPU hang of the guest (virtio-
  gpu driver)

Status in QEMU:
  Expired

Bug description:
  System is Arch Linux (guest and host OS).

  Problem:

  Basically, when using sway on a guest and running certain applications
  via Xwayland (on the guest), the GUI will freeze and won't be usable
  anymore, I can still ssh to the guest and run commands.

  This is the command I use to run my guest:

  qemu-system-x86_64 -enable-kvm -cdrom
  ~/Downloads/linux/archlinux/archlinux-2021.04.01-x86_64.iso -m 4G -vga
  virtio -nic user,hostfwd=tcp::10022-:22

  This doesn't happen when I use X with i3-wm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1924914/+subscriptions



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-15  4:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-18 13:33 [Bug 1924914] [NEW] Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver) Diego Viola
2021-04-18 13:40 ` [Bug 1924914] " Diego Viola
2021-04-19 15:16 ` Diego Viola
2021-04-19 15:54 ` Diego Viola
2021-04-19 17:21 ` Diego Viola
2021-05-15 11:19 ` Thomas Huth
2021-07-15  4:17 ` Launchpad Bug Tracker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).