From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Wei Liu <wl@xen.org>, Kevin Tian <kevin.tian@intel.com>,
Jun Nakajima <jun.nakajima@intel.com>
Subject: Re: [PATCH v4 3/8] VMX: tertiary execution control infrastructure
Date: Thu, 1 Feb 2024 18:10:46 +0100 [thread overview]
Message-ID: <ZbvQlrj7u-bwoVzy@macbook> (raw)
In-Reply-To: <56822f9c-6156-4652-9de1-3d599e22c51a@suse.com>
On Thu, Feb 01, 2024 at 01:09:11PM +0100, Jan Beulich wrote:
> On 01.02.2024 12:50, Roger Pau Monné wrote:
> > On Thu, Jan 11, 2024 at 10:00:10AM +0100, Jan Beulich wrote:
> >> @@ -503,6 +538,9 @@ static int vmx_init_vmcs_config(bool bsp
> >> "Secondary Exec Control",
> >> vmx_secondary_exec_control, _vmx_secondary_exec_control);
> >> mismatch |= cap_check(
> >> + "Tertiary Exec Control",
> >> + vmx_tertiary_exec_control, _vmx_tertiary_exec_control);
> >
> > I know it's done to match the surrounding style, but couldn't you move
> > the name parameter one line up, and then limit the call to two lines?
> >
> > (I don't think it will compromise readability).
>
> You mean like this:
>
> mismatch |= cap_check("Tertiary Exec Control",
> vmx_tertiary_exec_control, _vmx_tertiary_exec_control);
>
> ? No, I view this as a mix of two possible styles. If the string literal
> was moved up, the other legitimate style would only be
>
> mismatch |= cap_check("Tertiary Exec Control",
> vmx_tertiary_exec_control,
> _vmx_tertiary_exec_control);
>
> aiui (again extending over 3 lines). Yet none of this is written down
> anywhere.
>
> But anyway - consistency with surrounding code trumps here, I think.
I was hoping it could still fit on 2 lines, but if you need 3 never
mind then.
> >> @@ -2068,10 +2111,12 @@ void vmcs_dump_vcpu(struct vcpu *v)
> >> vmr(HOST_PERF_GLOBAL_CTRL));
> >>
> >> printk("*** Control State ***\n");
> >> - printk("PinBased=%08x CPUBased=%08x SecondaryExec=%08x\n",
> >> + printk("PinBased=%08x CPUBased=%08x\n",
> >> vmr32(PIN_BASED_VM_EXEC_CONTROL),
> >> - vmr32(CPU_BASED_VM_EXEC_CONTROL),
> >> - vmr32(SECONDARY_VM_EXEC_CONTROL));
> >> + vmr32(CPU_BASED_VM_EXEC_CONTROL));
> >> + printk("SecondaryExec=%08x TertiaryExec=%08lx\n",
> >
> > For consistency, shouldn't TertiaryExec use 016 instead of 08 (as it's
> > a 64bit filed).
>
> Perhaps, assuming we'll gets bits 32 and populated sooner or later.
> However, I view 16-digit literal numbers as hard to read, so I'd be
> inclined to insert a separator (e.g. an underscore) between the low
> and high halves. Thoughts?
Works for me.
Thanks, Roger.
next prev parent reply other threads:[~2024-02-01 17:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-11 8:57 [PATCH v4 0/8] x86emul: misc additions Jan Beulich
2024-01-11 8:59 ` [PATCH v4 1/8] x86emul: support LKGS Jan Beulich
2024-01-11 8:59 ` [PATCH v4 2/8] x86emul: support CMPccXADD Jan Beulich
2024-01-11 9:00 ` [PATCH v4 3/8] VMX: tertiary execution control infrastructure Jan Beulich
2024-02-01 11:50 ` Roger Pau Monné
2024-02-01 12:09 ` Jan Beulich
2024-02-01 17:10 ` Roger Pau Monné [this message]
2024-02-05 13:37 ` [PATCH v4.5 " Jan Beulich
2024-02-06 9:28 ` Roger Pau Monné
2024-02-06 9:37 ` Jan Beulich
2024-01-11 9:00 ` [PATCH v4 4/8] x86emul+VMX: support {RD,WR}MSRLIST Jan Beulich
2024-01-11 9:01 ` [PATCH v4 5/8] x86: introduce x86_seg_sys Jan Beulich
2024-01-11 9:01 ` [PATCH v4 6/8] x86emul: support USER_MSR instructions Jan Beulich
2024-01-11 9:01 ` [PATCH v4 7/8] x86/cpu-policy: re-arrange no-VMX logic Jan Beulich
2024-01-11 9:02 ` [PATCH v4 8/8] VMX: support USER_MSR Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZbvQlrj7u-bwoVzy@macbook \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=jun.nakajima@intel.com \
--cc=kevin.tian@intel.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.