On Mon, Nov 24, 2025 at 12:15:07 +0000, Daniel P. Berrangé via Devel wrote:
> From: Daniel P. Berrangé <[email protected]>
> 
> Currently domain capabilities will only ever report
> 
>     <tdx supported='yes'/>
> 
> so it is not possible to determine whether libvirt itself is
> new enough to have TDX support or not, vs the host OS lacking
> it.
> 
> For SEV and s390 prot-virt, the capability is always reported
> whether supported or not, so do likewise for TDX, so other
> x86 hosts get:
> 
>     <tdx supported='no'/>
> 
> Signed-off-by: Daniel P. Berrangé <[email protected]>
> ---
>  src/qemu/qemu_capabilities.c                             | 4 +++-
>  tests/domaincapsdata/qemu_10.0.0-q35.x86_64+amdsev.xml   | 1 +
>  tests/domaincapsdata/qemu_10.0.0-q35.x86_64.xml          | 1 +
>  tests/domaincapsdata/qemu_10.0.0-tcg.x86_64+amdsev.xml   | 1 +
>  tests/domaincapsdata/qemu_10.0.0-tcg.x86_64.xml          | 1 +
>  tests/domaincapsdata/qemu_10.0.0-virt.aarch64.xml        | 1 +
>  tests/domaincapsdata/qemu_10.0.0.aarch64.xml             | 1 +
>  tests/domaincapsdata/qemu_10.0.0.ppc64.xml               | 1 +
>  tests/domaincapsdata/qemu_10.0.0.s390x.xml               | 1 +
>  tests/domaincapsdata/qemu_10.0.0.x86_64+amdsev.xml       | 1 +
>  tests/domaincapsdata/qemu_10.0.0.x86_64.xml              | 1 +
>  tests/domaincapsdata/qemu_10.1.0-tcg.x86_64+inteltdx.xml | 1 +
>  tests/domaincapsdata/qemu_10.1.0-tcg.x86_64.xml          | 1 +
>  tests/domaincapsdata/qemu_10.2.0-tcg.x86_64+mshv.xml     | 1 +
>  tests/domaincapsdata/qemu_10.2.0-tcg.x86_64.xml          | 1 +
>  tests/domaincapsdata/qemu_6.2.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_6.2.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_6.2.0.ppc64.xml                | 1 +
>  tests/domaincapsdata/qemu_6.2.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_7.0.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.0.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.0.0.ppc64.xml                | 1 +
>  tests/domaincapsdata/qemu_7.0.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_7.1.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.1.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.1.0.ppc64.xml                | 1 +
>  tests/domaincapsdata/qemu_7.1.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_7.2.0-hvf.x86_64+hvf.xml       | 1 +
>  tests/domaincapsdata/qemu_7.2.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.2.0-tcg.x86_64+hvf.xml       | 1 +
>  tests/domaincapsdata/qemu_7.2.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.2.0.ppc.xml                  | 1 +
>  tests/domaincapsdata/qemu_7.2.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_8.0.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.0.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.0.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_8.1.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.1.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.1.0.s390x.xml                | 1 +
>  tests/domaincapsdata/qemu_8.1.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_8.2.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.2.0-tcg-virt.loongarch64.xml | 1 +
>  tests/domaincapsdata/qemu_8.2.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.2.0-virt.aarch64.xml         | 1 +
>  tests/domaincapsdata/qemu_8.2.0-virt.loongarch64.xml     | 1 +
>  tests/domaincapsdata/qemu_8.2.0.aarch64.xml              | 1 +
>  tests/domaincapsdata/qemu_8.2.0.armv7l.xml               | 1 +
>  tests/domaincapsdata/qemu_8.2.0.s390x.xml                | 1 +
>  tests/domaincapsdata/qemu_8.2.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_9.0.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.0.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.0.0.sparc.xml                | 1 +
>  tests/domaincapsdata/qemu_9.0.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_9.1.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.1.0-tcg-virt.riscv64.xml     | 1 +
>  tests/domaincapsdata/qemu_9.1.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.1.0-virt.riscv64.xml         | 1 +
>  tests/domaincapsdata/qemu_9.1.0.s390x.xml                | 1 +
>  tests/domaincapsdata/qemu_9.1.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_9.2.0-hvf.aarch64+hvf.xml      | 1 +
>  tests/domaincapsdata/qemu_9.2.0-q35.x86_64+amdsev.xml    | 1 +
>  tests/domaincapsdata/qemu_9.2.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.2.0-tcg.x86_64+amdsev.xml    | 1 +
>  tests/domaincapsdata/qemu_9.2.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.2.0.s390x.xml                | 1 +
>  tests/domaincapsdata/qemu_9.2.0.x86_64+amdsev.xml        | 1 +
>  tests/domaincapsdata/qemu_9.2.0.x86_64.xml               | 1 +
>  67 files changed, 69 insertions(+), 1 deletion(-)

Reviewed-by: Peter Krempa <[email protected]>

Reply via email to