-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add case for discard memory content #5074
add case for discard memory content #5074
Conversation
modular_redesign |
c76c3f7
to
77e3a0b
Compare
@hs0210 Would you like to test on your arm environment and give feedback? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others LGTM
if numa_attrs: | ||
vm_attrs.update(numa_attrs) | ||
vm_attrs.update(mem_attrs) | ||
test.log.debug("Get current vm attrs is :%s" % vm_attrs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
% -> ,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks done.
- numa_discard_not_defined: | ||
numa_attrs = {'vcpu': 4,'cpu': {'numa_cell': [{'id': '0', 'cpus': '0-3', 'memory': '${numa_mem}', 'unit': 'KiB'}]}} | ||
numa_path = {'element_attrs': ['./cpu/numa/cell/[@memory="${numa_mem}"]']} | ||
- no_numa: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except this no_numa, other cases are not supported on s390x. So could you help handling this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks dzheng, done
77e3a0b
to
fca0d36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Not sure if arm guy has comment
@hs0210 will check it tomorrow. Let's wait for a while. |
|
||
elif mem_discard in ["mem_discard_yes", "mem_discard_not_defined"] \ | ||
and numa_discard == "numa_discard_no": | ||
expected_discard = "false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The behavior of no_discard is different on 8 and 9 for all both x86 and aarch64:
on 9.3, the discard-data is false in the qemu cmd line
on 8.9, no discard-data para in the qemu cmd line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks hshuai,Done , Please help heck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liang-cong-red-hat Hi lcong ,Could you double confirm here? Is this suited for x86 ,Thank you !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lcong has updated the polarion case , I will update auto code
- hugepaged_file: | ||
source_type = 'hugepage' | ||
hugepages_attr = "'hugepages': {}" | ||
hugepages_path = {'element_attrs': ['./memoryBacking/hugepages']} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default huge pagesize on XXXX-8 aarch64 is 512M, but above setting is for 2M pagesize. Please adjust the test to accommodate aarch64.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks hshuai,Done , Please help heck
fca0d36
to
1d8c857
Compare
VIRT-298033: Discard memory content Signed-off-by: nanli <[email protected]>
1d8c857
to
b7b54aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
VIRT-298033: Discard memory content
Signed-off-by: nanli [email protected]