Re: [PATCH v10 19/41] KVM: Move KVM_VM_MEMORY_ATTRIBUTES config definition to x86
"David Hildenbrand (Arm)" <[email protected]>
| Newsgroups | org.kernel.vger.linux-kselftest,dev.linux.lists.linux-coco,org.kernel.vger.kvm,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-trace-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
On 8/7/26 23:52, Ackerley Tng via B4 Relay wrote: > From: Sean Christopherson <[email protected]> > > Bury KVM_VM_MEMORY_ATTRIBUTES in x86 to discourage other architectures > from adding support for per-VM memory attributes, because tracking private > vs. shared memory on a per-VM basis is now deprecated in favor of tracking > on a per-guest_memfd basis, and while RWX memory attributes are on the > horizon, they too are expected to be x86-only. > > This will also allow modifying KVM_VM_MEMORY_ATTRIBUTES to be > user-selectable (in x86) without creating weirdness in KVM's Kconfigs. > Now that guest_memfd supports in-place conversions, it's entirely possible > to run x86 CoCo VMs without support for KVM_VM_MEMORY_ATTRIBUTES. > > Leave the code itself in common KVM so that it's trivial to undo this > change if new per-VM attributes do come along. > > Signed-off-by: Sean Christopherson <[email protected]> > Reviewed-by: Fuad Tabba <[email protected]> > Reviewed-by: Xiaoyao Li <[email protected]> > Reviewed-by: Binbin Wu <[email protected]> > Tested-by: Shivank Garg <[email protected]> > Signed-off-by: Ackerley Tng <[email protected]> > --- Reviewed-by: David Hildenbrand (Arm) <[email protected]> -- Cheers, David