Re: [RFC PATCH 05/12] KVM: TDX: Drop superfluous page pinning in S-EPT management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2025-08-27 at 16:33 +0800, Yan Zhao wrote:
> On Tue, Aug 26, 2025 at 05:05:15PM -0700, Sean Christopherson wrote:
> > Don't explicitly pin pages when mapping pages into the S-EPT, guest_memfd
> > doesn't support page migration in any capacity, i.e. there are no migrate
> > callbacks because guest_memfd pages *can't* be migrated.  See the WARN in
> > kvm_gmem_migrate_folio().
> Hmm, we implemented exactly the same patch at [1], where we explained the
> potential problems of not holding page refcount, and the explored various
> approaches, and related considerations.
> 
> [1] https://lore.kernel.org/all/20250807094241.4523-1-yan.y.zhao@xxxxxxxxx/

Yea, so the outcome of the huge page related discussion was that we should look
at some sort of emergency page reclaim feature for the TDX module to use in the
case of bugs. But in the meantime to move forward without it, using a solution
like in this patch.




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux