summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChao Peng <chao.p.peng@linux.intel.com>2023-10-27 11:21:45 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2023-11-13 05:28:53 -0500
commit8569992d64b8f750e34b7858eac5d7daaf0f80fd (patch)
treed1a199d1f7f70e9cdf08e93b9a151113be35a1e8 /tools
parentc0db19232c1ed6bd7fcb825c28b014c52732c19e (diff)
downloadlinux-stable-8569992d64b8f750e34b7858eac5d7daaf0f80fd.tar.gz
linux-stable-8569992d64b8f750e34b7858eac5d7daaf0f80fd.tar.bz2
linux-stable-8569992d64b8f750e34b7858eac5d7daaf0f80fd.zip
KVM: Use gfn instead of hva for mmu_notifier_retry
Currently in mmu_notifier invalidate path, hva range is recorded and then checked against by mmu_invalidate_retry_hva() in the page fault handling path. However, for the soon-to-be-introduced private memory, a page fault may not have a hva associated, checking gfn(gpa) makes more sense. For existing hva based shared memory, gfn is expected to also work. The only downside is when aliasing multiple gfns to a single hva, the current algorithm of checking multiple ranges could result in a much larger range being rejected. Such aliasing should be uncommon, so the impact is expected small. Suggested-by: Sean Christopherson <seanjc@google.com> Cc: Xu Yilun <yilun.xu@intel.com> Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com> Reviewed-by: Fuad Tabba <tabba@google.com> Tested-by: Fuad Tabba <tabba@google.com> [sean: convert vmx_set_apic_access_page_addr() to gfn-based API] Signed-off-by: Sean Christopherson <seanjc@google.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Xu Yilun <yilun.xu@linux.intel.com> Message-Id: <20231027182217.3615211-4-seanjc@google.com> Reviewed-by: Kai Huang <kai.huang@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions