Re: [PATCH] s390/kvm: avoid hypfs error message

From: Juergen Gross
Date: Mon Jun 20 2022 - 02:03:35 EST


Ping?

On 07.06.22 14:33, Juergen Gross wrote:
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 <jgross@xxxxxxxx>
---
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()) {

Attachment: OpenPGP_0xB0DE9DD628BF132F.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature