qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 03/66] HostMem: Add mechanism to opt in kvm guest memfd vi


From: David Hildenbrand
Subject: Re: [PATCH v4 03/66] HostMem: Add mechanism to opt in kvm guest memfd via MachineState
Date: Fri, 26 Jan 2024 14:58:30 +0100
User-agent: Mozilla Thunderbird

On 25.01.24 04:22, Xiaoyao Li wrote:
Add a new member "guest_memfd" to memory backends. When it's set
to true, it enables RAM_GUEST_MEMFD in ram_flags, thus private kvm
guest_memfd will be allocated during RAMBlock allocation.

Memory backend's @guest_memfd is wired with @require_guest_memfd
field of MachineState. It avoid looking up the machine in phymem.c.

MachineState::require_guest_memfd is supposed to be set by any VMs
that requires KVM guest memfd as private memory, e.g., TDX VM.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
---

Reviewed-by: David Hildenbrand <david@redhat.com>

--
Cheers,

David / dhildenb




reply via email to

[Prev in Thread] Current Thread [Next in Thread]