Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2540076rwb; Thu, 17 Nov 2022 12:15:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf6HCKh6F2yzFS6lPX6x9A1YtlYu7wPi3IZ4N9kmE3qdVUVGLnLWySz25VUG9bLTP4ppHa3a X-Received: by 2002:a17:906:c35a:b0:78d:2af:a818 with SMTP id ci26-20020a170906c35a00b0078d02afa818mr3386900ejb.675.1668716100336; Thu, 17 Nov 2022 12:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668716100; cv=none; d=google.com; s=arc-20160816; b=bFtBL+5G4FYAkyJiaVnsk7SvFkqf/qKUvYdOND9//8ImvzYCSuP9WNHHUPSf8WO1HZ 2gjrVLalMvSJGuGtGVJZnERB3/GJMpQFNWr3ztls+5TVv96xlKn3A51n6dlPFU8oOTQD VFSBYEu3tq6FlITlqvpHHXR6OoIXQ3jVAsyZHavfpUEDBcyBslEEhUlY+ICXU0pPoSoy sZGVWi2I/ezYvGV4Qyq/ERV0ZuXXRZ9iISNjfLuI60n/1eyJSCO0a1OQI9O7+87t2PxK 9Bpz2G3PWteZ/8x6RpHR4NjSjIwBnkIT3sucpNM2LYlNDBHpgsnoDgx7RU89YOTVAVpR jpFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lezPQytfntV4EBMUEcqBc0Lmh2yWz6QoRT4u+UrJY60=; b=GEdywNb1xZQ35cSahVY+A7PnnuV5n3LAYv0TlUTO7HkKNoqY80o9GaJw7ZOk6JjGoL zxHEOQBNKwDpOjMSQvpdJmSFKbD2rnWyZJFg8Xp9+Gz2u1tPQQRL/q5ctUHG/RMeBoqt CKpdOhNk1QE/yzpY7COpJ0K0TjlSlKS6zfDWOvnVY3rYlWreiklvd09emS8/Z8mJgww0 dT/CyPbIzbRyWaJxpI1SWGfSz1VDKtqj6E+SWzrZcQvp+Y19OCH+yj+oF6l49eGFjEdp MwxFCaFlpWhJD4rN1CAavlTyhsKama7UyVGzswBnq0Mg69JPhswItfRgih8ccjkhWQqJ KZOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=Q4lqPaUu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu4-20020a170906eec400b0078b96722000si1319124ejb.608.2022.11.17.12.14.36; Thu, 17 Nov 2022 12:15:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=Q4lqPaUu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240272AbiKQTmv (ORCPT + 93 others); Thu, 17 Nov 2022 14:42:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233225AbiKQTmt (ORCPT ); Thu, 17 Nov 2022 14:42:49 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01A6187571; Thu, 17 Nov 2022 11:42:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1668714165; bh=E+4NnFSUMwiz6OC8we0hbhRXfPNER6d4goz0qBG9fHs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Q4lqPaUuDMK3GVVcUG7P6ybJ5uUt4vrXt2XIRycWpoLEHTVF4iUS2OIihjdFhQccB f8/5+zns2B5uyc6T7b8C+JAr8dHrKvA3Lpfe8HsxidGybH2bMEUwRtw1zBNqFjl6k4 wi+S7bFzNMClqyV230hvNy0UKM5KAgbSm+FGitYc50tAPQizzRhi3QxGQ1MhrGTiSe vzE9Vmtn67goDKVAR9pUxHneSTprrHbGLsyZrTpDzp/Kp62vfPHK2nXCa7WXAjJKcH 2LT0EFLxS9n7vgN6KINa1efmGnsr/cB0UOzHObKh20EcHTmccgbkUs76OcKkTdNSxt VOs5n5jTiK/Aw== Received: from [172.16.0.153] (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4NCr111cQDzX7j; Thu, 17 Nov 2022 14:42:45 -0500 (EST) Message-ID: Date: Thu, 17 Nov 2022 14:42:56 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v5 08/24] sched: Introduce per memory space current virtual cpu id Content-Language: en-US To: Sean Christopherson Cc: Andy Lutomirski , Peter Zijlstra , linux-kernel@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Boqun Feng , "H . Peter Anvin" , Paul Turner , linux-api@vger.kernel.org, Christian Brauner , Florian Weimer , David.Laight@aculab.com, carlos@redhat.com, Peter Oskolkov , Alexander Mikhalitsyn , Chris Kennelly References: <20221103200359.328736-1-mathieu.desnoyers@efficios.com> <20221103200359.328736-9-mathieu.desnoyers@efficios.com> <2f191ddb-de89-52c0-e7da-26ac0239b8fe@efficios.com> <273f4883-25bc-44ad-9c35-3950ca8a3fcf@efficios.com> From: Mathieu Desnoyers In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-11-17 14:10, Sean Christopherson wrote: > On Thu, Nov 17, 2022, Mathieu Desnoyers wrote: >> On 2022-11-14 15:49, Sean Christopherson wrote: >>> On Fri, Nov 11, 2022, Mathieu Desnoyers wrote: >>>> On 2022-11-10 23:41, Andy Lutomirski wrote: >>>>> On Thu, Nov 3, 2022 at 1:05 PM Mathieu Desnoyers >>>>> wrote: >>>>> Also, in my mind "virtual cpu" is vCPU, which this isn't. Maybe >>>>> "compacted cpu" or something? It's a strange sort of concept. >>>> >>>> I've kept the same wording that has been introduced in 2011 by Paul Turner >>>> and used internally at Google since then, although it may be confusing if >>>> people expect kvm-vCPU and rseq-vcpu to mean the same thing. Both really end >>>> up providing the semantic of a virtually assigned cpu id (in opposition to >>>> the logical cpu id on the system), but this is much more involved in the >>>> case of KVM. >>> >>> I had the same reaction as Andy. The rseq concepts don't worry me so much as the >>> existence of "vcpu" in mm_struct/task_struct, e.g. switch_mm_vcpu() when switching >>> between KVM vCPU tasks is going to be super confusing. Ditto for mm_vcpu_get() >>> and mm_vcpu_put() in the few cases where KVM currently does mmget()/mmput(). >> >> I'm fine with changing the wording if it helps make things less confusing. >> >> Should we go for "compact-cpu-id" ? "packed-cpu-id" ? Other ideas ? > > What about something like "process-local-cpu-id" to capture that the ID has meaning > only within the associated address space / process? Considering that the shorthand for "memory space" is "VM" in e.g. "CLONE_VM" clone(2) flags, perhaps "vm-cpu-id", "vm-local-cpu-id" or "per-vm-cpu-id" ? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com