From: Jan Beulich <jbeulich@suse.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: "Kevin Tian" <kevin.tian@intel.com>,
"Julien Grall" <julien@xen.org>, "Wei Liu" <wl@xen.org>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] VMX: use a single, global APIC access page
Date: Wed, 10 Feb 2021 18:16:03 +0100 [thread overview]
Message-ID: <65d2fe51-a7c5-b6f4-ed6a-430b51db6595@suse.com> (raw)
In-Reply-To: <3c7a4cff-3f11-22e1-ed46-e76f62cc08f4@citrix.com>
On 10.02.2021 18:00, Andrew Cooper wrote:
> On 10/02/2021 16:48, Jan Beulich wrote:
>> The address of this page is used by the CPU only to recognize when to
>> instead access the virtual APIC page instead. No accesses would ever go
>> to this page. It only needs to be present in the (CPU) page tables so
>> that address translation will produce its address as result for
>> respective accesses.
>>
>> By making this page global, we also eliminate the need to refcount it,
>> or to assign it to any domain in the first place.
>>
>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>
> How certain are you about this?
>
> It's definitely not true on AMD's AVIC - writes very definitely end up
> in the backing page if they miss the APIC registers.
Doesn't this require a per-vCPU page then anyway? With a per-domain
one things can't work correctly in the case you describe.
Jan
next prev parent reply other threads:[~2021-02-10 17:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-10 16:48 [PATCH] VMX: use a single, global APIC access page Jan Beulich
2021-02-10 17:00 ` Andrew Cooper
2021-02-10 17:03 ` Jan Beulich
2021-03-01 2:08 ` Tian, Kevin
2021-02-10 17:16 ` Jan Beulich [this message]
2021-02-11 8:45 ` Roger Pau Monné
2021-02-11 10:36 ` Jan Beulich
2021-02-11 11:16 ` Roger Pau Monné
2021-02-11 11:22 ` Jan Beulich
2021-02-11 12:27 ` Roger Pau Monné
2021-03-01 2:18 ` Tian, Kevin
2021-03-01 8:15 ` Jan Beulich
2021-03-01 8:30 ` Tian, Kevin
2021-03-01 9:58 ` Jan Beulich
2021-03-04 7:51 ` Tian, Kevin
2021-02-11 13:53 ` Andrew Cooper
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=65d2fe51-a7c5-b6f4-ed6a-430b51db6595@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=julien@xen.org \
--cc=kevin.tian@intel.com \
--cc=roger.pau@citrix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).