tests: Update capabilities for advertisting panic device models

Signed-off-by: Lin Ma <lma@suse.de>
This commit is contained in:
Lin Ma 2024-12-03 18:45:52 +08:00 committed by Pavel Hrdina
parent c859c7acec
commit f9ceec2b14
6 changed files with 33 additions and 0 deletions

View File

@ -215,6 +215,11 @@
<value>lkcf</value>
</enum>
</crypto>
<panic supported='yes'>
<enum name='model'>
<value>pvpanic</value>
</enum>
</panic>
</devices>
<features>
<gic supported='yes'>

View File

@ -152,6 +152,11 @@
<value>lkcf</value>
</enum>
</crypto>
<panic supported='yes'>
<enum name='model'>
<value>pvpanic</value>
</enum>
</panic>
</devices>
<features>
<gic supported='no'/>

View File

@ -160,6 +160,12 @@
<value>lkcf</value>
</enum>
</crypto>
<panic supported='yes'>
<enum name='model'>
<value>pseries</value>
<value>pvpanic</value>
</enum>
</panic>
</devices>
<features>
<gic supported='no'/>

View File

@ -259,6 +259,13 @@
<value>lkcf</value>
</enum>
</crypto>
<panic supported='yes'>
<enum name='model'>
<value>isa</value>
<value>hyperv</value>
<value>pvpanic</value>
</enum>
</panic>
</devices>
<features>
<gic supported='no'/>

View File

@ -167,6 +167,11 @@
<value>lkcf</value>
</enum>
</crypto>
<panic supported='yes'>
<enum name='model'>
<value>pvpanic</value>
</enum>
</panic>
</devices>
<features>
<gic supported='no'/>

View File

@ -101,6 +101,7 @@ def testDomainCapabilitiesx86():
assert caps.supports_memorybacking_memfd()
assert caps.supports_redirdev_usb()
assert caps.supports_channel_spicevmc()
assert caps.supported_panic_models() == ["isa", "hyperv", "pvpanic"]
xml = open(DATADIR + "/kvm-x86_64-domcaps-amd-sev.xml").read()
caps = DomainCapabilities(utils.URIs.open_testdriver_cached(), xml)
@ -119,6 +120,7 @@ def testDomainCapabilitiesAArch64():
assert caps.supports_memorybacking_memfd()
assert caps.supports_redirdev_usb()
assert caps.supports_channel_spicevmc()
assert caps.supported_panic_models() == ["pvpanic"]
def testDomainCapabilitiesPPC64le():
@ -137,6 +139,7 @@ def testDomainCapabilitiesPPC64le():
assert caps.supports_memorybacking_memfd()
assert caps.supports_redirdev_usb()
assert not caps.supports_channel_spicevmc()
assert caps.supported_panic_models() == ["pseries", "pvpanic"]
def testDomainCapabilitiesRISCV64():
@ -167,6 +170,7 @@ def testDomainCapabilitiesRISCV64():
assert caps.supports_memorybacking_memfd()
assert caps.supports_redirdev_usb()
assert caps.supports_channel_spicevmc()
assert caps.supported_panic_models() == ["pvpanic"]
def testDomainCapabilitiesLoongArch64():
@ -197,3 +201,4 @@ def testDomainCapabilitiesLoongArch64():
assert caps.supports_memorybacking_memfd()
assert caps.supports_redirdev_usb()
assert caps.supports_channel_spicevmc()
assert caps.supported_panic_models() == ["pvpanic"]