[PATCH] drm/vmwgfx: Fix guests running with TDX/SEV

Kirill A. Shutemov kirill.shutemov at linux.intel.com
Thu Jun 19 05:52:18 UTC 2025


On Wed, Jun 18, 2025 at 03:29:26PM -0400, Zack Rusin wrote:
> From: Marko Kiiskila <marko.kiiskila at broadcom.com>
> 
> Commit 81256a50aa0f ("x86/mm: Make memremap(MEMREMAP_WB) map memory as
> encrypted by default") changed the default behavior of
> memremap(MEMREMAP_WB) and started mapping memory as encrypted.
> The driver requires the fifo memory to be decrypted to communicate with
> the host but was relaying on the old default behavior of
> memremap(MEMREMAP_WB) and thus broke.
> 
> Fix it by explicitly specifying the desired behavior and passing
> MEMREMAP_DEC to memremap.
> 
> Fixes: 81256a50aa0f ("x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default")
> Signed-off-by: Marko Kiiskila <marko.kiiskila at broadcom.com>
> Signed-off-by: Zack Rusin <zack.rusin at broadcom.com>
> Cc: Kirill A. Shutemov <kirill.shutemov at linux.intel.com>
> Cc: Ingo Molnar <mingo at kernel.org>
> Cc: Andrew Morton <akpm at linux-foundation.org>
> Cc: Dave Hansen <dave.hansen at linux.intel.com>
> Cc: Linus Torvalds <torvalds at linux-foundation.org>
> Cc: Peter Zijlstra <peterz at infradead.org>
> Cc: linux-mm at kvack.org
> Cc: linux-kernel at vger.kernel.org

Acked-by: Kirill A. Shutemov <kirill.shutemov at linux.intel.com>

-- 
  Kiryl Shutsemau / Kirill A. Shutemov


More information about the dri-devel mailing list