linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Vitaly Kuznetsov <vkuznets@redhat.com>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: Theodore Ts'o <tytso@mit.edu>, Ingo Molnar <mingo@kernel.org>,
	Kiryl Shutsemau <kas@kernel.org>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Pradipta Banerjee <prbanerj@redhat.com>,
	Frank Liang <xiliang@redhat.com>,
	Alexander Graf <graf@amazon.com>
Subject: Re: [PATCH] vmgenid: Remap memory as decrypted
Date: Mon, 22 Dec 2025 16:18:20 +0100	[thread overview]
Message-ID: <87jyye35qb.fsf@redhat.com> (raw)
In-Reply-To: <CAHmME9o1oJXjt4=5qqGDdBbiK75dvea_e=Z4ceStmk=Z5AYgjQ@mail.gmail.com>

"Jason A. Donenfeld" <Jason@zx2c4.com> writes:

> Hi Vitaly,
>
> On Mon, Dec 22, 2025 at 3:46 PM Vitaly Kuznetsov <vkuznets@redhat.com> wrote:
>> -       virt_addr = devm_memremap(&device->dev, phys_addr, VMGENID_SIZE, MEMREMAP_WB);
>> +       virt_addr = devm_memremap(&device->dev, phys_addr, VMGENID_SIZE,
>> +                                 MEMREMAP_WB | MEMREMAP_DEC);
>
> Thanks for this patch. I still need to do a bit of my own testing with
> it, but I've preliminarily applied it to the random.git tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git/commit/?id=9476583268980ce64ed75f124768fe3bff6fff4c
>
> Should this patch CC stable@, by the way?
>

I'm not sure how common the configuration (SEV-SNP/(TDX?) + vmgenid) is
but I guess AWS SEV-SNP config is significant enough to justify stable@
as all kernels 6.15+ don't boot there at all.

-- 
Vitaly



  reply	other threads:[~2025-12-22 15:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-22 14:46 Vitaly Kuznetsov
2025-12-22 14:53 ` Jason A. Donenfeld
2025-12-22 15:18   ` Vitaly Kuznetsov [this message]
2025-12-22 15:19     ` Jason A. Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87jyye35qb.fsf@redhat.com \
    --to=vkuznets@redhat.com \
    --cc=Jason@zx2c4.com \
    --cc=graf@amazon.com \
    --cc=kas@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mingo@kernel.org \
    --cc=prbanerj@redhat.com \
    --cc=tytso@mit.edu \
    --cc=xiliang@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox