-
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 file backed nvdimm memory lifecycle #5370
add case for file backed nvdimm memory lifecycle #5370
Conversation
15f25da
to
394a519
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.
Thanks for this. Some minor things called my attention please have a look.
|
||
save_file = params.get("save_file") | ||
if os.path.exists(save_file): | ||
os.remove(save_file) |
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.
I think you should better assume that the file doesn't exist when the test starts but make sure to remove it during teardown.
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.
Hi Sebas , Thanks for your comment. If other cases have the same named file left, m which will influence my test
nvdimm_dict = {'mem_model':'nvdimm', 'mem_access':'${access}',${source_attrs},${target_attrs} } | ||
variants: | ||
- with_numa: | ||
no s390-virtio |
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.
Actually, you could define no s390-virtio
on the top level because there's no NVDIMM on s390x.
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 Sebas, Done
|
||
def run_test(): | ||
""" | ||
1.Define vm with nvdimm memory device and check nvdimm config. |
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.
I think the comments need some cleanup, I propose:
1. Define a vm with a nvdimm memory device and check the nvdimm configuration.
2. Hotplug an nvdimm memory device and check the nvdimm configuration.
3. Check the alignment with the virsh qemu-monitor-command.
4. Create a file system on two nvdimm devices in the guest.
6. Lifecycle checks for a guest with an attached device.
7. Hotplug an nvdimm device.
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 Sebas, Done
3.Check the alignment by virsh qemu-monitor-command. | ||
4.Create file system on two nvdimm device in guest. | ||
6.Liefycle for guest. | ||
7.Hotplug a nvdimm. |
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.
Is this a second device? Is 7. the same as 2.?
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 Sebas, Done
d9a8690
to
434780c
Compare
b266a4b
to
3d988cc
Compare
VIRT-299192: Life cycle of file backed nvdimm memory device Signed-off-by: nanli <[email protected]>
3d988cc
to
fa34e06
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 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.
LGTM
Signed-off-by: nanli [email protected]
x86+rhel9
aarch+rhel9