> From: Dexuan Cui <[email protected]> > Sent: Monday, May 20, 2024 7:13 PM > [....] > When a TDX guest runs on Hyper-V, the hv_netvsc driver's > netvsc_init_buf() > allocates buffers using vzalloc(), and needs to share the buffers with the > host OS by calling set_memory_decrypted(), which is not working for > vmalloc() yet. Add the support by handling the pages one by one. > > Co-developed-by: Kirill A. Shutemov <[email protected]> > Signed-off-by: Kirill A. Shutemov <[email protected]> > Reviewed-by: Michael Kelley <[email protected]> > Reviewed-by: Kuppuswamy Sathyanarayanan > <[email protected]> > Reviewed-by: Rick Edgecombe <[email protected]> > Reviewed-by: Dave Hansen <[email protected]> > Acked-by: Kai Huang <[email protected]> > Cc: [email protected] # 6.6+ > Signed-off-by: Dexuan Cui <[email protected]> > --- > > This is basically a repost of the second patch of the 2023 patchset: > https://lwn.net/ml/linux-kernel/[email protected]/ > > The first patch of the patchset got merged into mainline, but unluckily the > second patch didn't, and I kind of lost track of it. Sorry. > > Changes since the previous patchset (please refer to the link above): > Added Rick's and Dave's Reviewed-by. > Added Kai's Acked-by. > Removeda the test "if (offset_in_page(start) != 0)" since we know the > 'start' is page-aligned: see __set_memory_enc_pgtable(). > > Please review. Thanks! > Dexuan
The patch still applies cleanly to 6.10-rc4. A gentle ping.
