Skip to content

Commit

Permalink
Merge pull request autotest#5297 from smitterl/fix_mb_access_mode
Browse files Browse the repository at this point in the history
memory_backing: fix on s390x
  • Loading branch information
chunfuwen authored Nov 28, 2023
2 parents ac4c71f + aefe507 commit 2662053
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
set_pagenum = 1024
numa_mem = 2097152
qemu_line = '"discard-data":%s'
s390-virtio:
set_pagesize = 1024
set_pagenum = 2048
kvm_module_parameters =
variants source:
- file:
source_type = 'file'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
- memory.backing.mount_path:
type = hugepage_mount_path
no s390-virtio
mem_value = 2097152
set_pagesize_1 = "1048576"
set_pagenum_1 = "2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
qemu_monitor_cmd = 'info memdev'
pattern_share = "share:\s*{}"
mem_backend = "memory backend: ram-node0"
s390-virtio:
set_pagesize = 1024
set_pagenum = 2048
kvm_module_parameters =
variants source:
- file:
source_type = 'file'
Expand All @@ -37,19 +41,24 @@
- mem_access_default:
variants numa_access:
- numa_access_private:
no s390-virtio
numa_access_mode = 'private'
numa_attrs = {'vcpu': 4,'cpu': {'numa_cell': [{'id': '0', 'cpus': '0-3', 'memory': '${numa_mem}', 'unit': 'KiB', 'memAccess':'${numa_access_mode}'}]}}
numa_access_path = {'element_attrs': ['./cpu/numa/cell/[@memAccess="${numa_access_mode}"]', './cpu/numa/cell/[@memory="${numa_mem}"]']}
- numa_access_shared:
no s390-virtio
numa_access_mode = 'shared'
numa_attrs = {'vcpu': 4,'cpu': {'numa_cell': [{'id': '0', 'cpus': '0-3', 'memory': '${numa_mem}', 'unit': 'KiB', 'memAccess':'${numa_access_mode}'}]}}
numa_access_path = {'element_attrs': ['./cpu/numa/cell/[@memAccess="${numa_access_mode}"]', './cpu/numa/cell/[@memory="${numa_mem}"]']}
- numa_access_default:
no s390-virtio
numa_attrs = {'vcpu': 4,'cpu': {'numa_cell': [{'id': '0', 'cpus': '0-3', 'memory': '${numa_mem}', 'unit': 'KiB'}]}}
- no_numa:
mem_backend = "memory backend: pc.ram"
aarch64:
mem_backend = "memory backend: mach-virt.ram"
s390-virtio:
mem_backend = "memory backend: s390.ram"
variants mem_pagesize:
- without_hugepage:
- with_hugepage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
aarch64:
pagesize = 524288
pagenum = 4
s390-virtio:
pagesize = 1024
pagenum = 2048
expect_exist = True
variants lock_config:
- lock_default:
Expand Down Expand Up @@ -34,6 +37,8 @@
kernel_pagesize = 64
- hugepage:
hugepages_dict = "'hugepages': {}"
s390-virtio:
kvm_module_parameters =
variants:
- memory_allocation:
mem_unit = "KiB"
Expand Down

0 comments on commit 2662053

Please sign in to comment.