-
Notifications
You must be signed in to change notification settings - Fork 175
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
Virtiofs: Reboot vm during virtiofs is working #4221
Conversation
4e21952
to
43d8d17
Compare
Hi @hellohellenmao Please help review this patch. Tested with Win10 and rhel guests, both passed. |
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.
Testcase= virtio_fs_share_data
RHEL.9:
PASS 52 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
RHEL.10
PASS 51 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
qemu/tests/virtio_fs_share_data.py
Outdated
"After reboot: %s\n", | ||
(vfsd_num_bf, vfsd_num_af), | ||
for reboot_cmd in ["shell", "system_reset"]: | ||
error_context.context( |
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.
As there are two reboot operations, for the second reboot please re-mount the viofs file system.
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.
Thank you for review. Updated. @xiagao
43d8d17
to
291e9fa
Compare
It looks good to me. @qcheng-redhat Could you update the latest results with the latest codes? |
Tested with RHEL 9, Win10 and Win11 guests. RESULTS : PASS 3 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0 |
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.
ACK.
qemu/tests/virtio_fs_share_data.py
Outdated
"Before reboot: %s\n" | ||
"After reboot: %s\n", | ||
(vfsd_num_bf, vfsd_num_af), | ||
for reboot_cmd in ["shell", "system_reset"]: |
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.
@qcheng-redhat I am thinking that is it possible to splite the reboot behavior in the cfg file, something like reboot_shell
and system_reset
under - with_reboot:
in virtio_fs_share_data.cfg
file, which will be very clear for users that there are 2 types of reboot for this scenario.
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.
Updated, Please review. Thanks.
Signed-off-by: qcheng-redhat <qcheng@redhat.com>
291e9fa
to
fe1d06b
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.
ACK.
(1/2) Host_RHEL.m10.u0.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.10.0.x86_64.io-github-autotest-qemu.virtio_fs_share_data.with_cache.auto.with_reboot.with_system_reset.q35: STARTED And all the logs look good to me. |
@YongxueHong Could you please help to take a review here and help to merge if everything is okay from your side? |
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.
Reboot vm by system_reset during virtiofs is working
ID: 3129