<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/tests/unit, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/tests/unit?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/tests/unit?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-08-12T10:40:16Z</updated>
<entry>
<title>hw/core/ptimer: fix timer zero period condition for freq &gt; 1GHz</title>
<updated>2024-08-12T10:40:16Z</updated>
<author>
<name>Jianzhou Yue</name>
<email>JianZhou.Yue@verisilicon.com</email>
</author>
<published>2024-08-09T16:37:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=446e5e8b4515e9a7be69ef6a29852975289bb6f0'/>
<id>urn:sha1:446e5e8b4515e9a7be69ef6a29852975289bb6f0</id>
<content type='text'>
The real period is zero when both period and period_frac are zero.
Check the method ptimer_set_freq, if freq is larger than 1000 MHz,
the period is zero, but the period_frac is not, in this case, the
ptimer will work but the current code incorrectly recognizes that
the ptimer is disabled.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2306
Signed-off-by: JianZhou Yue &lt;JianZhou.Yue@verisilicon.com&gt;
Message-id: 3DA024AEA8B57545AF1B3CAA37077D0FB75E82C8@SHASXM03.verisilicon.com
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
</content>
</entry>
<entry>
<title>crypto: propagate errors from TLS session I/O callbacks</title>
<updated>2024-07-24T09:39:10Z</updated>
<author>
<name>Daniel P. Berrangé</name>
<email>berrange@redhat.com</email>
</author>
<published>2024-03-15T14:29:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=97f7bf113eb50fcdaf0c73aa2ee01e5355abc073'/>
<id>urn:sha1:97f7bf113eb50fcdaf0c73aa2ee01e5355abc073</id>
<content type='text'>
GNUTLS doesn't know how to perform I/O on anything other than plain
FDs, so the TLS session provides it with some I/O callbacks. The
GNUTLS API design requires these callbacks to return a unix errno
value, which means we're currently loosing the useful QEMU "Error"
object.

This changes the I/O callbacks in QEMU to stash the "Error" object
in the QCryptoTLSSession class, and fetch it when seeing an I/O
error returned from GNUTLS, thus preserving useful error messages.

Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>crypto: Restrict pkix_asn1_tab[] to crypto-tls-x509-helpers.c</title>
<updated>2024-07-24T09:39:10Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-05-02T09:56:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=0e9bb8ad4d907d28aea8336d43ae990d87b1c834'/>
<id>urn:sha1:0e9bb8ad4d907d28aea8336d43ae990d87b1c834</id>
<content type='text'>
pkix_asn1_tab[] is only accessed by crypto-tls-x509-helpers.c,
rename pkix_asn1_tab.c as pkix_asn1_tab.c.inc and include it once.

Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
[berrange: updated MAINTAINERS for changed filename]
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>crypto: Remove 'crypto-tls-x509-helpers.h' from crypto-tls-psk-helpers.c</title>
<updated>2024-07-24T09:39:10Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-05-02T09:56:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=e8ad8b9987efdbac4116567e685e6fd8ec28ef48'/>
<id>urn:sha1:e8ad8b9987efdbac4116567e685e6fd8ec28ef48</id>
<content type='text'>
crypto-tls-psk-helpers.c doesn't access the declarations
of "crypto-tls-x509-helpers.h", remove the include line
to avoid when building with GNUTLS but without Libtasn1:

  In file included from tests/unit/crypto-tls-psk-helpers.c:23:
  tests/unit/crypto-tls-x509-helpers.h:26:10: fatal error:
  libtasn1.h: No such file or directory
     26 | #include &lt;libtasn1.h&gt;
        |          ^~~~~~~~~~~~
  compilation terminated.

Fixes: e1a6dc91dd ("crypto: Implement TLS Pre-Shared Keys (PSK).")
Suggested-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'pull-request-2024-06-12' of https://gitlab.com/thuth/qemu into staging</title>
<updated>2024-06-13T14:51:58Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2024-06-13T14:51:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=046a64b9801343e2e89eef10c7a48eec8d8c0d4f'/>
<id>urn:sha1:046a64b9801343e2e89eef10c7a48eec8d8c0d4f</id>
<content type='text'>
* Fix loongarch64 avocado test
* Make qtests more flexible with regards to non-available CPU models
* Improvements for the test-smp-parse unit test

# -----BEGIN PGP SIGNATURE-----
#
# iQJFBAABCAAvFiEEJ7iIR+7gJQEY8+q5LtnXdP5wLbUFAmZpoEoRHHRodXRoQHJl
# ZGhhdC5jb20ACgkQLtnXdP5wLbVF6g/+JYTRKmaIduQIP9g2+NkM+qMTbjI9Ow47
# 8Vdj/ePMXNWOZsgMPkCUdisYeMZEC+XMcDN1xvwZXwLTMTJRacZCSFRpeN4P0m0W
# 6aQ28+tPNgx+B9Eh2kc4TpxbiqSH8u5u4GEN4Y07rcX/3YbYyjFgZD8orRu/nJ+H
# 0wV7Riq9csi1BkLxrgKaHocFSOl4eOga4OFi+u4wIn/xoW3MN0laxe4iuoQRMZPf
# gJLPRhEija4lto8iIKNxJbTABB0wEcWRWtgqcbHxdatqh1lPTPBpWxmdD/v1LJn+
# H/eO+oh05NQdlhw7+xfWF9PD+MpIePbZ28oNb3X3uURROTdcxpBAgpPipv07FsT4
# LmU2nIBQ4FcpDOkhLnLmBmFBNO6uDCzuGzxFRhX1SIiGMABqTDOKynBQSgQI2iB0
# 5J47XUwHtnOoCvf4SRA/MZG8zNSQZdJbnuOBLgZ+vsCG14mWM2NbfSUwRkH6pd/J
# fEbODuzHZoYgUTxjR9+WMbINAbNjMy+SP2sGZIBzcAIIkybKynOy58LoCyNT684U
# ean9bnc65908PJxEfsQ6k9kNwkK4GwOqZi+X383nVgMJ9+3dDw8M76IVU59hsq1n
# wnz4VgFcRdXMYhj9zghaCgH2Ezw8gZHILXH+RlX0Bav4LQ5vSZQ6tRNwM4+rfXBe
# okF1Sxmz31U=
# =s7+V
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 12 Jun 2024 06:19:06 AM PDT
# gpg:                using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5
# gpg:                issuer "thuth@redhat.com"
# gpg: Good signature from "Thomas Huth &lt;th.huth@gmx.de&gt;" [full]
# gpg:                 aka "Thomas Huth &lt;thuth@redhat.com&gt;" [full]
# gpg:                 aka "Thomas Huth &lt;th.huth@posteo.de&gt;" [unknown]
# gpg:                 aka "Thomas Huth &lt;huth@tuxfamily.org&gt;" [full]

* tag 'pull-request-2024-06-12' of https://gitlab.com/thuth/qemu:
  tests/tcg/s390x: Allow specifying extra QEMU options on the command line
  tests/unit/test-smp-parse: Test the full 8-levels topology hierarchy
  tests/unit/test-smp-parse: Test "modules" and "dies" combination case
  tests/unit/test-smp-parse: Test "modules" parameter in -smp
  tests/unit/test-smp-parse: Make test cases aware of module level
  tests/unit/test-smp-parse: Use default parameters=0 when not set in -smp
  tests/unit/test-smp-parse: Fix an invalid topology case
  tests/unit/test-smp-parse: Fix comment of parameters=1 case
  tests/unit/test-smp-parse: Fix comments of drawers and books case
  test: Remove libibumad dependence
  meson: Remove libibumad dependence
  tests/qtest/x86: check for availability of older cpu models before running tests
  tests/qtest/libqtest: add qtest_has_cpu_model() api
  qtest/x86/numa-test: do not use the obsolete 'pentium' cpu
  tests/avocado: Update LoongArch bios file

Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>tests/unit/test-smp-parse: Test the full 8-levels topology hierarchy</title>
<updated>2024-06-12T10:10:57Z</updated>
<author>
<name>Zhao Liu</name>
<email>zhao1.liu@intel.com</email>
</author>
<published>2024-05-29T06:19:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=6a235525d93ae5a35c5006226ffdd7c7de47ba87'/>
<id>urn:sha1:6a235525d93ae5a35c5006226ffdd7c7de47ba87</id>
<content type='text'>
With module level, QEMU now support 8-levels topology hierarchy.
Cover "modules" in SMP_CONFIG_WITH_FULL_TOPO related cases.

Signed-off-by: Zhao Liu &lt;zhao1.liu@intel.com&gt;
Tested-by: Yongwei Ma &lt;yongwei.ma@intel.com&gt;
Message-ID: &lt;20240529061925.350323-9-zhao1.liu@intel.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/unit/test-smp-parse: Test "modules" and "dies" combination case</title>
<updated>2024-06-12T10:10:57Z</updated>
<author>
<name>Zhao Liu</name>
<email>zhao1.liu@intel.com</email>
</author>
<published>2024-05-29T06:19:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=fe4b99525ac669ce9c57af19a7b9a87ebeb68866'/>
<id>urn:sha1:fe4b99525ac669ce9c57af19a7b9a87ebeb68866</id>
<content type='text'>
Since i386 PC machine supports both "modules" and "dies" in -smp, add the
"modules" and "dies" combination test case to match the actual topology
usage scenario.

Signed-off-by: Zhao Liu &lt;zhao1.liu@intel.com&gt;
Tested-by: Yongwei Ma &lt;yongwei.ma@intel.com&gt;
Message-ID: &lt;20240529061925.350323-8-zhao1.liu@intel.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/unit/test-smp-parse: Test "modules" parameter in -smp</title>
<updated>2024-06-12T10:10:57Z</updated>
<author>
<name>Zhao Liu</name>
<email>zhao1.liu@intel.com</email>
</author>
<published>2024-05-29T06:19:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=a05ed358542b90a3d53d96108fe5b83c545dfb84'/>
<id>urn:sha1:a05ed358542b90a3d53d96108fe5b83c545dfb84</id>
<content type='text'>
Cover the module cases in test-smp-parse.

Signed-off-by: Zhao Liu &lt;zhao1.liu@intel.com&gt;
Tested-by: Yongwei Ma &lt;yongwei.ma@intel.com&gt;
Message-ID: &lt;20240529061925.350323-7-zhao1.liu@intel.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/unit/test-smp-parse: Make test cases aware of module level</title>
<updated>2024-06-12T10:10:57Z</updated>
<author>
<name>Zhao Liu</name>
<email>zhao1.liu@intel.com</email>
</author>
<published>2024-05-29T06:19:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=b985f4be53fe40e10583c3d35ff05255d712686a'/>
<id>urn:sha1:b985f4be53fe40e10583c3d35ff05255d712686a</id>
<content type='text'>
Currently, -smp supports module level.

It is necessary to consider the effects of module in the test cases to
ensure that the calculations are correct. This is also the preparation
to add module test cases.

Signed-off-by: Zhao Liu &lt;zhao1.liu@intel.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Tested-by: Yongwei Ma &lt;yongwei.ma@intel.com&gt;
Message-ID: &lt;20240529061925.350323-6-zhao1.liu@intel.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/unit/test-smp-parse: Use default parameters=0 when not set in -smp</title>
<updated>2024-06-12T10:10:57Z</updated>
<author>
<name>Zhao Liu</name>
<email>zhao1.liu@intel.com</email>
</author>
<published>2024-05-29T06:19:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=aedfeffe19e65a657a4d989593fcf233809127d8'/>
<id>urn:sha1:aedfeffe19e65a657a4d989593fcf233809127d8</id>
<content type='text'>
Since -smp allows parameters=1 whether the level is supported by
machine, to avoid the test scenarios where the parameter defaults to 1
cause some errors to be masked, explicitly set undesired parameters to
0.

Signed-off-by: Zhao Liu &lt;zhao1.liu@intel.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Tested-by: Yongwei Ma &lt;yongwei.ma@intel.com&gt;
Message-ID: &lt;20240529061925.350323-5-zhao1.liu@intel.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
</feed>
