Commit 49afc5f
Yihuang Yu
feat: auto-detect SEV cbitpos and reduced-phys-bits from host
Automatically detect AMD SEV memory encryption parameters from host CPU
when not specified in configuration.
- Use coco.sev.get_cbit_position() as default for vm_sev_cbitpos
- Use coco.sev.get_reduced_phys_bits() as default for vm_sev_reduced_phys_bits
- Parameters can still be overridden via configuration
This eliminates manual CPU specification lookup and makes tests portable
across different AMD CPU models.
Signed-off-by: Yihuang Yu <yihyu@redhat.com>1 parent 7cbf954 commit 49afc5f
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
3981 | 3982 | | |
3982 | 3983 | | |
3983 | 3984 | | |
3984 | | - | |
3985 | | - | |
3986 | | - | |
3987 | | - | |
| 3985 | + | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
3988 | 3991 | | |
3989 | 3992 | | |
3990 | 3993 | | |
| |||
0 commit comments