Skip to content

virt: vmgenid: remap memory as decrypted - #30

Merged
rbradford merged 1 commit into
ch-7.2.8from
202610/sevsnp-vmgenid
Oct 9, 2026
Merged

rbradford merged 1 commit into
ch-7.2.8from
202610/sevsnp-vmgenid

Conversation

@rbradford

Copy link
Copy Markdown
Member

It was found that AWS SEV-SNP enabled instances are not able to boot with commit 81256a5 ("x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default") applied and the reason seems to be the vmgenid device which requires unencrypted writeable memory.

A similar problem was previously fixed in DRM with commit 7dfede7 ("drm/vmwgfx: Fix guests running with TDX/SEV").

Note, trusting vmgenid device in a Confidential VM is questionable: the malicious host may intentionally avoid notifying the guest when a copy is created.

Fixes: 81256a5 ("x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default")

Cc: stable@vger.kernel.org # 6.15+

@rbradford
rbradford force-pushed the 202610/sevsnp-vmgenid branch from 9a3a9fd to 7cffdb0 Compare October 9, 2026 10:35
It was found that AWS SEV-SNP enabled instances are not able to boot with
commit 81256a5 ("x86/mm: Make memremap(MEMREMAP_WB) map memory as
encrypted by default") applied and the reason seems to be the vmgenid
device which requires unencrypted writeable memory.

A similar problem was previously fixed in DRM with commit
7dfede7 ("drm/vmwgfx: Fix guests running with TDX/SEV").

Note, trusting vmgenid device in a Confidential VM is questionable: the
malicious host may intentionally avoid notifying the guest when a copy is
created.

Fixes: 81256a5 ("x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: stable@vger.kernel.org # 6.15+
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
(cherry picked from commit 1b48c13)
@rbradford
rbradford force-pushed the 202610/sevsnp-vmgenid branch from 7cffdb0 to 82d6767 Compare October 9, 2026 11:05
@rbradford
rbradford merged commit 639d088 into ch-7.2.8 Oct 9, 2026
1 check passed
@rbradford
rbradford deleted the 202610/sevsnp-vmgenid branch October 9, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants