Thread (107 messages) flat view 107 messages, 10 authors, 1d ago

Re: [PATCH v10 06/41] KVM: Provide generic interface for checking memory private/shared status

From: Binbin Wu <hidden>
Date: 2026-08-12 05:34:06
Also in: kvm, linux-coco, linux-doc, linux-kselftest, linux-mm, lkml

On 8/8/2026 5:52 AM, Ackerley Tng via B4 Relay wrote:
From: Sean Christopherson <seanjc@google.com>

Introduce a generic kvm_mem_is_private() interface using a static call to
determine if a GFN is private. This allows the implementation for checking
a GFN's private/shared status to be set at runtime.

In preparation for choosing implementations between a guest_memfd lookup
and the existing VM attribute lookup, rename the existing
VM-attribute-based check to kvm_vm_mem_is_private to emphasize that it
Nit:
kvm_vm_mem_is_private -> kvm_vm_mem_is_private()
looks up VM attributes.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Xiaoyao Li <redacted>
Reviewed-by: Fuad Tabba <redacted>
Tested-by: Shivank Garg <redacted>
Signed-off-by: Ackerley Tng <redacted>
Reviewed-by: Binbin Wu <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help