All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Ross Lagerwall <ross.lagerwall@citrix.com>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	"Teddy Astie" <teddy.astie@vates.tech>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Julien Grall" <julien@xen.org>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Daniel P. Smith" <dpsmith@apertussolutions.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH v1 0/2] domctl: Avoid taking domctl lock for certain ops used during migration
Date: Mon, 15 Jun 2026 13:34:12 +0200	[thread overview]
Message-ID: <023a55e7-233b-45d0-a4e7-74a6cf2ae45d@suse.com> (raw)
In-Reply-To: <683a3df4-21c7-434e-96c8-934631673795@citrix.com>

On 15.06.2026 13:17, Ross Lagerwall wrote:
> On 6/11/26 5:06 PM, Jan Beulich wrote:
>> On 11.06.2026 18:02, Ross Lagerwall wrote:
>>> On 6/11/26 3:55 PM, Jan Beulich wrote:
>>>> On 09.06.2026 17:15, Ross Lagerwall wrote:
>>>>> When performing multiple migrations in parallel, the domctl lock may
>>>>> become extremely contended:
>>>>>
>>>>> * Operations like "xl vcpu-list" were observed to take in excess of 20s
>>>>>     to execute.
>>>>
>>>> Does "xl vcpu-list" involve ...
>>>>
>>>>> * The "clean" shadow op may pause the domain, restart with a
>>>>>     continuation and then become blocked on the domctl lock, causing VM
>>>>>     downtime in excess of 20 seconds.
>>>>>
>>>>> These issues can be fixed by not holding the domctl for the frequently
>>>>> called operations during migration.
>>>>>
>>>>> Thanks
>>>>>
>>>>> Ross Lagerwall (2):
>>>>>     domctl: Handle XEN_DOMCTL_getpageframeinfo3 without the domctl lock
>>>>
>>>> ... XEN_DOMCTL_getpageframeinfo3?
>>>>
>>>
>>> No, but "xl vcpu-list" takes the domctl lock
>>
>> If this is still the case after XSA-492, then maybe the follow-ups I have
>> pending to post will eliminate (or at least reduce) this. I don't think
>> that's 4.22 material, though.
> 
> Yes, AFAICT "xl vcpu-list" calls XEN_DOMCTL_getvcpuinfo and
> XEN_DOMCTL_getvcpuaffinity for each domain and both of these still take
> the domctl lock.

XEN_DOMCTL_getvcpuinfo is taken care of by my to-be-posted follow-on.
XEN_DOMCTL_[gs]etvcpuaffinity first need to have their own locking added,
before their handling can be moved out.

Jan


      reply	other threads:[~2026-06-15 11:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-09 15:15 [PATCH v1 0/2] domctl: Avoid taking domctl lock for certain ops used during migration Ross Lagerwall
2026-06-09 15:15 ` [PATCH v1 1/2] domctl: Handle XEN_DOMCTL_getpageframeinfo3 without the domctl lock Ross Lagerwall
2026-06-10  8:17   ` Roger Pau Monné
2026-06-11 13:11   ` Daniel P. Smith
2026-06-11 14:23     ` Roger Pau Monné
2026-06-11 14:25       ` Daniel P. Smith
2026-06-09 15:15 ` [PATCH v1 2/2] domctl: Handle some of XEN_DOMCTL_shadow_op " Ross Lagerwall
2026-06-10  8:35   ` Roger Pau Monné
2026-06-10  9:50     ` Ross Lagerwall
2026-06-11 13:18   ` Daniel P. Smith
2026-06-11 14:20     ` Roger Pau Monné
2026-06-11 14:24       ` Daniel P. Smith
2026-06-11 15:02   ` Jan Beulich
2026-06-15 14:23   ` Jan Beulich
2026-06-10  9:57 ` [PATCH v1 0/2] domctl: Avoid taking domctl lock for certain ops used during migration Ross Lagerwall
2026-06-10 11:48   ` Oleksii Kurochko
2026-06-11 14:55 ` Jan Beulich
2026-06-11 16:02   ` Ross Lagerwall
2026-06-11 16:06     ` Jan Beulich
2026-06-15 11:17       ` Ross Lagerwall
2026-06-15 11:34         ` Jan Beulich [this message]

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=023a55e7-233b-45d0-a4e7-74a6cf2ae45d@suse.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=dpsmith@apertussolutions.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=roger.pau@citrix.com \
    --cc=ross.lagerwall@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=teddy.astie@vates.tech \
    --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.