diff options
| author | Sean Christopherson <[email protected]> | 2021-06-15 09:29:05 -0700 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-06-17 13:10:18 -0400 |
| commit | ade74e1433f32e3fb422e3700d5bab34c57f4f47 (patch) | |
| tree | fb2e7e65696e9caf750343dff169838bba53a0f4 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | bca66dbcd28a41c669921ff7ca066f71e6f3e72e (diff) | |
KVM: x86/mmu: Grab nx_lpage_splits as an unsigned long before division
Snapshot kvm->stats.nx_lpage_splits into a local unsigned long to avoid
64-bit division on 32-bit kernels. Casting to an unsigned long is safe
because the maximum number of shadow pages, n_max_mmu_pages, is also an
unsigned long, i.e. KVM will start recycling shadow pages before the
number of splits can exceed a 32-bit value.
ERROR: modpost: "__udivdi3" [arch/x86/kvm/kvm.ko] undefined!
Fixes: 7ee093d4f3f5 ("KVM: switch per-VM stats to u64")
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions