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,
Anthony PERARD <anthony.perard@vates.tech>,
Michal Orzel <michal.orzel@amd.com>,
Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: [PATCH v2] x86/domain: adjust limitation on shared_info allocation below 4G
Date: Wed, 4 Feb 2026 17:54:58 +0100 [thread overview]
Message-ID: <aYN54n8b1gYXYiTq@Mac.lan> (raw)
In-Reply-To: <a7ba4cfd-d452-48f4-99c8-a7c283facfd2@suse.com>
On Wed, Feb 04, 2026 at 04:32:25PM +0100, Jan Beulich wrote:
> On 04.02.2026 16:12, Andrew Cooper wrote:
> > On 04/02/2026 3:01 pm, Roger Pau Monné wrote:
> >>>> + share_xen_page_with_guest(virt_to_page(d->shared_info), d, SHARE_rw);
> >>>> + /* Ensure all references to the old shared_info page are dropped. */
> >>>> + for_each_vcpu( d, v )
> >>>> + vcpu_info_reset(v);
> >>> switch_compat() can only occur on a domain with no memory. How can we
> >>> have outstanding references?
> >> As Jan pointed out, it's not references, but stashed pointers to the
> >> previous shared_info page. I've used the wrong wording here.
> >
> > Yes, I saw that thread, but my question still stands.
> >
> > How can there be any this early in the domain's lifecycle?
>
> Can't (aren't) vCPU-s added ahead of adding memory?
At least on x86 when using xl/libxl the call to
XEN_DOMCTL_set_address_size happens after the call to
XEN_DOMCTL_max_vcpus, and the later calls vcpu_create() which sets the
pointer into the shared_info page for legacy (< 32) vCPUs.
Even if we could invert those two calls, it's impossible to know what
other toolstacks might do. I think we need to keep the
vcpu_info_reset() call.
Thanks, Roger.
next prev parent reply other threads:[~2026-02-04 16:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-04 12:25 [PATCH v2] x86/domain: adjust limitation on shared_info allocation below 4G Roger Pau Monne
2026-02-04 14:06 ` Jan Beulich
2026-02-04 14:52 ` Roger Pau Monné
2026-02-04 15:08 ` Jan Beulich
2026-02-04 16:46 ` Roger Pau Monné
2026-02-05 8:29 ` Jan Beulich
2026-02-05 14:08 ` Roger Pau Monné
2026-02-05 14:12 ` Jan Beulich
2026-02-04 14:20 ` Andrew Cooper
2026-02-04 14:40 ` Jan Beulich
2026-02-04 15:10 ` Andrew Cooper
2026-02-04 15:01 ` Roger Pau Monné
2026-02-04 15:04 ` Jan Beulich
2026-02-04 15:12 ` Andrew Cooper
2026-02-04 15:32 ` Jan Beulich
2026-02-04 16:54 ` Roger Pau Monné [this message]
2026-02-04 17:23 ` Andrew Cooper
2026-02-04 17:46 ` 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=aYN54n8b1gYXYiTq@Mac.lan \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.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.