We designed them as mandatory, but these are platform dependent and can be
filled from QEMU capabilities.
Resolves:
https://gitlab.com/libvirt/libvirt/-/issues/57
Since v1:
- moved the capability check from qemuProcessPrepareSEVGuestInput to
qemuValidateDomainDef as requested
Erik Skultety (4):
qemu_process: sev: Drop an unused variable
qemu: process: Move SEV capability check to qemuValidateDomainDef
qemu: process: sev: Fill missing 'cbitpos' & 'reducedPhysBits'
from
caps
conf: domain: sev: Make 'cbitpos' & 'reducedPhysBits' attrs
optional
docs/schemas/domaincommon.rng | 16 ++++---
src/conf/domain_conf.c | 46 ++++++++++++-------
src/conf/domain_conf.h | 2 +
src/qemu/qemu_process.c | 45 +++++++++++++-----
src/qemu/qemu_validate.c | 8 ++++
...v-missing-platform-info.x86_64-2.12.0.args | 37 +++++++++++++++
...nch-security-sev-missing-platform-info.xml | 35 ++++++++++++++
tests/qemuxml2argvtest.c | 1 +
8 files changed, 157 insertions(+), 33 deletions(-)
create mode 100644 tests/qemuxml2argvdata/launch-security-sev-missing-platfo=
rm-info.x86_64-2.12.0.args
create mode 100644 tests/qemuxml2argvdata/launch-security-sev-missing-platfo=
rm-info.xml
--=20
2.26.2