commit | c7ad657475ea3d09d096ed6cd5f6b63e6ef3b6ec | [log] [tgz] |
---|---|---|
author | Tony Luck <tony.luck@intel.com> | Mon Oct 26 08:05:48 2020 -0700 |
committer | Tony Luck <tony.luck@intel.com> | Mon Oct 26 08:05:48 2020 -0700 |
tree | e7296e51314697e0c45065c59247f4f50f983ac5 | |
parent | a4e0b6bd25871482e26b2e2eb8ff5a0e11d16134 [diff] |
vtop: Multiply by "pagesize" instead of hardcode shift by 12 When convering a page frame number to an address there is a hard-coded shift by 12 but the mask for the low order bits is computed based on the "pagesize" variable. Fix this inconsistency by swapping out the shift for a multiply. Reported-by: 葛士建 <geshijian@bytedance.com> Signed-off-by: Tony Luck <tony.luck@intel.com>