Detect maximum guests with AMD-SEV by libvirt API
AMD SEV-capable hardware has a fixed number of slots for holing encryption keys, thus supports limited number of guests with SEV enabled.
The [libvirt] num_memory_
However the limit is presented by libvirt since libvirt 8.0.0[2][3] as part of domain capabilities.
```
# virsh domcapabilities
<domainCapabili
...
<features>
...
<sev supported='yes'>
<
<
<
<
</sev>
...
</features>
</domainCapabil
```
So now we can use this information to determine maximum number of SEV guests (as planned earlier) and reduce the options operators have to set properly.
Note that libvirt provides maximum number of SEV guests as well as one for SEV-ES guests, but because Nova supports only SEV guests now, we ignore the SEV-ES part.
[1] https:/
[2] https:/
[3] https:/
Blueprint information
- Status:
- Complete
- Approver:
- Sylvain Bauza
- Priority:
- Undefined
- Drafter:
- Takashi Kajinami
- Direction:
- Approved
- Assignee:
- Takashi Kajinami
- Definition:
- Approved
- Series goal:
- Accepted for 2024.1
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Sylvain Bauza
- Completed by
- Sylvain Bauza
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
[20231123 bauzas] Approved as a specless bp during the previous nova weekly meeting
Addressed by: https:/
Detect maximum number of SEV guests automatically