NetBSD Problem Report #59728

From www@netbsd.org  Mon Oct 27 03:38:15 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) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B4F501A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 27 Oct 2025 03:38:14 +0000 (UTC)
Message-Id: <20251027033813.8EF5E1A923A@mollari.NetBSD.org>
Date: Mon, 27 Oct 2025 03:38:13 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: nvmm(4): missing SMM/SMI support on x86
X-Send-Pr-Version: www-1.0

>Number:         59728
>Category:       port-amd64
>Synopsis:       nvmm(4): missing SMM/SMI support on x86
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 27 03:40:00 +0000 2025
>Originator:     Taylor R Campbell
>Release:        current, 11, 10, 9, ...
>Organization:
The SMMBSD Foundation
>Environment:
>Description:

	System Management Mode (SMM,
	https://en.wikipedia.org/wiki/System_Management_Mode) is a
	special mode of operation of x86 CPUs for use by firmware,
	which can be entered only through a System Management Interrupt
	(SMI), and which has a separate address space that is not
	accessible outside SMM.

	This is used even by virtualized firmware such as SeaBIOS, and
	it has come to be required (if accidentally) for certain
	functionality like VGA console in qemu (see
	https://gnats.NetBSD.org/59721, PR kern/59721: qemu VM's
	blackscreen over VNC wth -machine q35;
	https://gitlab.com/qemu-project/qemu/-/issues/2608).

	qemu's nvmm accelerator currently disables SMM because it
	requires hypervisor support, to notify qemu of VM exit due to
	SMI and to handle the separate address space.

>How-To-Repeat:

	qemu-system-x86_64 -machine q35,smm=on -accel nvmm

>Fix:

	Yes, please!

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.