[PATCH v13 02/12] KVM: guest_memfd: Add macro to iterate over gmem_files for a mapping/inode
Garg, Shivank
shivankg at amd.com
Fri Oct 17 02:34:08 PDT 2025
On 10/16/2025 10:58 PM, Sean Christopherson wrote:
> Add a kvm_gmem_for_each_file() to make it more obvious that KVM is
> iterating over guest_memfd _files_, not guest_memfd instances, as could
> be assumed given the name "gmem_list".
>
> No functional change intended.
>
> Reviewed-by: Ackerley Tng <ackerleytng at google.com>
> Tested-by: Ackerley Tng <ackerleytng at google.com>
> Reviewed-by: Shivank Garg <shivankg at amd.com>
> Signed-off-by: Sean Christopherson <seanjc at google.com>
> ---
> .clang-format | 1 +
> virt/kvm/guest_memfd.c | 9 +++++----
> 2 files changed, 6 insertions(+), 4 deletions(-)
>
Tested-by: Shivank Garg <shivankg at amd.com>
More information about the linux-arm-kernel
mailing list