Re: [PATCH 1/3] KVM: split CONFIG_KVM_PRIVATE_MEMATTR_VM out of KVM_VM_MEMORY_ATTRIBUTES

From: Ackerley Tng

Date: Wed Oct 21 2026 - 08:49:16 EST


Paolo Bonzini <pbonzini@xxxxxxxxxx> writes:

> With Linux 7.4 the "private" memory attribute was moved from the VM
> to the individual guest_memfd file descriptor. The old semantics are
> available for backwards compatibility via CONFIG_KVM_VM_MEMORY_ATTRIBUTES.
>
> However, this ties support for VM memory attributes entirely to
> a backwards compatibility symbol, which is a problem when adding
> VM memory attributes other than PRIVATE. Thus, make
> CONFIG_KVM_VM_MEMORY_ATTRIBUTES the equivalent of the old
> CONFIG_KVM_GENERIC_MEMORY_ATTRIBUTES, and use a more descriptive name
> for the private memory attribute.

I see this fits into your other work on adding other VM attributes. I
thought the plan was to do something like this when the other VM
attributes get added back.

> Do this now, instead of waiting
> for more attributes to come, before distros start adjusting
> their build configuration.

This is a good point though.

Reviewed-by: Ackerley Tng <ackerleytng@xxxxxxxxxx>

>
> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
>
> [...snip...]
>