Re: [RFC PATCH 20/30] vfio/pci: Do TSM Unbind before zapping bars

2025-06-02 Thread Xu Yilun
On Mon, Jun 02, 2025 at 07:30:15PM +0530, Aneesh Kumar K.V wrote: > Xu Yilun writes: > > > When device is TSM Bound, some of its MMIO regions are controlled by > > secure firmware. E.g. TDX Connect would require these MMIO regions > > mappeed in S-EPT and never unmapped until device Unbound. Zapp

Re: [RFC PATCH 20/30] vfio/pci: Do TSM Unbind before zapping bars

2025-06-02 Thread Xu Yilun
On Mon, Jun 02, 2025 at 10:50:11AM +0530, Aneesh Kumar K.V wrote: > Xu Yilun writes: > > > When device is TSM Bound, some of its MMIO regions are controlled by > > secure firmware. E.g. TDX Connect would require these MMIO regions > > mappeed in S-EPT and never unmapped until device Unbound. Zapp

Re: [RFC PATCH 20/30] vfio/pci: Do TSM Unbind before zapping bars

2025-06-02 Thread Aneesh Kumar K . V
Xu Yilun writes: > When device is TSM Bound, some of its MMIO regions are controlled by > secure firmware. E.g. TDX Connect would require these MMIO regions > mappeed in S-EPT and never unmapped until device Unbound. Zapping bars > irrespective of TSM Bound state may cause unexpected secure firmw

Re: [RFC PATCH 20/30] vfio/pci: Do TSM Unbind before zapping bars

2025-06-01 Thread Aneesh Kumar K . V
Xu Yilun writes: > When device is TSM Bound, some of its MMIO regions are controlled by > secure firmware. E.g. TDX Connect would require these MMIO regions > mappeed in S-EPT and never unmapped until device Unbound. Zapping bars > irrespective of TSM Bound state may cause unexpected secure firmw

[RFC PATCH 20/30] vfio/pci: Do TSM Unbind before zapping bars

2025-05-28 Thread Xu Yilun
When device is TSM Bound, some of its MMIO regions are controlled by secure firmware. E.g. TDX Connect would require these MMIO regions mappeed in S-EPT and never unmapped until device Unbound. Zapping bars irrespective of TSM Bound state may cause unexpected secure firmware errors. It is always sa