NetBSD Problem Report #59154

From www@netbsd.org  Sun Mar  9 02:44:19 2025
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)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 1D76C1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  9 Mar 2025 02:44:19 +0000 (UTC)
Message-Id: <20250309024417.EF4241A923C@mollari.NetBSD.org>
Date: Sun,  9 Mar 2025 02:44:17 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: emulators/qemu breaks with newer compatible libnvmm
X-Send-Pr-Version: www-1.0

>Number:         59154
>Category:       pkg
>Synopsis:       emulators/qemu breaks with newer compatible libnvmm
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    imil
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 09 02:45:01 +0000 2025
>Closed-Date:    
>Last-Modified:  Mon Mar 10 14:57:43 +0000 2025
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NewNVMM Foundation
>Environment:
>Description:
We currently apply the following patch to emulators/qemu:

-    if (qemu_mach.cap.version < NVMM_KERN_VERSION) {
+    if (qemu_mach.cap.version > NVMM_USER_VERSION) {
         error_report("NVMM: Unsupported version %u", qemu_mach.cap.version);
         return -EPROGMISMATCH;
     }

This means that a qemu package built for netbsd-9, where NVMM_USER_VERSION is 1, cannot be run on netbsd-10.

I don't know what compatibility issues this was meant to address, but this breaks the standard compatibility expectations of NetBSD.

If newer libnvmm.so is incompatible, then it needs to bump the shlib major.  If it is compatible, then qemu shouldn't reject it.
>How-To-Repeat:
1. build qemu for netbsd-9
2. run it on netbsd-10
>Fix:
remove the patch

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->imil
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Sun, 09 Mar 2025 02:47:21 +0000
Responsible-Changed-Why:
over to patch author


State-Changed-From-To: open->feedback
State-Changed-By: imil@NetBSD.org
State-Changed-When: Mon, 10 Mar 2025 14:57:43 +0000
State-Changed-Why:
faulty patch removed from emulators/qemu


>Unformatted:

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-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.