From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Henry.Wang@arm.com, Paul Durrant <paul@xen.org>,
Wei Liu <wl@xen.org>, Andrew Cooper <andrew.cooper3@citrix.com>,
Jun Nakajima <jun.nakajima@intel.com>,
Kevin Tian <kevin.tian@intel.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH for-4.17 v2] hvm/apic: repurpose the reporting of the APIC assist options
Date: Tue, 8 Nov 2022 11:09:49 +0100 [thread overview]
Message-ID: <Y2oq7Tc8YDixvk2K@Air-de-Roger> (raw)
In-Reply-To: <4c8d31de-539a-4252-f0a1-617b220eadc2@suse.com>
On Mon, Nov 07, 2022 at 05:58:04PM +0100, Jan Beulich wrote:
> On 04.11.2022 17:18, Roger Pau Monne wrote:
> > --- a/xen/arch/x86/hvm/viridian/viridian.c
> > +++ b/xen/arch/x86/hvm/viridian/viridian.c
> > @@ -197,7 +197,7 @@ void cpuid_viridian_leaves(const struct vcpu *v, uint32_t leaf,
> > res->a = CPUID4A_RELAX_TIMER_INT;
> > if ( viridian_feature_mask(d) & HVMPV_hcall_remote_tlb_flush )
> > res->a |= CPUID4A_HCALL_REMOTE_TLB_FLUSH;
> > - if ( !cpu_has_vmx_apic_reg_virt )
> > + if ( !has_assisted_xapic(d) )
> > res->a |= CPUID4A_MSR_BASED_APIC;
>
> Isn't this too restrictive when considering x2APIC? IOW is there anything
> wrong with leaving this as is?
Using cpu_has_vmx_apic_reg_virt won't be correct, as a domain can have
it disabled now after this change.
When using x2APIC accesses will already be done using MSRs, so the
hint is not useful in that mode.
> > @@ -3432,6 +3436,10 @@ void vmx_vlapic_msr_changed(struct vcpu *v)
> > vmx_set_msr_intercept(v, MSR_X2APIC_PPR, VMX_MSR_R);
> > vmx_set_msr_intercept(v, MSR_X2APIC_TMICT, VMX_MSR_R);
> > vmx_set_msr_intercept(v, MSR_X2APIC_TMCCT, VMX_MSR_R);
> > +
> > + v->arch.hvm.vmx.secondary_exec_control |=
> > + SECONDARY_EXEC_APIC_REGISTER_VIRT;
> > +
> > }
>
> Nit: stray trailing blank line inside the block.
Oh, thanks. I will wait for Andrews feedback then, I think the extra
blank can likely be removed at commit if we agree this is OK.
> Everything else looks plausible to me, but from prior discussion I
> wonder whether the result isn't still going to be too coarse grained
> for Andrew's taste.
Ack, thanks, I think this is the best that we can do given the status
of the release, but would likely need to be quick or else it's gonna
be too late.
Roger.
next prev parent reply other threads:[~2022-11-08 10:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-04 16:18 [PATCH for-4.17 v2] hvm/apic: repurpose the reporting of the APIC assist options Roger Pau Monne
2022-11-04 17:37 ` Paul Durrant
2022-11-05 1:43 ` Henry Wang
2022-11-07 16:58 ` Jan Beulich
2022-11-08 10:09 ` Roger Pau Monné [this message]
2022-11-09 10:56 ` Henry Wang
2022-11-10 22:47 ` Andrew Cooper
2022-11-11 7:45 ` Jan Beulich
2022-11-11 17:35 ` Andrew Cooper
2022-11-11 17:47 ` Andrew Cooper
2022-11-14 13:15 ` Roger Pau Monné
2022-11-14 15:31 ` Andrew Cooper
2022-11-14 16:03 ` Roger Pau Monné
2022-11-14 7:58 ` Jan Beulich
2022-11-11 10:24 ` Roger Pau Monné
2022-11-14 12:21 ` Roger Pau Monné
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=Y2oq7Tc8YDixvk2K@Air-de-Roger \
--to=roger.pau@citrix.com \
--cc=Henry.Wang@arm.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=jun.nakajima@intel.com \
--cc=kevin.tian@intel.com \
--cc=paul@xen.org \
--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.