]> www.infradead.org Git - nvme.git/commit
KVM: extend kvm_range_has_memory_attributes() to check subset of attributes
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Jul 2024 22:27:54 +0000 (18:27 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Jul 2024 18:46:15 +0000 (14:46 -0400)
commit4b5f67120a88c713b82907d55a767693382e9e9d
tree66ccc638b7d2b86d86580eb501769beaa65ea984
parente300614f10bd2f33252c8ba40b34d6c3fbf95d72
KVM: extend kvm_range_has_memory_attributes() to check subset of attributes

While currently there is no other attribute than KVM_MEMORY_ATTRIBUTE_PRIVATE,
KVM code such as kvm_mem_is_private() is written to expect their existence.
Allow using kvm_range_has_memory_attributes() as a multi-page version of
kvm_mem_is_private(), without it breaking later when more attributes are
introduced.

Reviewed-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c