aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2020-06-23 05:12:24 -0400
committerPaolo Bonzini <[email protected]>2020-07-08 16:21:42 -0400
commita8d908b5873cad212b0f74569f5a23b804e694ce (patch)
tree6cfe52868ea5b2408e5a6e8b6c386828c4d1e33c /tools/perf/scripts/python/net_dropmonitor.py
parentdc42c8ae0a7762378102dd043779d19331804cce (diff)
KVM: x86: report sev_pin_memory errors with PTR_ERR
Callers of sev_pin_memory() treat NULL differently: sev_launch_secret()/svm_register_enc_region() return -ENOMEM sev_dbg_crypt() returns -EFAULT. Switching to ERR_PTR() preserves the error and enables cleaner reporting of different kinds of failures. Suggested-by: Vitaly Kuznetsov <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions