enarx-archive / sevctl

Administrative utility for AMD SEV
Apache License 2.0
16 stars 5 forks source link

Make ok subcommand host-architecture specific when not invoked with a specified generation #98

Closed tylerfanelli closed 2 years ago

tylerfanelli commented 2 years ago

When the ok subcommand is invoked without a generation specified as in:

sevctl ok

Instead of testing for SEV, SEV-ES, and SEV-SNP support; check the current processor's generation and test support for that specific generation. For example, if a user is currently on a Rome machine, and sevctl ok is invoked, only test support relevant to Rome processors (i.e. do not test for SNP).

Closes #93

tylerfanelli commented 2 years ago

Note, marking as draft for now as I may have forgotten some ID numbers for processors of each generation.