Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-07 Thread Roman Kisel
On 5/6/2025 11:23 PM, Wei Liu wrote: On Tue, May 06, 2025 at 02:58:34AM +, Wei Liu wrote: On Wed, Apr 30, 2025 at 01:47:20PM -0700, Roman Kisel wrote: When starting APs, confidential guests and paravisor guests need to know the CPU number, and the pattern of using the linear search has e

RE: [EXTERNAL] Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-07 Thread Saurabh Singh Sengar
> On Wed, Apr 30, 2025 at 01:47:20PM -0700, Roman Kisel wrote: > > When starting APs, confidential guests and paravisor guests need to > > know the CPU number, and the pattern of using the linear search has > > emerged in several places. With N processors that leads to the O(N^2) > > time complexit

Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-06 Thread Wei Liu
On Tue, May 06, 2025 at 02:58:34AM +, Wei Liu wrote: > On Wed, Apr 30, 2025 at 01:47:20PM -0700, Roman Kisel wrote: > > When starting APs, confidential guests and paravisor guests > > need to know the CPU number, and the pattern of using the linear > > search has emerged in several places. With

Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-06 Thread Wei Liu
On Wed, Apr 30, 2025 at 01:47:20PM -0700, Roman Kisel wrote: > When starting APs, confidential guests and paravisor guests > need to know the CPU number, and the pattern of using the linear > search has emerged in several places. With N processors that leads > to the O(N^2) time complexity. > > Pr

Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-06 Thread Wei Liu
On Mon, May 05, 2025 at 11:12:10AM -0700, Dave Hansen wrote: > On 5/5/25 11:01, Wei Liu wrote: > > You don't need to do that for this patch. Please point me to Thomas' > > reply to the previous version and I can add the missing tag to patch > > while I queue it. > > It's right here: > > htt

Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-05 Thread Wei Liu
On Tue, May 06, 2025 at 02:52:54AM +, Wei Liu wrote: > On Mon, May 05, 2025 at 11:12:10AM -0700, Dave Hansen wrote: > > On 5/5/25 11:01, Wei Liu wrote: > > > You don't need to do that for this patch. Please point me to Thomas' > > > reply to the previous version and I can add the missing tag to

Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-05 Thread Dave Hansen
On 5/5/25 11:01, Wei Liu wrote: > You don't need to do that for this patch. Please point me to Thomas' > reply to the previous version and I can add the missing tag to patch > while I queue it. It's right here: https://lore.kernel.org/all/8734dnouq6.ffs@tglx/ It's pretty darn trivial to

Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-05 Thread Wei Liu
On Mon, May 05, 2025 at 10:22:47AM -0700, Roman Kisel wrote: > > > On 5/2/2025 10:32 AM, Wei Liu wrote: > > On Wed, Apr 30, 2025 at 01:47:20PM -0700, Roman Kisel wrote: > > [...] > > > > arch/x86/coco/sev/core.c | 13 ++--- > > > arch/x86/hyperv/hv_vtl.c | 12 ++--

Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-05 Thread Roman Kisel
On 5/2/2025 10:32 AM, Wei Liu wrote: On Wed, Apr 30, 2025 at 01:47:20PM -0700, Roman Kisel wrote: [...] arch/x86/coco/sev/core.c | 13 ++--- arch/x86/hyperv/hv_vtl.c | 12 ++-- arch/x86/hyperv/ivm.c | 2 +- arch/x86/include/asm/apic.h

Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-02 Thread Wei Liu
On Wed, Apr 30, 2025 at 01:47:20PM -0700, Roman Kisel wrote: > When starting APs, confidential guests and paravisor guests > need to know the CPU number, and the pattern of using the linear > search has emerged in several places. With N processors that leads > to the O(N^2) time complexity. > > Pr

Re: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-05-02 Thread Thomas Gleixner
On Wed, Apr 30 2025 at 13:47, Roman Kisel wrote: > When starting APs, confidential guests and paravisor guests > need to know the CPU number, and the pattern of using the linear > search has emerged in several places. With N processors that leads > to the O(N^2) time complexity. > > Provide the CPU

RE: [PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-04-30 Thread Michael Kelley
From: Roman Kisel Sent: Wednesday, April 30, 2025 1:47 PM > > When starting APs, confidential guests and paravisor guests > need to know the CPU number, and the pattern of using the linear > search has emerged in several places. With N processors that leads > to the O(N^2) time complexity. > >

[PATCH hyperv-next v3] arch/x86: Provide the CPU number in the wakeup AP callback

2025-04-30 Thread Roman Kisel
When starting APs, confidential guests and paravisor guests need to know the CPU number, and the pattern of using the linear search has emerged in several places. With N processors that leads to the O(N^2) time complexity. Provide the CPU number in the AP wake up callback so that one can get the C