diff options
author | Vitaly Kuznetsov <[email protected]> | 2017-10-06 17:48:54 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-10-10 12:53:00 +0200 |
commit | a3b7424392924e778b608e30ee321f7b10cc94b8 (patch) | |
tree | 91d209fb697122bffcffb9225a1b97a5b6036acf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d4a2d031dd42f9594107d317e2a9a0c6d73ad46b (diff) |
x86/hyperv: Clear vCPU banks between calls to avoid flushing unneeded vCPUs
hv_flush_pcpu_ex structures are not cleared between calls for performance
reasons (they're variable size up to PAGE_SIZE each) but we must clear
hv_vp_set.bank_contents part of it to avoid flushing unneeded vCPUs. The
rest of the structure is formed correctly.
To do the clearing in an efficient way stash the maximum possible vCPU
number (this may differ from Linux CPU id).
Reported-by: Jork Loeser <[email protected]>
Signed-off-by: Vitaly Kuznetsov <[email protected]>
Cc: Dexuan Cui <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Cc: K. Y. Srinivasan <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions