03055de176
Libvirt has implemented the capability to expose maximum number of SEV guests and SEV-ES guests in 8.0.0[1][2]. This allows nova to detect maximum number of memory encrypted guests using that feature. The detection is not used if the [libvirt] num_memory_encrypted_guests option is set to preserve the current behavior. Note that current nova supports only SEV and does not support SEV-ES, so this implementation only uses the maximum number of SEV guests. The maximum number of SEV-ES guests will be used in case we implement support for SEV-ES. [1] https://gitlab.com/libvirt/libvirt/-/commit/34cb8f6fcd6a56a7bbcef2f7402def1682509e16 [2] https://gitlab.com/libvirt/libvirt/-/commit/7826148a72c97367fc6aaa76397fe92d32169723 Implements: blueprint libvirt-detect-sev-max-guests Change-Id: I502e1713add7e6a1eb11ecce0cc2b5eb6a14527a