[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 00/13] make better use of domain_vcpu()
- To: jbeulich@xxxxxxxx
- From: Stephen Cheng <stephen.cheng@xxxxxxxxxx>
- Date: Wed, 2 Dec 2026 14:32:37 +0800
- 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=+woAJnWMp1RDaPm7XstOi8O4zCZTGpNEuNkQHL+XQnY=; b=ILmDwYg3GAZ6EMQfaisVkElHbbr6mNIeD6E55PM5YCwiEaoMjCSgYPaoh+J3oY8QobhiNx1GIKnreJmFJa/UzTazXXlvOLi05vqEveivKikSpnkaelue4oWslahcp8MiqyB9XS9zfJ65K0CYC+9F8mew7b7++DdimEImdXU0nn36GSqe4lt7ciG4aBi+JF+6Ol4i5mCALro+EbtaCw5TmquBQ7CvCZuQqr8ZHkR2RM2mcNulZ1lzuAJgh2Fjp41gKKQV1OXMhXFRgRIFohejlVcCdqRFqkAsUVqRq/Voyn9A/UhWh/sE0al4ZQdpMUFqKEo+oWa9D1Qb60f4d3Ltdw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vqrnz4/2KLBk9jWvANUG1XQ7F69NbM4SgUalFHUd5jS0so5CN3Xk0ZH8URARW9Ghl+4a8hJMpuPflFKaQU3vgbi9fLJZUue5uNJIWkHPafJtZ12JNeHTtufoyekyI6ea2J55obcWFwk/3wCKFUsoULFD82/ndM09NklskR9aabnA6YimbsLyScscjlglN6UBXhFTWtS0VTx5HHZIKH8Ba4siUkuTbFEYCmYpkK8NJH5uO8lz7RTqYk66XtyGfKe7sLbukhVxD+mgxrzdInPEscn8UG9dWybaq01i7TcmA0T4uDSLzFXZrk1IBUjGqTov/hx/fdLCFmInNbBjmG9BXA==
- 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: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Stephen Cheng <stephen.cheng@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
- Delivery-date: Wed, 02 Dec 2026 06:33:10 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 26/11/2026 12:48, Jan Beulich wrote:
> I.e. reduce the number of instances where we access d->vcpu[] directly.
> The series doesn't cover all cases, just a fair part. I think there are
> no inter-dependencies between the individual patches.
>
> [...]
> 04: domctl: use domain_vcpu() in XEN_DOMCTL_{g,s}etvcpucontext handling
> 05: vm-event: use domain_vcpu() in domctl handling
> 06: numa: use domain_vcpu() in domain_to_node()
> 07: x86/time: use domain_vcpu() in tsc_set_info()
> 08: x86/paging: use domain_vcpu() in paging_domctl()
> 09: x86/dm: use domain_vcpu()
> 10: x86/HVM/MTRR: use domain_vcpu()
> 11: x86/HVM: introduce hvm_load_vcpu_instance()
> 12: x86/vPMU: use domain_vcpu()
> 13: x86/domctl: use domain_vcpu() to handle various sub-ops
One small thing: 11 does not apply without 10, since its mtrr.c hunk
is on top of 10's change to hvm_load_mtrr_msr(). Maybe 10 could leave
that function alone, as 11 rewrites it anyway.
I checked 04-10, 12 and 13 against the old code. In each of them the
new domain_vcpu() check covers the cases the old open-coded check did.
For patches 04-10, 12 and 13:
Reviewed-by: Stephen Cheng <stephen.cheng@xxxxxxxxxx>
Stephen
|