Skip to content
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

Update cpu_model_flags value #3988

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

leidwang
Copy link
Contributor

@leidwang leidwang commented Sep 2, 2024

Currently, cpu_model_flags's value is missing ',', it may cause
the issue that cpu_model_flags's can be parsed correctly.

ID: 2819

Currently, cpu_model_flags's value is missing ',', it may
cause the issue that cpu_model_flags's can be parsed correctly.

Signed-off-by: Leidong Wang <[email protected]>
@leidwang
Copy link
Contributor Author

leidwang commented Sep 2, 2024

Hi @YongxueHong
Would you please help review it when you have time?Thanks!

@YongxueHong
Copy link
Contributor

Hi @XueqiangWei , @peixiu , @fbq815 , @lkotek , @yanan-fu
Could you help to review it? Thanks in advance.

Copy link
Contributor

@YongxueHong YongxueHong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fbq815
Copy link
Contributor

fbq815 commented Sep 4, 2024

seems the change won't influence s390x, could skip this time

@lkotek
Copy link
Contributor

lkotek commented Sep 4, 2024

LGTM 👍 I am fine with the change, thanks!

@yanan-fu
Copy link
Contributor

yanan-fu commented Sep 4, 2024

Approve after check the whole logic.

To be safe for all, every += for cpu_model_flags can (need) start with , based on the cpu flag parse rule[1] and the rule of adding cpu flag in command line [2][3].

[1]

flags_list = cpu_flags_str.lstrip(",").split(",")

[2]
params["cpu_model_flags"] = cpu.recombine_qemu_cpu_flags(

[3]
if not flags.startswith(","):

@peixiu
Copy link
Contributor

peixiu commented Sep 5, 2024

(11/28) Host_RHEL..u0.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.hv_time.q35: STARTED
(11/28) Host_RHEL..u0.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.hv_time.q35: PASS (502.87 s)
(12/28) Host_RHEL..u0.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.hv_crash.q35: STARTED
(12/28) Host_RHEL..u0.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.hv_crash.q35: PASS (366.60 s)
(13/28) Host_RHEL..u0.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.hv_reset.q35: STARTED
(13/28) Host_RHEL..u0.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.hv_reset.q35: PASS (197.27 s)
(14/28) Host_RHEL..u0.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.hv_tlbflush.q35: STARTED
(14/28) Host_RHEL..u0.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.hv_tlbflush.q35: PASS (906.57 s)

LGTM!
Acked-by: Peixiu Hou [email protected]

@YongxueHong
Copy link
Contributor

Hi @XueqiangWei
Could you help to review it? Just a kindly reminder.
Thanks in advance.

Copy link
Contributor

@XueqiangWei XueqiangWei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM,
Acked-by: [email protected]

@YongxueHong YongxueHong merged commit 22b34aa into avocado-framework:master Sep 9, 2024
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants