[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 0/2] domctl: Avoid taking domctl lock for certain ops used during migration
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
- Date: Mon, 15 Jun 2026 12:17:59 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cKnKsblZOtUHkaeMEgVjkBmhyXkauCACqHhYTwaQB90=; b=HT/HKypfmJZGfQ42rvSdyvSj4/wT3c+iDiG3SlMCunF+bwbJfFmwj9iH1UVkb0hSM9bHmVI/hz8udHp2S41jflSyrTGUpJL4lRmv0ETicuvsy0en9gx5WewCOJypz+yDVjju/YjB2XDzuhd1dpkEw4N0GIeOOUyusAX5WtKFebabmSg9liF5N54ce0zcxMFxw83RZVy0BADV5TEmEfhr3CT6Jzc7SxgV1W0LZPE3lo34TcryrvLf0tWnOudKtDCiJSZYKTlM0Fke9iceaGTJ2ZoYSJtW2e8YvXFGOsdgCj+F9/SChGr4VmDQhZLoCqJNN+cJMgu7b2VJfLgRCTH2lw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UaKxBQykhkyQYhd08juX/7L8o3AHd9XZ1H+kryouNoNU3ZLAlQa/GK+KCKq5P7VPD6C14QR/YzGJsh3uZkzCh/n5V34RRs+ODur0cjOUeGwsOmRH88zapkhPPP0Eex1DzpYfqFBSqmL3dxnxGAHp2RM2KO/qjvemdIxyuJTQcrfpw+1CGFYiTd2UxXhWa+icYCsmcG97EPB0IiS+89wX94ly9S/VCsranKnIW//e0O4nEUq2qeEfcGR0Tvcda/fQhLqY84EKeidWw+7PUGegmVFDBuxjZNF71wWp28TlHMgSCl0n/kG2Clxu+avuU6KN+g/7utYPfEqip3o0cBQsgQ==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 15 Jun 2026 11:18:12 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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.
Ross
|