NetBSD Problem Report #56721

From www@netbsd.org  Thu Feb 17 17:22:43 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 279531A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 17 Feb 2022 17:22:43 +0000 (UTC)
Message-Id: <20220217172241.C35301A923C@mollari.NetBSD.org>
Date: Thu, 17 Feb 2022 17:22:41 +0000 (UTC)
From: schaecsn@gmx.net
Reply-To: schaecsn@gmx.net
To: gnats-bugs@NetBSD.org
Subject: nvmm fails on older linux kernels
X-Send-Pr-Version: www-1.0

>Number:         56721
>Category:       kern
>Synopsis:       nvmm fails on older linux kernels
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 17 17:25:00 +0000 2022
>Last-Modified:  Tue May 30 04:00:02 +0000 2023
>Originator:     Stefan Schaeckeler
>Release:        2021Q4
>Organization:
>Environment:
NetBSD xxx 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
nvmm crashes on Linux kernels 1.2.13 and 2.0.36, but not on 2.2.18.

>How-To-Repeat:
Download a Linux distribution with said kernel version, say suse 6.0 (kernel 2.0.36) and boot it with nvmm enabled:

$ wget https://archive.org/download/suse-6.0_release_i386/SU6001.001.ISO

$ qemu-system-i386 -accel nvmm -cdrom  SU6001.001.ISO  -m 64M
NetBSD Virtual Machine Monitor accelerator is operational
qemu-system-i386: NVMM: Unexpected VM exit code 0xffffffffffffffff [hw=0x9]
qemu-system-i386: NVMM: Failed to execute a VCPU.
Abort trap (core dumped)

Qemu crashes while the Linux kernel boots up.

Booting the same iso without nvmm enabled does not crash qemu

$ qemu-system-i386 -cdrom  SU6001.001.ISO  -m 64M 


>Fix:

>Audit-Trail:
From: Reinoud Zandijk <reinoud@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/56721: nvmm fails on older linux kernels
Date: Thu, 9 Feb 2023 13:35:51 +0100

 I've tried to replicate it on my amd64 machine

 NetBSD 9.99.107 (GENERIC) #0: Sun Dec 18 17:14:55 CET 2022
 QEMU emulator version 7.1.0

 but couldn't replicate it. It boots fine with NVMM enabled. Trying a
 NetBSD-current kernel out on a 9.x system in combination with nvmm and qemu is
 a bit tricky. I have no idea what changed in the mean time. You might want to
 update your Qemu if possible to see if its a qemu issue.

 With regards,
 Reinoud

From: Stefan Schaeckeler <schaecsn@gmx.net>
To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
 gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: kern/56721: nvmm fails on older linux kernels
Date: Mon, 29 May 2023 20:57:13 -0700

 I still see the qemu crash. Now on NetBSD 9.3 with qemu 7.2.0 from
 pkgsrc-2023Q1.

 Well, the good news is then that the problem will go away with NetBSD 10.

   Stefan

 On 2/9/23 04:40, Reinoud Zandijk wrote:
 > The following reply was made to PR kern/56721; it has been noted by GNAT=
 S.
 >
 > From: Reinoud Zandijk <reinoud@NetBSD.org>
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: kern/56721: nvmm fails on older linux kernels
 > Date: Thu, 9 Feb 2023 13:35:51 +0100
 >
 >   I've tried to replicate it on my amd64 machine
 >
 >   NetBSD 9.99.107 (GENERIC) #0: Sun Dec 18 17:14:55 CET 2022
 >   QEMU emulator version 7.1.0
 >
 >   but couldn't replicate it. It boots fine with NVMM enabled. Trying a
 >   NetBSD-current kernel out on a 9.x system in combination with nvmm and=
  qemu is
 >   a bit tricky. I have no idea what changed in the mean time. You might =
 want to
 >   update your Qemu if possible to see if its a qemu issue.
 >
 >   With regards,
 >   Reinoud
 >

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.