mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemu_capabilities: introduce confidential-guest-support capability
In libvirt we already use `query-command-line-options` QMP command but that is useless as it doesn't provide correct data for `-machine` option. So we need a new and better way to get that data. We already use `qom-list-properties` to get options for specific machine types so we can reuse it to get options for special `none` machine type as a generic arch independent machine type. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
7d97d7af9e
commit
af5828bc91
@ -632,6 +632,9 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
||||
"input-linux",
|
||||
"virtio-gpu-gl-pci",
|
||||
"virtio-vga-gl",
|
||||
|
||||
/* 405 */
|
||||
"confidential-guest-support",
|
||||
);
|
||||
|
||||
|
||||
@ -1756,6 +1759,10 @@ static struct virQEMUCapsStringFlags virQEMUCapsMachinePropsVirt[] = {
|
||||
{ "iommu", QEMU_CAPS_MACHINE_VIRT_IOMMU },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsStringFlags virQEMUCapsMachinePropsGeneric[] = {
|
||||
{ "confidential-guest-support", QEMU_CAPS_MACHINE_CONFIDENTAL_GUEST_SUPPORT },
|
||||
};
|
||||
|
||||
static virQEMUCapsObjectTypeProps virQEMUCapsMachineProps[] = {
|
||||
{ "pseries", virQEMUCapsMachinePropsPSeries,
|
||||
G_N_ELEMENTS(virQEMUCapsMachinePropsPSeries),
|
||||
@ -1763,6 +1770,9 @@ static virQEMUCapsObjectTypeProps virQEMUCapsMachineProps[] = {
|
||||
{ "virt", virQEMUCapsMachinePropsVirt,
|
||||
G_N_ELEMENTS(virQEMUCapsMachinePropsVirt),
|
||||
-1 },
|
||||
{ "none", virQEMUCapsMachinePropsGeneric,
|
||||
G_N_ELEMENTS(virQEMUCapsMachinePropsGeneric),
|
||||
-1 },
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -613,6 +613,9 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
QEMU_CAPS_VIRTIO_GPU_GL_PCI, /* -device virtio-gpu-gl-pci */
|
||||
QEMU_CAPS_VIRTIO_VGA_GL, /* -device virtio-vga-gl */
|
||||
|
||||
/* 405 */
|
||||
QEMU_CAPS_MACHINE_CONFIDENTAL_GUEST_SUPPORT, /* -machine confidential-guest-support */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user