Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1113656rwi; Thu, 3 Nov 2022 00:53:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5tGtIqMghAJuWEZjbbtydPMVz1/DohBMrjKzFwndfCFNp9yRrDMy8udCgdhby8frXe762Q X-Received: by 2002:a17:902:f684:b0:187:1d07:7339 with SMTP id l4-20020a170902f68400b001871d077339mr20509042plg.23.1667462014901; Thu, 03 Nov 2022 00:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667462014; cv=none; d=google.com; s=arc-20160816; b=DJhJFJNN6bknxZ4m7pGvgCDhTlIneIjO5ou8yiZk1Fl7K/Nqv6VbZ167f1BPt6JTxI qdNC1IUKYy17FfdT6sf0YP6rKF2J64H4HLnGsgQ+gWrYFXSIXvcOOxMwatAV0GgOKEKF x92FdPAKqDIDojAATq9mVY1n4KXWpo6uwvuKM22V4FIR4WhRxe1cwSXKyFU01W5SOXQX kUqnkxKTELghoA/99Igu/2EN2sFgxcpteSr983Mlc3N362x6CmvhOktZgY0q+rQSc/rh iJnoYupOVq2FgS6IxZagF5QNpfmrtRkEXl9V3zvqpp/WZsmPIqLAS7V8e2yZsB/xIjh/ QV8w== 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=OBfEswiMsti3OjaKbPQcyAca5te7/jZ5jHcc8SlAT9E=; b=W0F6vMLGV9/GbXN53ZdFhVu3azo8FVihIcMnlhhi8a02GxPqD2sHscoEeZYwLRwkCn 6UTlcJE8hz+Pz8iJ6hn254AYuY7nWGpcwq5i3I92T7eaBIbJmD2Ds8CfTZn8QiGbKguM KcafORt1KdvlS7wqFKj1wNDcMtgWBcpSDCkwxGcgHYQVWgl+WMuZCOdtvkyhFDMBlB3h 4EWNRJ8xOW6ZGe0CaR/R1WV2vblUFsIP5zLwBJS9p7Q1bfXcHGgUNXk5SE7kJkBufdRD 9HMLq/z+6e3FNh+TOwHOqyTYzpXfJ/T0GhK+6G+tRHPxMeR8NqprxpienxZWU+cqP46g zpqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EOYmqRt+; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y73-20020a638a4c000000b0046b30704f88si298156pgd.5.2022.11.03.00.53.22; Thu, 03 Nov 2022 00:53:34 -0700 (PDT) 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=@linaro.org header.s=google header.b=EOYmqRt+; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231269AbiKCHNN (ORCPT + 97 others); Thu, 3 Nov 2022 03:13:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbiKCHM4 (ORCPT ); Thu, 3 Nov 2022 03:12:56 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E3FD12AE5 for ; Thu, 3 Nov 2022 00:12:11 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id k8so1321554wrh.1 for ; Thu, 03 Nov 2022 00:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OBfEswiMsti3OjaKbPQcyAca5te7/jZ5jHcc8SlAT9E=; b=EOYmqRt+/NXugZnlIP4em6mI3EQkzvGwpLXhzORTBxBkCP2uHtj6EIHrWTEowCV0gy LjLxmy1kx2FmBqwAXMu8s7YUEChDsUQy5qxfdkx40NZii0vXZu9Y5+E9WIQ98im7w2Qz aOc+G9yXO8FMp2gmsGVhL5vc6lj4hdeRWLBju/dhOwwfhZrxP6JKghml+WEnDzleKfR2 xT+vK0HSOhR2frMY/9x+44r4Scku2Y/ouh8iYDp71I/Bsog0PelRVmfpSZ0wxjqL2jqd o6DVxRPDxt5z1+9lDTnQ22y8cNKN7oK+0fUhVvCWoxg4QyLcgrLA6TLc/Hs3GkkFsCs4 skXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OBfEswiMsti3OjaKbPQcyAca5te7/jZ5jHcc8SlAT9E=; b=CswkyZMMFAsxoAKJEWQAV5aylQC6Q4ZUbnP6MBG06nl0Ccdd/satGM+DWnvVAbJswF b4t3VX2FdpENCAO7TnhcobIAvcvDxc10GdkBnGIb/3EU47WzJD7EFuQPlfPULGb4dZWE vaQl4BsXKj4NdvuLg9KvasZUfe+gn2z4n9IX/Qe4ueU9csLcB5cTDmSzb8M+xmm+LovL kal1ojO+dqTL/jvOuFXaCyQ35y2uHNGL6KE+qFQq0jUst06I0q/QDBOdc8Q/CKteKUl2 BpcSsXZUbgNTk9a0MZr7ungCu8uDZ74RvpoD5zd2D/XdGoT1i6MDPvsoWTKcSr70LY33 06Cg== X-Gm-Message-State: ACrzQf0J8T+LywyS003YLkYcNdUQd+0Amv0qthheoVJmqfD9rfNysz0G 4zdLmnEUu1HlokqrhQiDKwrbFQ== X-Received: by 2002:a5d:644d:0:b0:236:8330:a5bf with SMTP id d13-20020a5d644d000000b002368330a5bfmr17103381wrw.125.1667459529624; Thu, 03 Nov 2022 00:12:09 -0700 (PDT) Received: from [192.168.11.175] (216.red-88-29-181.dynamicip.rima-tde.net. [88.29.181.216]) by smtp.gmail.com with ESMTPSA id k15-20020adff28f000000b00236740c6e6fsm1599wro.100.2022.11.03.00.12.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 00:12:09 -0700 (PDT) Message-ID: <9cec1cc6-5050-9fc6-46ec-a8984b8266a8@linaro.org> Date: Thu, 3 Nov 2022 08:12:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 21/44] KVM: MIPS: Register die notifier prior to kvm_init() Content-Language: en-US To: Sean Christopherson , Paolo Bonzini , Marc Zyngier , Huacai Chen , Aleksandar Markovic , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Matthew Rosato , Eric Farman , Vitaly Kuznetsov Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , Atish Patra , David Hildenbrand , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Isaku Yamahata , Fabiano Rosas , Michael Ellerman , Chao Gao , Thomas Gleixner , Yuan Yao References: <20221102231911.3107438-1-seanjc@google.com> <20221102231911.3107438-22-seanjc@google.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20221102231911.3107438-22-seanjc@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 3/11/22 00:18, Sean Christopherson wrote: > Call kvm_init() only after _all_ setup is complete, as kvm_init() exposes > /dev/kvm to userspace and thus allows userspace to create VMs (and call > other ioctls). > > Signed-off-by: Sean Christopherson > --- > arch/mips/kvm/mips.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) Reviewed-by: Philippe Mathieu-Daudé