diff options
| author | Kai Huang <[email protected]> | 2021-06-15 12:57:09 +1200 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-06-17 14:26:45 -0400 |
| commit | 57a3e96d6d17ae5ac9861ef34af024a627f1c3bb (patch) | |
| tree | 2e53f1b91cd9af44fafebaa3915cbc3615f4b519 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 2735886c9ef115fc7b40d27bfe73605c38e9d56b (diff) | |
KVM: x86/mmu: Fix return value in tdp_mmu_map_handle_target_level()
Currently tdp_mmu_map_handle_target_level() returns 0, which is
RET_PF_RETRY, when page fault is actually fixed. This makes
kvm_tdp_mmu_map() also return RET_PF_RETRY in this case, instead of
RET_PF_FIXED. Fix by initializing ret to RET_PF_FIXED.
Note that kvm_mmu_page_fault() resumes guest on both RET_PF_RETRY and
RET_PF_FIXED, which means in practice returning the two won't make
difference, so this fix alone won't be necessary for stable tree.
Fixes: bb18842e2111 ("kvm: x86/mmu: Add TDP MMU PF handler")
Reviewed-by: Sean Christopherson <[email protected]>
Reviewed-by: Ben Gardon <[email protected]>
Signed-off-by: Kai Huang <[email protected]>
Message-Id: <f9e8956223a586cd28c090879a8ff40f5eb6d609.1623717884.git.kai.huang@intel.com>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions