mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
qemu: Extend QEMU capabilities with 'tpm-spapr'
Extend the QEMU capabilties with tpm-spapr support. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
914cb83218
commit
20d9340268
@ -558,6 +558,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
||||
"i8042",
|
||||
"rng-builtin",
|
||||
"virtio-net.failover",
|
||||
"tpm-spapr",
|
||||
);
|
||||
|
||||
|
||||
@ -1274,6 +1275,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
|
||||
{ "max-arm-cpu", QEMU_CAPS_ARM_MAX_CPU },
|
||||
{ "i8042", QEMU_CAPS_DEVICE_I8042 },
|
||||
{ "rng-builtin", QEMU_CAPS_OBJECT_RNG_BUILTIN },
|
||||
{ "tpm-spapr", QEMU_CAPS_DEVICE_TPM_SPAPR },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioBalloon[] = {
|
||||
@ -3027,6 +3029,10 @@ const struct tpmTypeToCaps virQEMUCapsTPMModelsToCaps[] = {
|
||||
.type = VIR_DOMAIN_TPM_MODEL_CRB,
|
||||
.caps = QEMU_CAPS_DEVICE_TPM_CRB,
|
||||
},
|
||||
{
|
||||
.type = VIR_DOMAIN_TPM_MODEL_SPAPR,
|
||||
.caps = QEMU_CAPS_DEVICE_TPM_SPAPR,
|
||||
},
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -540,6 +540,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
QEMU_CAPS_DEVICE_I8042, /* PS/2 controller */
|
||||
QEMU_CAPS_OBJECT_RNG_BUILTIN, /* -object rng-builtin */
|
||||
QEMU_CAPS_VIRTIO_NET_FAILOVER, /* virtio-net-*.failover */
|
||||
QEMU_CAPS_DEVICE_TPM_SPAPR, /* -device tpm-spapr */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
Loading…
Reference in New Issue
Block a user