aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorTom Lendacky <[email protected]>2021-03-03 16:31:09 -0600
committerHerbert Xu <[email protected]>2021-03-13 00:04:02 +1100
commit1877c73b7c03c9f15c397e4e278ad3f551475ecf (patch)
tree9e81e1f72cc880961258efc37e9c43e6cc8a85a7 /tools/perf/scripts/python/bin/stackcollapse-report
parent83681f2bebb34dbb3f03fecd8f570308ab8b7c2c (diff)
crypto: ccp - Don't initialize SEV support without the SEV feature
If SEV has been disabled (e.g. through BIOS), the driver probe will still issue SEV firmware commands. The SEV INIT firmware command will return an error in this situation, but the error code is a general error code that doesn't highlight the exact reason. Add a check for X86_FEATURE_SEV in sev_dev_init() and emit a meaningful message and skip attempting to initialize the SEV firmware if the feature is not enabled. Since building the SEV code is dependent on X86_64, adding the check won't cause any build problems. Cc: John Allen <[email protected]> Cc: Brijesh Singh <[email protected]> Signed-off-by: Tom Lendacky <[email protected]> Reviewed-By: Brijesh Singh <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions