On Wed, May 06, 2026 at 09:02:50 +0200, Michal Privoznik via Devel wrote:
From: Michal Privoznik <mprivozn@redhat.com>
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, copy data over.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> --- .../domaincapsdata/qemu_11.0.0-q35.x86_64.xml | 11 ++++++++- .../domaincapsdata/qemu_11.0.0-tcg.x86_64.xml | 11 ++++++++- tests/domaincapsdata/qemu_11.0.0.x86_64.xml | 11 ++++++++- .../caps_11.0.0_x86_64.replies | 23 +++++++++++++++---- .../caps_11.0.0_x86_64.xml | 11 +++++++++ 5 files changed, 59 insertions(+), 8 deletions(-)
Instead of adding this to one of the general tests please create a 'sgx' variant for this since it will be fake data. (mostly because qemu_11.0.0 dump was created on an AMD box)