Re: [RFC QEMU PATCH v9 2/2] virtio-pci: implement No_Soft_Reset bit

2024-04-17 Thread Chen, Jiqian
On 2024/4/17 13:33, Yan Vugenfirer wrote: > On Wed, Apr 17, 2024 at 6:13 AM Chen, Jiqian wrote: >> >> On 2024/4/16 23:45, Igor Mammedov wrote: >>> On Tue, 16 Apr 2024 15:01:27 +0800 >>> Jiqian Chen wrote: >>> In current code, when guest does S3, virtio-gpu are reset due to the bit

Re: [RFC QEMU PATCH v9 2/2] virtio-pci: implement No_Soft_Reset bit

2024-04-16 Thread Yan Vugenfirer
On Wed, Apr 17, 2024 at 6:13 AM Chen, Jiqian wrote: > > On 2024/4/16 23:45, Igor Mammedov wrote: > > On Tue, 16 Apr 2024 15:01:27 +0800 > > Jiqian Chen wrote: > > > >> In current code, when guest does S3, virtio-gpu are reset due to the > >> bit No_Soft_Reset is not set. After resetting, the

Re: [RFC QEMU PATCH v9 2/2] virtio-pci: implement No_Soft_Reset bit

2024-04-16 Thread Chen, Jiqian
On 2024/4/16 23:45, Igor Mammedov wrote: > On Tue, 16 Apr 2024 15:01:27 +0800 > Jiqian Chen wrote: > >> In current code, when guest does S3, virtio-gpu are reset due to the >> bit No_Soft_Reset is not set. After resetting, the display resources >> of virtio-gpu are destroyed, then the display

Re: [RFC QEMU PATCH v9 2/2] virtio-pci: implement No_Soft_Reset bit

2024-04-16 Thread Igor Mammedov
On Tue, 16 Apr 2024 15:01:27 +0800 Jiqian Chen wrote: > In current code, when guest does S3, virtio-gpu are reset due to the > bit No_Soft_Reset is not set. After resetting, the display resources > of virtio-gpu are destroyed, then the display can't come back and only > show blank after

[RFC QEMU PATCH v9 2/2] virtio-pci: implement No_Soft_Reset bit

2024-04-16 Thread Jiqian Chen
In current code, when guest does S3, virtio-gpu are reset due to the bit No_Soft_Reset is not set. After resetting, the display resources of virtio-gpu are destroyed, then the display can't come back and only show blank after resuming. Implement No_Soft_Reset bit of PCI_PM_CTRL register, then