qemu: report max number of SEV guests

Different CPU generations have different limits on the number
of SEV/SEV-ES guests that can be run. Since both limits come
from the same overall set, there is typically also BIOS config
to set the tradeoff betweeen SEV and SEV-ES guest limits.

This is important information to expose for a mgmt application
scheduling guests to hosts.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé
2021-12-08 14:53:45 -05:00
parent 2150c7c9f7
commit 7826148a72
9 changed files with 84 additions and 12 deletions

View File

@@ -205,8 +205,8 @@
<sev supported='yes'>
<cbitpos>47</cbitpos>
<reducedPhysBits>1</reducedPhysBits>
<maxGuests>0</maxGuests>
<maxESGuests>0</maxESGuests>
<maxGuests>59</maxGuests>
<maxESGuests>450</maxESGuests>
</sev>
</features>
</domainCapabilities>

View File

@@ -215,8 +215,8 @@
<sev supported='yes'>
<cbitpos>47</cbitpos>
<reducedPhysBits>1</reducedPhysBits>
<maxGuests>0</maxGuests>
<maxESGuests>0</maxESGuests>
<maxGuests>59</maxGuests>
<maxESGuests>450</maxESGuests>
</sev>
</features>
</domainCapabilities>

View File

@@ -205,8 +205,8 @@
<sev supported='yes'>
<cbitpos>47</cbitpos>
<reducedPhysBits>1</reducedPhysBits>
<maxGuests>0</maxGuests>
<maxESGuests>0</maxESGuests>
<maxGuests>59</maxGuests>
<maxESGuests>450</maxESGuests>
</sev>
</features>
</domainCapabilities>

View File

@@ -227,8 +227,8 @@
<sev supported='yes'>
<cbitpos>47</cbitpos>
<reducedPhysBits>1</reducedPhysBits>
<maxGuests>0</maxGuests>
<maxESGuests>0</maxESGuests>
<maxGuests>59</maxGuests>
<maxESGuests>450</maxESGuests>
</sev>
</features>
</domainCapabilities>

View File

@@ -233,8 +233,8 @@
<sev supported='yes'>
<cbitpos>47</cbitpos>
<reducedPhysBits>1</reducedPhysBits>
<maxGuests>0</maxGuests>
<maxESGuests>0</maxESGuests>
<maxGuests>59</maxGuests>
<maxESGuests>450</maxESGuests>
</sev>
</features>
</domainCapabilities>

View File

@@ -227,8 +227,8 @@
<sev supported='yes'>
<cbitpos>47</cbitpos>
<reducedPhysBits>1</reducedPhysBits>
<maxGuests>0</maxGuests>
<maxESGuests>0</maxESGuests>
<maxGuests>59</maxGuests>
<maxESGuests>450</maxESGuests>
</sev>
</features>
</domainCapabilities>