Skip to content

Commit

Permalink
virtio_fs: use global variable to define guest memory size
Browse files Browse the repository at this point in the history
To make the test more flexible, use global variable
to instead of local variable for guest memory size.

Signed-off-by: Xiaoling Gao <[email protected]>
  • Loading branch information
xiagao committed Aug 2, 2023
1 parent fb68299 commit 3b34c20
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 34 deletions.
3 changes: 1 addition & 2 deletions qemu/tests/cfg/driver_load_stress.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
guest_numa_nodes = shm0
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/single_driver_install.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
guest_numa_nodes = shm0
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_driver_sign_check.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
guest_numa_nodes = shm0
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_fs_hotplug.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
force_create_fs_source = no
remove_fs_source = yes
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
cmd_dd = 'dd if=/dev/urandom of=%s bs=1M count=2048 oflag=direct'
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_fs_multi_users_access.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
fs_target = 'myfs'
fs_dest = "/mnt/${fs_target}"
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
!s390, s390x:
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_fs_multi_vms.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
clone_master = yes
master_images_clone = image1
remove_image_image1 = yes
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
io_timeout = 600
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_fs_readonly.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
fs_dest = '/mnt/${fs_target}'
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
!s390, s390x:
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_fs_security_label.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
test_file = 'test_file'
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_fs_set_capability.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
!s390, s390x:
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_fs_share_data.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
s390, s390x:
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_fs_share_data_multi_backend.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
s390, s390x:
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/virtio_fs_winfsp_test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
guest_numa_nodes = shm0
Expand Down
9 changes: 4 additions & 5 deletions qemu/tests/cfg/win_sigverif.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
variants:
- @default:
- msft_sign_check:
type = win_msft_sign_check
vio_driver_chk_cmd = 'driverquery /si | find /i "%s"'
chk_timeout = 240
type = win_msft_sign_check
vio_driver_chk_cmd = 'driverquery /si | find /i "%s"'
chk_timeout = 240
variants:
- with_netkvm:
only virtio_net
Expand Down Expand Up @@ -83,11 +83,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
guest_numa_nodes = shm0
Expand Down
3 changes: 1 addition & 2 deletions qemu/tests/cfg/win_virtio_driver_install_from_update.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
guest_numa_nodes = shm0
Expand Down
5 changes: 2 additions & 3 deletions qemu/tests/cfg/win_virtio_driver_update_test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
driver_name = viorng
device_name = "VirtIO RNG Device"
device_hwid = '"PCI\VEN_1AF4&DEV_1005" "PCI\VEN_1AF4&DEV_1044"'
run_bgstress = rng_bat
run_bgstress = rng_bat
target_process = random\w*.exe
session_cmd_timeout = 240
rng_data_rex = "0x\w"
Expand Down Expand Up @@ -234,11 +234,10 @@
remove_fs_source = yes
fs_target = 'myfs'
fs_driver_props = {"queue-size": 1024}
mem = 4096
mem_devs = mem1
backend_mem_mem1 = memory-backend-file
mem-path_mem1 = /dev/shm
size_mem1 = 4G
size_mem1 = ${mem}M
use_mem_mem1 = no
share_mem = yes
guest_numa_nodes = shm0
Expand Down

0 comments on commit 3b34c20

Please sign in to comment.