Commit 4c2c4dc
CCA adapters are not usable in an Secure Execution guest
Trying to use CCA adapters in an Secure Execution guest fails, because CCA
adapters are not usable there. Nevertheless they show up as online, so
special checking needs to be added to detect this situation.
Don't set the 'ecc_via_online_card' flag in such case, so that the EC
mechanisms are reported to not be available with dynamic hardware when
running in an Secure Execution guest, and attempts to use curves that
would require a CCA adapter fail with ENODEV. This can then be handled
by the calling applications appropriately.
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>1 parent ff35d02 commit 4c2c4dc
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
407 | 411 | | |
408 | 412 | | |
409 | 413 | | |
| |||
440 | 444 | | |
441 | 445 | | |
442 | 446 | | |
443 | | - | |
| 447 | + | |
444 | 448 | | |
445 | 449 | | |
446 | | - | |
| 450 | + | |
447 | 451 | | |
448 | 452 | | |
449 | 453 | | |
| |||
0 commit comments