qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] tests/functional/aarch64: add tests for FEAT_RME


From: Marcin Juszkiewicz
Subject: Re: [PATCH v2] tests/functional/aarch64: add tests for FEAT_RME
Date: Sun, 1 Dec 2024 14:34:51 +0100
User-agent: Mozilla Thunderbird

W dniu 28.11.2024 o 22:37, Pierrick Bouvier pisze:
This boot an OP-TEE environment, and launch a nested guest VM inside it
using the Realms feature. We do it for virt and sbsa-ref platforms.

Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>

diff --git a/tests/functional/meson.build b/tests/functional/meson.build
index 5c048cfac6d..b975a1560df 100644
--- a/tests/functional/meson.build
+++ b/tests/functional/meson.build
@@ -13,6 +13,8 @@ endif
  test_timeouts = {
    'aarch64_aspeed' : 600,
    'aarch64_raspi4' : 480,

+  'aarch64_rme_virt' : 720,

Took 2974.95s on M1 Pro macbook.

+  'aarch64_rme_sbsaref' : 720,

This one needed 2288.29s.

    'aarch64_sbsaref_alpine' : 720,

Have to check cause timed out.

    'aarch64_sbsaref_freebsd' : 720,

331.65s

So RME tests probably need longer timeouts or would not run at all.


+++ b/tests/functional/test_aarch64_rme_sbsaref.py

+        self.vm.add_args('-accel', 'tcg')

That's default value so can be skipped.

+        self.vm.add_args('-cpu', 'max,x-rme=on')

+        self.vm.add_args('-m', '2G')

I sent patch to bump default memsize to 2G recently.

+        self.vm.add_args('-M', 'sbsa-ref')
+        self.vm.add_args('-drive', f'file={pflash0},format=raw,if=pflash')
+        self.vm.add_args('-drive', f'file={pflash1},format=raw,if=pflash')
+        self.vm.add_args('-drive', f'file=fat:rw:{virtual},format=raw')

+        self.vm.add_args('-drive', f'format=raw,if=none,file={drive},id=hd0')
+        self.vm.add_args('-device', 'virtio-blk-pci,drive=hd0')

sbsa-ref is fully emulated target. There is AHCI controller built-in so only "-drive" argument should be needed (no "-device" one).

+        self.vm.add_args('-device', 'virtio-9p-pci,fsdev=shr0,mount_tag=shr0')
+        self.vm.add_args('-fsdev', 
f'local,security_model=none,path={rme_stack},id=shr0')

+        self.vm.add_args('-device', 'virtio-net-pci,netdev=net0')
+        self.vm.add_args('-netdev', 'user,id=net0')

e1000e is built-in already


As both virt and sbsa-ref tests do "more or less" the same stuff then it would be good to make common file/class and reuse it both tests by adding hardware differences.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]