> From: Dexuan Cui <de...@microsoft.com> > 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 <kirill.shute...@linux.intel.com> > Signed-off-by: Kirill A. Shutemov <kirill.shute...@linux.intel.com> > Reviewed-by: Michael Kelley <mikel...@microsoft.com> > Reviewed-by: Kuppuswamy Sathyanarayanan > <sathyanarayanan.kuppusw...@linux.intel.com> > Reviewed-by: Rick Edgecombe <rick.p.edgeco...@intel.com> > Reviewed-by: Dave Hansen <dave.han...@linux.intel.com> > Acked-by: Kai Huang <kai.hu...@intel.com> > Cc: sta...@vger.kernel.org # 6.6+ > Signed-off-by: Dexuan Cui <de...@microsoft.com> > --- > > This is basically a repost of the second patch of the 2023 patchset: > https://lwn.net/ml/linux-kernel/20230811214826.9609-3-de...@microsoft.com/ > > 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.