[PATCH 01/34] KVM: Tweak kvm_hva_range and hva_handler_t to allow reusing for gfn ranges

Huang, Kai kai.huang at intel.com
Mon Nov 6 01:28:19 PST 2023


On Sun, 2023-11-05 at 17:30 +0100, Paolo Bonzini wrote:
> From: Sean Christopherson <seanjc at google.com>
> 
> Rework and rename "struct kvm_hva_range" into "kvm_mmu_notifier_range" so
> that the structure can be used to handle notifications that operate on gfn
> context, i.e. that aren't tied to a host virtual address.  Rename the
> handler typedef too (arguably it should always have been gfn_handler_t).
> 
> Practically speaking, this is a nop for 64-bit kernels as the only
> meaningful change is to store start+end as u64s instead of unsigned longs.
> 
> Reviewed-by: Paolo Bonzini <pbonzini at redhat.com>
> Reviewed-by: Xiaoyao Li <xiaoyao.li at intel.com>
> Signed-off-by: Sean Christopherson <seanjc at google.com>
> Reviewed-by: Fuad Tabba <tabba at google.com>
> Tested-by: Fuad Tabba <tabba at google.com>
> Message-Id: <20231027182217.3615211-2-seanjc at google.com>
> Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
> 

Reviewed-by: Kai Huang <kai.huang at intel.com>



More information about the linux-arm-kernel mailing list