diff options
| author | Lan Tianyu <[email protected]> | 2019-02-25 14:31:14 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-02-28 10:58:29 +0000 |
| commit | 9cd05ad2910b55238e3c720c99ad896dc538301b (patch) | |
| tree | d30a371d6e7e33b99e2deef018a4a1b3f39d95d6 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | x86/uaccess: Don't leak the AC flag into __put_user() value evaluation (diff) | |
| download | kernel-9cd05ad2910b55238e3c720c99ad896dc538301b.tar.gz kernel-9cd05ad2910b55238e3c720c99ad896dc538301b.zip | |
x86/hyper-v: Fix definition of HV_MAX_FLUSH_REP_COUNT
The max flush rep count of HvFlushGuestPhysicalAddressList hypercall is
equal with how many entries of union hv_gpa_page_range can be populated
into the input parameter page.
The code lacks parenthesis around PAGE_SIZE - 2 * sizeof(u64) which results
in bogus computations. Add them.
Fixes: cc4edae4b924 ("x86/hyper-v: Add HvFlushGuestAddressList hypercall support")
Signed-off-by: Lan Tianyu <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
