aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2023-08-04 17:01:43 +0000
committerPaolo Bonzini <[email protected]>2023-08-04 17:33:07 +0000
commit63dbc67cf4ed11f94b2e8dde34b41438a3cb3d83 (patch)
tree5e1b7b5bd857b8380199887991e7dae9cedef4df /tools/perf/scripts/python/failed-syscalls-by-pid.py
parentKVM: SEV: only access GHCB fields once (diff)
downloadkernel-63dbc67cf4ed11f94b2e8dde34b41438a3cb3d83.tar.gz
kernel-63dbc67cf4ed11f94b2e8dde34b41438a3cb3d83.zip
KVM: SEV: remove ghcb variable declarations
To avoid possible time-of-check/time-of-use issues, the GHCB should almost never be accessed outside dump_ghcb, sev_es_sync_to_ghcb and sev_es_sync_from_ghcb. The only legitimate uses are to set the exitinfo fields and to find the address of the scratch area embedded in the ghcb. Accessing ghcb_usage also goes through svm->sev_es.ghcb in sev_es_validate_vmgexit(), but that is because anyway the value is not used. Removing a shortcut variable that contains the value of svm->sev_es.ghcb makes these cases a bit more verbose, but it limits the chance of someone reading the ghcb by mistake. Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions