diff options
author | Sean Christopherson <seanjc@google.com> | 2023-07-29 04:35:35 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-08-31 21:08:19 +0300 |
commit | 09c8726ffa4a8309af7653988694b6cae6abf723 (patch) | |
tree | 83ac59048cbc90eaedbc201f58be4b3f2f6ede7a /arch/x86/kvm/mmu/mmu.c | |
parent | f22b1e8500b449fabc33ca271cd8e91749fa63b4 (diff) | |
download | linux-09c8726ffa4a8309af7653988694b6cae6abf723.tar.xz |
drm/i915/gvt: Drop final dependencies on KVM internal details
Open code gpa_to_gfn() in kvmgt_page_track_write() and drop KVMGT's
dependency on kvm_host.h, i.e. include only kvm_page_track.h. KVMGT
assumes "gfn == gpa >> PAGE_SHIFT" all over the place, including a few
lines below in the same function with the same gpa, i.e. there's no
reason to use KVM's helper for this one case.
No functional change intended.
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
Link: https://lore.kernel.org/r/20230729013535.1070024-30-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu/mmu.c')
0 files changed, 0 insertions, 0 deletions