Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1409166rwl; Fri, 4 Nov 2022 13:39:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5I4XihyqeBbKcgUZMkdZb74dkmFLS8ork5vrXjZQhdydnE0nIyM6R46MAxEr6DeBXAg3uS X-Received: by 2002:a05:6a00:bd2:b0:56d:8bb9:5a0b with SMTP id x18-20020a056a000bd200b0056d8bb95a0bmr26270518pfu.20.1667594389630; Fri, 04 Nov 2022 13:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667594389; cv=none; d=google.com; s=arc-20160816; b=cZMgbYOTaH9DJZ6VgPotmt40fMryBHZ86dxOvTvy/Nec1lf1xiWTwl9lEwqn+WnzJh E4+oboRAfOsvE53HC4nYBZNX4+BajIH4BgS5jMVdQJ1oT+jWlZtTxMAiEieYd/wfVyF/ Az7FyMSIyum+9I/a8hLqCBFflLIgNdYQtd65MCKS4GWoXwEAWeZDNHAwh5HJRZ9e6C/u xP9n3aLnrSlvCJBJVcSdcef2NkGKt4+jyCP3GEKpdbcc2/eep8E1QruRmQqecd1r4xmB TdIx2oNrC3JV2Zn4cflaFv/rACGoHnaSRVEg/CoRz981kyy2Ra2mQxf0fPQ5JZNp6b03 8vsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WwcH+iZxGlELoSFmbiG2F+LcSAfxo7d4BXkkQPL3oEI=; b=Uq0LNEnkRkVQeoxsdzgrPhqRWkCaLzjszK+yqHgE9v38QcjDc9MZBqKpsWwZHc7mRo CI9F3LLfxbqd4A1UBIOuCQJGLuBKzNO9BS18tkZ+c881oDHOrDKruZT+cT0zaVMJSvzT zd0F9pzw7gYicUqPL2oeWJ8kZhonuabpcpAV1umXUQMgtPVxwI91zqE62T8PEHLjbHO7 a4I4vEhypEZ3rofkAwdjMFmTI/kGLqB96R7sl5B2gucRXLkRWItfByi816AfOgSQhkLZ bA0qH+rJAgOeJw2PJ3Dbd0wZ2nxvNHI7nYrGVkaZSpec2kXH65mnxwbSkoWKcpUFJaQb JRZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Feo7aLcc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a17090aaf8700b00213213d63bbsi510550pjq.41.2022.11.04.13.39.37; Fri, 04 Nov 2022 13:39:49 -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=@google.com header.s=20210112 header.b=Feo7aLcc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229628AbiKDUPn (ORCPT + 97 others); Fri, 4 Nov 2022 16:15:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiKDUPl (ORCPT ); Fri, 4 Nov 2022 16:15:41 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA92931EE9 for ; Fri, 4 Nov 2022 13:15:40 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id m6-20020a17090a5a4600b00212f8dffec9so5491052pji.0 for ; Fri, 04 Nov 2022 13:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WwcH+iZxGlELoSFmbiG2F+LcSAfxo7d4BXkkQPL3oEI=; b=Feo7aLccvIiUFCz0IQvThwilRRuNsyrpZUnftVsZfjj8XYXQSFrIYH3rBJ9pl9AVd1 0QBS4p0eS2Auk5grltqCZHhMy52m2eoOZ3Dyjvl6u7ksM+uKmfXQViJ2DXA8oC3D4Z34 IZgMWO3NptjbIzmMH+7K07NkCucKQA3oBW+yQ9OuKRe0+DMXUgLl0Rs58L/pchkt3qwG SRvLV8FDseMonl0kTvvz0KTjPcnWljQWZJ8bRjD448LzwgH9ljB4ZZnYaguVVVZ5Rh/H Z656e04FZq7s/SPiTN5UXm2Xfu4LYQY2nb1iUEZCzGlvNIqMCMtTR0K0fg2+3idK7iEY /AAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WwcH+iZxGlELoSFmbiG2F+LcSAfxo7d4BXkkQPL3oEI=; b=FJw1f96UUnvnWGVCmGG+2nw4+Z6KRDeLJoGi9WXTVmm9eLU0KEp2LXoSbEzIBomZFW ua0+//uioVT2mmMD1HH8wAX/uUfkgfVZk/rjBIci9xfsRE06WTtru6M55Vk/Xm8aQiUv jd3snx3Pi8ihr+qYwg3wMhyajaDPCCe0Im8b7yrRG+vuZ5Moh/57qpJ08teyBuYqNzSj ISeswOmtzCR1Rww03yBvJRvMmkSZ5dYaCdX2gy/KOo0jIz62dFxdhcgI+ekGhcYQTXHn LspnYCoRlUCqYpQqEXrIAnPTep4ljv4lWhzWCsfDk0wXdC9bj9fqS61ne9bavPj13fux Vi0w== X-Gm-Message-State: ACrzQf3s96IVQeVTUqwiHCGPLGlQggGzgxiO4wlTtSXSMH9IwIgSrJ6c RyI8Xmf+LMMV0C++hXVxAMijeA== X-Received: by 2002:a17:90a:2bc9:b0:212:8210:c92d with SMTP id n9-20020a17090a2bc900b002128210c92dmr38288471pje.38.1667592940349; Fri, 04 Nov 2022 13:15:40 -0700 (PDT) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id i7-20020a17090332c700b00183c67844aesm166908plr.22.2022.11.04.13.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 13:15:39 -0700 (PDT) Date: Fri, 4 Nov 2022 20:15:36 +0000 From: Sean Christopherson To: Chao Gao Cc: 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 , 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 , Thomas Gleixner , Yuan Yao Subject: Re: [PATCH 02/44] KVM: Initialize IRQ FD after arch hardware setup Message-ID: References: <20221102231911.3107438-1-seanjc@google.com> <20221102231911.3107438-3-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,FSL_HELO_FAKE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Fri, Nov 04, 2022, Chao Gao wrote: > On Wed, Nov 02, 2022 at 11:18:29PM +0000, Sean Christopherson wrote: > > > >+ r = kvm_irqfd_init(); > >+ if (r) > >+ goto err_irqfd; > >+ > > r = kvm_async_pf_init(); > > if (r) > >- goto out_free_4; > >+ goto err_async_pf; > > > > kvm_chardev_ops.owner = module; > > > >@@ -5927,6 +5926,9 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align, > > kvm_vfio_ops_exit(); > > err_vfio: > > kvm_async_pf_deinit(); > >+err_async_pf: > >+ kvm_irqfd_exit(); > > >+err_irqfd: > > out_free_4: > > Do you mind removing one of the two labels? Ah, I meant to tack on a patch at the very end to clean up these labels once the dust had settled, e.g. to also resolve the "err" vs. "out" mess I created (on purpose, because trying to describe the "out" path was frustrating and generated too much churn).