Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1252445rdb; Fri, 16 Feb 2024 09:36:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV3b5Sm0nd7cLsQcTeQgUo0EKTq/YujEgtoQOKz5TM1L4OrFHTVIrZ67cvM0DPGb506wV1X671Y8BFBTn1phAslDUwexwrlqBW2adzneQ== X-Google-Smtp-Source: AGHT+IHaFEhJbHe7MJD9zDTkbvG03lNchFMfMIiT5nU42RmRubRZl4pHLbCYErP+J8ijAftZvtlY X-Received: by 2002:a05:6a20:c702:b0:19c:a883:4709 with SMTP id hi2-20020a056a20c70200b0019ca8834709mr7814704pzb.15.1708104998403; Fri, 16 Feb 2024 09:36:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708104998; cv=pass; d=google.com; s=arc-20160816; b=eSR9c47hab/ZNpkQKL3IZVgx5YKxtttcsBzhVDcbSYDHa97g6Jvg/q1+xPxE+z4/QL WKtIA2hFpSveR820h6psG8tEsjhjWlEJ1vOj8RrwI7nXE/VlCzvC1ram3x7V9Q0uNrEy BzZJRYCKJEo9c6ljtoJbb7E6NOPZhwfCEqtG/sAN0kC6W98w+HdihuL+JpnN3JaF0PQZ u2pV0qeGhYYFsRRS/qw5fRyTXpTH2FUh0EA0Zbx2C9ZpZuY7QS/Tfd5cwvZQEGpwvjOx gvNT5VGTuHGbS7+9KjRKGfN1ikJebhiG5BXXQPT5TYSabvEE7ucYu+dTrrmCOsPtmWnE lzqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=oF0kaJWxnoHrBdVroW4AxibW/DcPAkLgfFXmoOfiDbM=; fh=mvtHD7K7n66apJMmXcBsU+dxK1L7E5gN2cYD3/Sx6XM=; b=ocSI9dKcyRxG6Xmmdh7Qzzn0/X4HI/D7FDZpx3yLOmmckr+1yg73kSkarMM9LCwkHb cuCG3JMGOsIdVGk4HVyUPSD4hLaTDpvIXC8XA7WzeJoHUJzPCeV/bJdhZW/PcYhmJGOT kx9m0dvTYJFGHcGQ0emTWLVNwBID5cIYOpDEmdjZxpKLdWx+bc08Bt206zr2TsBFvXqH f8n+vJP0u8Tc2P7wpOMKfQa+PbgZEoFyvshaytZQZPhcWHIwMkiSajmDqZaXRCIe2ojt zps6GaiBzosB2VE3/7b/VEBpbJ90cMa/uHy51AY0cpN+uLw1epUR/S1YX/Ce1sz7P+DU jd3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LyvjPkHR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s8-20020a17090a948800b00298cc2f1af3si262251pjo.28.2024.02.16.09.36.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:36:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LyvjPkHR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 51118B25A1E for ; Fri, 16 Feb 2024 17:16:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF27D13249B; Fri, 16 Feb 2024 17:13:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LyvjPkHR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE0B5130E3C; Fri, 16 Feb 2024 17:13:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708103595; cv=none; b=FhNjEBzAk5jBcHW7RaUbACvweH9uW/kFZcPu631kx7Gb7s0q+i9hHt8DqimnQDtovo6/wWY+zKHdQDiKimjNS4+xvgAoQFRpl9qNPPXQtHLHhC6W6QOynCP8uD9eJh6QgvOcs25zptlNwjq+oii0RDIIcOXvNpiO85yUkIWx5v0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708103595; c=relaxed/simple; bh=kQ0H/sNCQPwBmNusOIBS5iWhM6nmH7hfh3eYJZ4zLjw=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=drNl04cGeRDAMivqPBFn5pnZEE57qipMV2HeYtKuPFR/k3QoyJ38jR6KrZJ0hZ0aFD/gIoiSmfMOPGtzwYaTFF4FpViEuYlZnVZ5FLBdhaVgf5rp0q+DGaKdm4s0C4wr+swW2T0Im2kDglcfxlw5fNsSz79Atk2G8QdQJNQnhNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LyvjPkHR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEAA5C433F1; Fri, 16 Feb 2024 17:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708103594; bh=kQ0H/sNCQPwBmNusOIBS5iWhM6nmH7hfh3eYJZ4zLjw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LyvjPkHRfPJnvy+KgUErXwGzLnSj9SB07qpiXXw3ah9U/PWYAwnHmimfWyoqtQ2U8 KeuN7x4lqeuJAdBPahhcQYalW0qQr4hnpqPQn0WisKo7uFTYxBhY2wrS3C+XqqLgz1 TcmebNQBsZSSWj4eMq40uno8d3Ec3Dnsu/Ox3hp40hrfELwTTWTD/DYbjHiS2HjN1U UEoo/qI8bkB9NXGs6U3o+Sq+51SN9auLEXCegGG1aVwnuAjiyaF9NoMC+9toIHrkjG l1ZR1QDVdmGXUFNXEA+u8eLmibIlKbf/DKAUCuPvLY3EBvTXG1J4SiK0Hee/apG9BY Ae/cvZmNb1Obg== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rb1lu-003v2X-MX; Fri, 16 Feb 2024 17:13:12 +0000 Date: Fri, 16 Feb 2024 17:13:10 +0000 Message-ID: <86h6i849jt.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: kvm@vger.kernel.org, Nicholas Piggin , Michael Ellerman , Christophe Leroy , aneesh.kumar@kernel.org, naveen.n.rao@linux.ibm.com, Sean Christopherson , Paolo Bonzini , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, Sebastian Ene Subject: Re: [PATCH] KVM: Get rid of return value from kvm_arch_create_vm_debugfs() In-Reply-To: <20240216155941.2029458-1-oliver.upton@linux.dev> References: <20240216155941.2029458-1-oliver.upton@linux.dev> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: oliver.upton@linux.dev, kvm@vger.kernel.org, npiggin@gmail.com, mpe@ellerman.id.au, christophe.leroy@csgroup.eu, aneesh.kumar@kernel.org, naveen.n.rao@linux.ibm.com, seanjc@google.com, pbonzini@redhat.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, sebastianene@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Fri, 16 Feb 2024 15:59:41 +0000, Oliver Upton wrote: > > The general expectation with debugfs is that any initialization failure > is nonfatal. Nevertheless, kvm_arch_create_vm_debugfs() allows > implementations to return an error and kvm_create_vm_debugfs() allows > that to fail VM creation. > > Change to a void return to discourage architectures from making debugfs > failures fatal for the VM. Seems like everyone already had the right > idea, as all implementations already return 0 unconditionally. > > Signed-off-by: Oliver Upton Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.