Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1759308pxb; Wed, 9 Feb 2022 04:01:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMX8O/JFthqBNYMfDJ83jqnubg+jh35GRPG5VjFxV7GxLq2/l3Km7jOyXWRXxWf2DtczBC X-Received: by 2002:a62:6141:: with SMTP id v62mr1886706pfb.61.1644408099161; Wed, 09 Feb 2022 04:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644408099; cv=none; d=google.com; s=arc-20160816; b=u7XvS0eewjvJ3eONL9JXua9IcFeMvkpfeIm4FtaoGvpNaZxiPwmzFmGw07Xel+MxN/ UeDx8t38N29nm2zZWQIruEwxAW66b1JbZ37Th7cMARMVIlcaHE+r/NZ88RC6z0E7a47D BWzBf1HKZ3nLaBk7kGImjmcebIuTHqp5aB2zNNHZxRunxYT/yDOt33dw1uSa54lwExgR aePzozDJ7bbHAiJzWvOwxO3Qp7UnGfsscerGXsib/gxw9lQpOlDwORBxYvq+aiCV5LXi 5sZBSFlb1nxdLXFq7LsMSjeElE+/DuFZ/gMjnYPklwKD37VG2ZUYSnoiWTn8mzZ9YfCy Ysmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TtPCVj55zuvZgQ2LAcoSNnRiXg15DuewCoLYieUX59A=; b=Vbin9SU+GyXAsPE7vKx5Tevsgf83Oe5uAovSYYvJVceDugVyRk1ZBR2ZcOfLVQBX3J lQ6kU+a09RZUupGmTAkNzDSJLtddY107/hN9wyLxqGwXqMO1wGB+S5FUTAPbUFnnDJpy cy6n7aAp1JoLcbO/c9CvyGfv/BXXqGVe+bXaMKEdvMUEG0fAcSvfbhbLDAWSd7iI7Ma0 cKfAqnxAoUVZJxrPOd7jDzwjMlUjrWHlj1QQ+mZfPuAWZM4lOGJ4yhxBcnUp54ESKAWd 8m3iRX/b9FjvkOnLDSBm3uwlDvzc4pfgQMI+dzOMMWUWG4YXMbEAC+10vIIa1vg9XkIv HO+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZDXHH6KX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j15si10506238plx.415.2022.02.09.04.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:01:39 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZDXHH6KX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3DDF3E0F2C67; Wed, 9 Feb 2022 02:04:08 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384351AbiBHRhh (ORCPT + 99 others); Tue, 8 Feb 2022 12:37:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384340AbiBHRhf (ORCPT ); Tue, 8 Feb 2022 12:37:35 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 551DCC06174F for ; Tue, 8 Feb 2022 09:37:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E55CF617BB for ; Tue, 8 Feb 2022 17:37:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 585C6C004E1; Tue, 8 Feb 2022 17:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644341850; bh=t26HgygNCh8gCfuTN/ojA3LnBOvxFUkG2+R14a7qPUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZDXHH6KXySyqGenuzjikTOkmMlmgn61tcGHp65CJstK7pekDYRNyzdPbsWcUdRHMa be9t0aqXdDBJZb2jh3M2ctzvjGKPhT2+U8miu88OGgesRiFS9qXr3dc9MBm6tagmwz vOEQKiTzfNU/5ARKxOpFxgcWjZ7pTKxkjlDZxqjKohjn1KxVvI9YexxZfQo0TFibwA 2W1FOUJIJrluOsvh9LjXLg79eDMJ/gQF0HttM5iJCclCaGPPEvvIuxcp0nd2NYkoIP JaWnyT/RDPoiM/SXeYzlWDGxq1lDtrtgq5PPZG7Hy+jHEZijyvDHudQ9opSnqKHdZW NO2nOr+ZV8syw== Received: from sofa.misterjones.org ([185.219.108.64] helo=hot-poop.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nHUQi-006Ksl-E4; Tue, 08 Feb 2022 17:37:28 +0000 From: Marc Zyngier To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shameer Kolothum Cc: will@kernel.org, jonathan.cameron@huawei.com, Alexandru.Elisei@arm.com, catalin.marinas@arm.com, linuxarm@huawei.com, jean-philippe@linaro.org, qperret@google.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, james.morse@arm.com Subject: Re: [PATCH v4 0/4] kvm/arm: New VMID allocator based on asid Date: Tue, 8 Feb 2022 17:37:27 +0000 Message-Id: <164434147328.3931943.1270605694385749340.b4-ty@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211122121844.867-1-shameerali.kolothum.thodi@huawei.com> References: <20211122121844.867-1-shameerali.kolothum.thodi@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, shameerali.kolothum.thodi@huawei.com, will@kernel.org, jonathan.cameron@huawei.com, Alexandru.Elisei@arm.com, catalin.marinas@arm.com, linuxarm@huawei.com, jean-philippe@linaro.org, qperret@google.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, james.morse@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, 22 Nov 2021 12:18:40 +0000, Shameer Kolothum wrote: > Changes from v3: > - Main change is in patch #4, where the VMID is now set to an > invalid one on vCPU schedule out. Introduced an > INVALID_ACTIVE_VMID which is basically a VMID 0 with generation 1. >   Since the basic allocator algorithm reserves vmid #0, it is never > used as an active VMID. This (hopefully) will fix the issue of > unnecessarily reserving VMID space with active_vmids when those > VMs are no longer active[0] and at the same time address the > problem noted in v3 wherein everything ends up in slow-path[1]. > > [...] Applied to next, thanks! [1/4] KVM: arm64: Introduce a new VMID allocator for KVM commit: 417838392f2e657ee25cc30e373ff4c35a0faa90 [2/4] KVM: arm64: Make VMID bits accessible outside of allocator commit: f8051e960922a9de8e42159103d5d9c697ef17ec [3/4] KVM: arm64: Align the VMID allocation with the arm64 ASID commit: 3248136b3637e1671e4fa46e32e2122f9ec4bc3d [4/4] KVM: arm64: Make active_vmids invalid on vCPU schedule out commit: 100b4f092f878dc379f1fcef9ce567c25dee3473 Cheers, M. -- Without deviation from the norm, progress is not possible.