diff options
| author | 2020-09-27 16:44:57 +0800 | |
|---|---|---|
| committer | 2020-11-08 04:41:26 -0500 | |
| commit | c6c4f961cb879aed67b1343bdef2087c899fdaa9 (patch) | |
| tree | 02826adf146aa29c838d5873260848218e906fbc /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | Merge tag 'kvmarm-fixes-5.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD (diff) | |
| download | linux-dev-c6c4f961cb879aed67b1343bdef2087c899fdaa9.tar.xz linux-dev-c6c4f961cb879aed67b1343bdef2087c899fdaa9.zip | |
KVM: x86/mmu: fix counting of rmap entries in pte_list_add
Fix an off-by-one style bug in pte_list_add() where it failed to
account the last full set of SPTEs, i.e. when desc->sptes is full
and desc->more is NULL.
Merge the two "PTE_LIST_EXT-1" checks as part of the fix to avoid
an extra comparison.
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <1601196297-24104-1-git-send-email-lirongqing@baidu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
