From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C350C4332F for ; Thu, 3 Nov 2022 07:13:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231215AbiKCHNL (ORCPT ); Thu, 3 Nov 2022 03:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbiKCHM4 (ORCPT ); Thu, 3 Nov 2022 03:12:56 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E11E12AD3 for ; Thu, 3 Nov 2022 00:12:11 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id a14so1289370wru.5 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=O68WoM05kJG5qOV153HdRgdpyKaQFuW6k+NLyhbyApPDq8aFiSrJtQZxaSMbZ6ELBs fZxsmlT6CRrqPuAmoc8bOpqbOnm3HWI9fCmvE/ZF+EFutcOIu+cctgdBsGd5RFNa2CLl ZKxK8FLtx5yfolxdK2IZxVAH4ReAEzSe5C9ltQd8ZjWBjOh912bd7gSSeSZcSHq1DOwZ KdAZyUwCFdZwSjqV76ioPhNIouzIvf8In+pci0ghYYlBMM7YoYH87QToBmI2FcWHUhXc IvZQ5vNh9qSlbJsnSJpVXbgf8AVLnlpWXGLnVHMonvnBblDciPTHRSUa3x3dHbcar/QG /t2A== X-Gm-Message-State: ACrzQf1SWbB99wxYvCo84FyleaRE42lfEQLZW+4I/5i9P4QudXjnaMsI hNibJXEafhoXllMEJomaPR8QCw== X-Google-Smtp-Source: AMsMyM6cHSUzeR4K9K8x56LNKCrmIwrY3rn7gLNAI0DHx5P8Dkfz8OPY8ArcGxqxO2wWVx+YIs8sgw== 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@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é