Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2147185iof; Tue, 7 Jun 2022 21:19:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcKRMdxuBS8z6zLsm7qr0+iM3NnTPYJeG1p8XPMpXNcRLukMFWrvpLLlk94T16dUMfGIhV X-Received: by 2002:a05:6a00:2188:b0:50d:b093:12a2 with SMTP id h8-20020a056a00218800b0050db09312a2mr32566122pfi.84.1654661965041; Tue, 07 Jun 2022 21:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654661965; cv=none; d=google.com; s=arc-20160816; b=zcEiO8T6Uaf5VGE1QQWwPtLUh04q0JB2/vGQTR1bVPMqDxA9fABA9PS2ttmZcYGvEI UHZraBuBiLJhk8nJdLH1ddtvtNa/IpsQbIcdYMlEVetHxMKh3uzI6dzbQQHmY0i6iG+N tEcpKIUH8zmr7aYQSIpZ5kLM/nIoaLFir1JrTmhAs8mWo/TLnNKNe7jghPicq4amfnFN IZJ1DCCVRt11Vdm1laq7WQhxqcMHfbxGYubr7xvVmmWX6348G06tlhTUdFV/c1+Bt0ik 15zrYOOgbk2gEQISVjv6WrHRi59Vl4OTxEVeM7ZO57r/0lH6E7z9zlox5DIAqkvtOF7/ Wm/g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=uf7X1P+eft8n9oLVYCmNH8QJXSIXiGGa7r7u8nKCitc=; b=cRxATvCxkWL3H7RWWAm+9oAXpZtMunb83OOEM5xXNDV2z9TgXmW2RHko+b3bVLagCs Wcq8eGvzp64P9oTMUE+7llnOhzxczeToxgjhVCSO34cqDNr4aaPY8cCygy3fqtqXQsq3 zn4uI23QZEhFF3dsvlTpg3Bw3ebGxaw4A2/Q4M3m345mu1hji1PgZeGbqSFrMBOQvLU5 6dDS2tN3iXQn8leKtM7ZaU4lOGUMpyjZXp8VyKN1OSf6zh2UCqZE5/3oU8HHV7MZaaRj ebJTjYe6s+hHHpp+ohzvPWYxL8mErvvvai97AEbvHoWcFScQrBEwO588+pGwUy5KlYr6 S6RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=EMI1NXVU; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c19-20020a170902849300b0015e84c97a93si24735629plo.111.2022.06.07.21.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:19:25 -0700 (PDT) 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=@suse.com header.s=susede1 header.b=EMI1NXVU; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 20DF5232835; Tue, 7 Jun 2022 20:50:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243757AbiFGMdU (ORCPT + 99 others); Tue, 7 Jun 2022 08:33:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242695AbiFGMdS (ORCPT ); Tue, 7 Jun 2022 08:33:18 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65E2C6D198; Tue, 7 Jun 2022 05:33:17 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 0B8A71F968; Tue, 7 Jun 2022 12:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1654605196; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uf7X1P+eft8n9oLVYCmNH8QJXSIXiGGa7r7u8nKCitc=; b=EMI1NXVUQfGwxPLsSKYWQMJ5ZCBqj7rJKlkmNJDrH7q0XIOuz9UKMSDkxLwjm7nbDL8JBK HHTyLMF42yzpuX9ExVXtnN+tSWGFrsXK5bBTlzOZkwLdwoXoQOqTNKiV1c0rWWcAlsTZRN 9zZQcFTsZK2KglSQ+5TW+6bMYb1vFXg= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C18F513A88; Tue, 7 Jun 2022 12:33:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id cxjULYtFn2LPDAAAMHmgww (envelope-from ); Tue, 07 Jun 2022 12:33:15 +0000 From: Juergen Gross To: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Juergen Gross , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Subject: [PATCH] s390/kvm: avoid hypfs error message Date: Tue, 7 Jun 2022 14:33:14 +0200 Message-Id: <20220607123314.10255-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 When booting under KVM the following error messages are issued: hypfs.7f5705: The hardware system does not support hypfs hypfs.7a79f0: Initialization of hypfs failed with rc=-61 While being documented, they can easily be avoided by bailing out of hypfs_init() early in case of running as a KVM guest. Signed-off-by: Juergen Gross --- arch/s390/hypfs/inode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 5c97f48cea91..bdf078f3c641 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c @@ -464,6 +464,9 @@ static int __init hypfs_init(void) { int rc; + if (MACHINE_IS_KVM) + return -ENODATA; + hypfs_dbfs_init(); if (hypfs_diag_init()) { -- 2.35.3