]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemucapabilitiesdata: Add SGX support to caps_11.0.0_x86_64
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 May 2026 14:08:59 +0000 (16:08 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 6 May 2026 08:47:13 +0000 (10:47 +0200)
commit06bbb14170aae69b832bcb3e296fa4de8412fc4e
treeea90a93f8d566f763a038d821c18cd02570caf5a
parent142675a00a4d0c9706cd98320f62c946cc3b07c6
qemucapabilitiesdata: Add SGX support to caps_11.0.0_x86_64

Detecting SGX support is done in two ways and both have to
succeed in order for caps to have the capability:

  1) the sgx-epc device needs to be present,
  2) the query-sgx-capabilities command needs to return data
     instead of an error.

So far, the only caps file that meets both requirements is
caps_7.0.0_x86_64. Soon the minimal version is going to be bumped
to QEMU-7.2. But caps_11.0.0_x86_64 has the device and the only
thing missing is the proper reply to the monitor command.
Therefore, create new qemu_11.0.0_x86_64+sgx capabilities with
reply to query-sgx-capabilities command copied from caps_7.0.0.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tests/domaincapsdata/qemu_11.0.0-q35.x86_64+sgx.xml [new file with mode: 0644]
tests/domaincapsdata/qemu_11.0.0-tcg.x86_64+sgx.xml [new file with mode: 0644]
tests/domaincapsdata/qemu_11.0.0.x86_64+sgx.xml [new file with mode: 0644]
tests/qemucapabilitiesdata/caps_11.0.0_x86_64+sgx.replies [new file with mode: 0644]
tests/qemucapabilitiesdata/caps_11.0.0_x86_64+sgx.xml [new file with mode: 0644]
tests/qemucaps2xmloutdata/caps.x86_64+sgx.xml [new file with mode: 0644]