aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2020-07-02 19:35:29 -0700
committerPaolo Bonzini <[email protected]>2020-07-09 13:29:38 -0400
commit53a3f4877152fe1c1d6c499a49bf573b60f5dc41 (patch)
tree31d66894cbe587c173a9755e6bcc522c0242439b /tools/perf/scripts/python/export-to-sqlite.py
parent284aa868688ac87d0eac7792b22b9c05f7a3cc45 (diff)
KVM: x86/mmu: Try to avoid crashing KVM if a MMU memory cache is empty
Attempt to allocate a new object instead of crashing KVM (and likely the kernel) if a memory cache is unexpectedly empty. Use GFP_ATOMIC for the allocation as the caches are used while holding mmu_lock. The immediate BUG_ON() makes the code unnecessarily explosive and led to confusing minimums being used in the past, e.g. allocating 4 objects where 1 would suffice. Reviewed-by: Ben Gardon <[email protected]> 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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions