All of lore.kernel.org
 help / color / mirror / Atom feed
* Memory clearing in swiotlb_update_mem_attributes()
@ 2022-01-04 22:49 Kirill A. Shutemov
  2022-01-05 14:06 ` Tom Lendacky via iommu
  0 siblings, 1 reply; 5+ messages in thread
From: Kirill A. Shutemov @ 2022-01-04 22:49 UTC (permalink / raw)
  To: Tom Lendacky; +Cc: Christoph Hellwig, iommu

Hi Tom,

For larger TDX VM, memset() after set_memory_decrypted() in
swiotlb_update_mem_attributes() takes substantial portion of boot time.

It makes me wounder why do we need it there? Malicious VMM can mess with
decrypted/shared buffer at any point and for normal use it will be
populated with real data anyway.

Can we drop it?

-- 
 Kirill A. Shutemov
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-10 15:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 22:49 Memory clearing in swiotlb_update_mem_attributes() Kirill A. Shutemov
2022-01-05 14:06 ` Tom Lendacky via iommu
2022-01-05 14:12   ` Christoph Hellwig
2022-01-05 15:58     ` Kirill A. Shutemov
2022-01-10 15:58   ` Tom Lendacky via iommu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.