Skip to content

Commit 53f3a13

Browse files
committed
Merge tag 'pull-tcg-20250403' of https://gitlab.com/rth7680/qemu into staging
tcg: Allocate TEMP_VAL_MEM frame in temp_load() tests/functional: Skip aarch64_replay test on macOS hw/arm: Do not build VMapple machine by default tests/functional/test_aarch64_rme_virt: fix sporadic failure # -----BEGIN PGP SIGNATURE----- # # iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmfvMOsdHHJpY2hhcmQu # aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV+wYQf+Kfd4x/v5oZW9QAwH # +FItVtYIJ2Mfp7BilNmSY9jmHcO46RQ8pkJv/CltlZHFCe7s8+qJKpPhQCfUMhUH # DW5SIWXZw+bOIxDycm1XssnQDyJODzwLFi1VmWL1gmoEXhgYea0owxFBPAzBOtrj # 1viHQOhr2iymsukD5KACajtrwYDzc2g6xZwCx1SLsFO1bolVLlcKgBsolItM+/sO # 5IkCkEHgkZ7bADFig2Qm797H5cTVuqn00JGwU2cfYAMxMqNi0G0bv1C1OMHwShdg # R8lfnxk8lHv58GtJcPgP50ByRTotW5HXSQN9DujWiJjLXfW9AYqOeuXFPbaLLxaG # gwkqlA== # =WbPO # -----END PGP SIGNATURE----- # gpg: Signature made Thu 03 Apr 2025 21:07:55 EDT # gpg: using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F # gpg: issuer "[email protected]" # gpg: Good signature from "Richard Henderson <[email protected]>" [full] # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A 05C0 64DF 38E8 AF7E 215F * tag 'pull-tcg-20250403' of https://gitlab.com/rth7680/qemu: hw/arm: Do not build VMapple machine by default tests/qtest: Skip Aarch64 VMapple machine tests/functional: Skip aarch64_replay test on macOS tests/functional: Add a decorator for skipping tests on particular OS tests/functional/test_aarch64_rme_virt: fix sporadic failure tcg: Allocate TEMP_VAL_MEM frame in temp_load() Signed-off-by: Stefan Hajnoczi <[email protected]>
2 parents 0f1da6b + 4955175 commit 53f3a13

File tree

7 files changed

+26
-4
lines changed

7 files changed

+26
-4
lines changed

configs/devices/aarch64-softmmu/default.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ include ../arm-softmmu/default.mak
99
# CONFIG_XLNX_VERSAL=n
1010
# CONFIG_SBSA_REF=n
1111
# CONFIG_NPCM8XX=n
12+
CONFIG_VMAPPLE=n

tcg/tcg.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4671,6 +4671,9 @@ static void temp_load(TCGContext *s, TCGTemp *ts, TCGRegSet desired_regs,
46714671
ts->mem_coherent = 0;
46724672
break;
46734673
case TEMP_VAL_MEM:
4674+
if (!ts->mem_allocated) {
4675+
temp_allocate_frame(s, ts);
4676+
}
46744677
reg = tcg_reg_alloc(s, desired_regs, allocated_regs,
46754678
preferred_regs, ts->indirect_base);
46764679
tcg_out_ld(s, ts->type, reg, ts->mem_base->reg, ts->mem_offset);

tests/functional/qemu_test/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
from .linuxkernel import LinuxKernelTest
1616
from .decorators import skipIfMissingCommands, skipIfNotMachine, \
1717
skipFlakyTest, skipUntrustedTest, skipBigDataTest, skipSlowTest, \
18-
skipIfMissingImports
18+
skipIfMissingImports, skipIfOperatingSystem
1919
from .archive import archive_extract
2020
from .uncompress import uncompress

tests/functional/qemu_test/decorators.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import importlib
66
import os
77
import platform
8-
from unittest import skipUnless
8+
from unittest import skipIf, skipUnless
99

1010
from .cmd import which
1111

@@ -26,6 +26,19 @@ def skipIfMissingCommands(*args):
2626
return skipUnless(has_cmds, 'required command(s) "%s" not installed' %
2727
", ".join(args))
2828

29+
'''
30+
Decorator to skip execution of a test if the current
31+
host operating system does match one of the prohibited
32+
ones.
33+
Example
34+
35+
@skipIfOperatingSystem("Linux", "Darwin")
36+
'''
37+
def skipIfOperatingSystem(*args):
38+
return skipIf(platform.system() in args,
39+
'running on an OS (%s) that is not able to run this test' %
40+
", ".join(args))
41+
2942
'''
3043
Decorator to skip execution of a test if the current
3144
host machine does not match one of the permitted

tests/functional/test_aarch64_replay.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# SPDX-License-Identifier: GPL-2.0-or-later
77

8-
from qemu_test import Asset
8+
from qemu_test import Asset, skipIfOperatingSystem
99
from replay_kernel import ReplayKernelBase
1010

1111

@@ -16,6 +16,8 @@ class Aarch64Replay(ReplayKernelBase):
1616
'releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz'),
1717
'7e1430b81c26bdd0da025eeb8fbd77b5dc961da4364af26e771bd39f379cbbf7')
1818

19+
# Failing on Darwin: https://gitlab.com/qemu-project/qemu/-/issues/2907
20+
@skipIfOperatingSystem('Darwin')
1921
def test_aarch64_virt(self):
2022
self.set_machine('virt')
2123
self.cpu = 'cortex-a53'

tests/functional/test_aarch64_rme_virt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def test_aarch64_rme_virt(self):
8787
self.vm.add_args('-fsdev', f'local,security_model=none,path={rme_stack},id=shr0')
8888
self.vm.add_args('-device', 'virtio-net-pci,netdev=net0')
8989
self.vm.add_args('-netdev', 'user,id=net0')
90-
self.vm.add_args('-append', 'root=/dev/vda')
90+
# We need to add nokaslr to avoid triggering this sporadic bug:
91+
# https://gitlab.com/qemu-project/qemu/-/issues/2823
92+
self.vm.add_args('-append', 'root=/dev/vda nokaslr')
9193

9294
self.vm.launch()
9395
# Wait for host VM boot to complete.

tests/qtest/libqtest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,6 +1788,7 @@ void qtest_cb_for_every_machine(void (*cb)(const char *machine),
17881788
if (!strncmp("xenfv", machines[i].name, 5) ||
17891789
g_str_equal("xenpv", machines[i].name) ||
17901790
g_str_equal("xenpvh", machines[i].name) ||
1791+
g_str_equal("vmapple", machines[i].name) ||
17911792
g_str_equal("nitro-enclave", machines[i].name)) {
17921793
continue;
17931794
}

0 commit comments

Comments
 (0)