[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 3/8] mm/memfd: Introduce MFD_INACCESSIBLE flag
From: |
Vishal Annapurve |
Subject: |
Re: [PATCH v6 3/8] mm/memfd: Introduce MFD_INACCESSIBLE flag |
Date: |
Tue, 31 May 2022 12:15:00 -0700 |
On Thu, May 19, 2022 at 8:41 AM Chao Peng <chao.p.peng@linux.intel.com> wrote:
>
> Introduce a new memfd_create() flag indicating the content of the
> created memfd is inaccessible from userspace through ordinary MMU
> access (e.g., read/write/mmap). However, the file content can be
> accessed via a different mechanism (e.g. KVM MMU) indirectly.
>
SEV, TDX, pkvm and software-only VMs seem to have usecases to set up
initial guest boot memory with the needed blobs.
TDX already supports a KVM IOCTL to transfer contents to private
memory using the TDX module but rest of the implementations will need
to invent
a way to do this.
Is there a plan to support a common implementation for either allowing
initial write access from userspace to private fd or adding a KVM
IOCTL to transfer contents to such a file,
as part of this series through future revisions?
Regards,
Vishal
- [PATCH v6 0/8] KVM: mm: fd-based approach for supporting KVM guest private memory, Chao Peng, 2022/05/19
- [PATCH v6 1/8] mm: Introduce memfile_notifier, Chao Peng, 2022/05/19
- [PATCH v6 2/8] mm/shmem: Support memfile_notifier, Chao Peng, 2022/05/19
- [PATCH v6 3/8] mm/memfd: Introduce MFD_INACCESSIBLE flag, Chao Peng, 2022/05/19
- Re: [PATCH v6 3/8] mm/memfd: Introduce MFD_INACCESSIBLE flag,
Vishal Annapurve <=
- [PATCH v6 4/8] KVM: Extend the memslot to support fd-based private memory, Chao Peng, 2022/05/19
- Re: [PATCH v6 4/8] KVM: Extend the memslot to support fd-based private memory, Andy Lutomirski, 2022/05/20
- Re: [PATCH v6 4/8] KVM: Extend the memslot to support fd-based private memory, Sean Christopherson, 2022/05/20
- Re: [PATCH v6 4/8] KVM: Extend the memslot to support fd-based private memory, Andy Lutomirski, 2022/05/22
- Re: [PATCH v6 4/8] KVM: Extend the memslot to support fd-based private memory, Chao Peng, 2022/05/23
- Re: [PATCH v6 4/8] KVM: Extend the memslot to support fd-based private memory, Sean Christopherson, 2022/05/23
- Re: [PATCH v6 4/8] KVM: Extend the memslot to support fd-based private memory, Chao Peng, 2022/05/30
[PATCH v6 5/8] KVM: Add KVM_EXIT_MEMORY_FAULT exit, Chao Peng, 2022/05/19
[PATCH v6 6/8] KVM: Handle page fault for private memory, Chao Peng, 2022/05/19
[PATCH v6 7/8] KVM: Enable and expose KVM_MEM_PRIVATE, Chao Peng, 2022/05/19