diff options
| author | Sean Christopherson <[email protected]> | 2020-02-18 13:07:16 -0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-03-16 17:57:14 +0100 |
| commit | 13ea525517088b20399aeb410d9fc567741ac27f (patch) | |
| tree | 64b7cf7406e926ca9fd2b45b48e972e953068275 /tools/perf/scripts/python/syscall-counts.py | |
| parent | edd4fa37baa6ee8e44dc65523b27bd6fe44c94de (diff) | |
KVM: Reinstall old memslots if arch preparation fails
Reinstall the old memslots if preparing the new memory region fails
after invalidating a to-be-{re}moved memslot.
Remove the superfluous 'old_memslots' variable so that it's somewhat
clear that the error handling path needs to free the unused memslots,
not simply the 'old' memslots.
Fixes: bc6678a33d9b9 ("KVM: introduce kvm->srcu and convert kvm_set_memory_region to SRCU update")
Reviewed-by: Christoffer Dall <[email protected]>
Reviewed-by: Peter Xu <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions