Hi Dmitry, It turned out that attaching backing during restoring process was skipped due to obj->attach == true condition, which is the reason for the err messages you reported. I had tested my patch on slightly older virtio-gpu driver that didn't have this flag (was added by one of your commits that added detaching backing).
Then I added a line to set this false before attaching backing again for restoring and I see The display is now up when resuming but the whole kernel seems to hang afterwards. I am debugging it now. > Subject: Re: [RFC PATCH 0/2] Virtio-GPU suspend and resume > > On 5/13/25 22:23, Kim, Dongwon wrote: > > Hi Dmitry, > > > > Can you share some details about your test setup? > > How do I replicate the problem you saw? And is "suspend and resume" > working by default in your case? > > My testing setup: > > - QEMU staging tree > - Guest kernel 6.14.6 + your patches > - Using "-serial mon:stdio -device virtio-vga -display gtk" in QEMU cmdline > > I'm booting guest into VT and running "rtcwake -mmem -s5" from serial > console. On resume from suspend I see those driver error messages. > Without your patches there are no errors. > > After resume from suspend display not working in both cases with/without > your patches. > > -- > Best regards, > Dmitry