+AD4- -----Original Message----- +AD4- From: Li,Rongqing +AD4- Sent: Sunday, September 27, 2020 4:45 PM +AD4- To: Li,Rongqing +ADw-lirongqing+AEA-baidu.com+AD4AOw- kvm+AEA-vger.kernel.org+ADs- +AD4- x86+AEA-kernel.org+ADs- sean.j.christopherson+AEA-intel.com +AD4- Subject: +AFs-PATCH+AF0AWw-v3+AF0- KVM: x86/mmu: fix counting of rmap entries in +AD4- pte+AF8-list+AF8-add +AD4- +AD4- Fix an off-by-one style bug in pte+AF8-list+AF8-add() where it failed to account the last +AD4- full set of SPTEs, i.e. when desc-+AD4-sptes is full and desc-+AD4-more is NULL. +AD4- +AD4- Merge the two +ACI-PTE+AF8-LIST+AF8-EXT-1+ACI- checks as part of the fix to avoid an extra +AD4- comparison. +AD4- +AD4- Signed-off-by: Li RongQing +ADw-lirongqing+AEA-baidu.com+AD4- +AD4- Reviewed-by: Sean Christopherson +ADw-sean.j.christopherson+AEA-intel.com+AD4- Ping Thanks -Li