From nobody Fri Jan 23 12:18:59 2026 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dyH6W3g2Dz6P7vn for ; Fri, 23 Jan 2026 12:19:15 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dyH6W1gnkz3gMB for ; Fri, 23 Jan 2026 12:19:15 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-b884ad1026cso262908966b.2 for ; Fri, 23 Jan 2026 04:19:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769170752; x=1769775552; darn=freebsd.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=xQ2BlhUtf5FKBjcIBAMUyiId/m2ctP+gscSDbhiMaEQ=; b=mccNmg4Q2XBiLGzaRB29OWx1mEcIgkMrZhg6oJT2jWLYjDYxWOI6wZSHJAnfkIOpK/ 11w+qZkFWZAtRH1jvDno4w+uN0dnofQ3iZlBV8zKVzPRvCs472gO7r6i/C+qkKxfFXX1 ZHVTMmhkTWpVYhxe/0jjC+EEYA5rJd9YCA3p6fW57bGSGrbyKtV/oMYEjWYEwwSUuMr2 K/cruYXr+faONGRec1GCXUEYxGZJWgaP5fTl43xbtYDlbuqagm55DjQXaCKe+IZ0zQCh FWWsnr1zwc+oMwmeM80pecoVFaUo/2FITA1jOwWgksC53Wx4Mx8RIKG7QWRerjAeHWAR g22g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769170752; x=1769775552; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xQ2BlhUtf5FKBjcIBAMUyiId/m2ctP+gscSDbhiMaEQ=; b=V5gxtw9vpySO41AxMbemx/uNiWcIHxOt1R1Wk/qCV0WwyO7BBaNbMUULdrsT53d0+p Ti/OlfHD6T6SD/Xshof4uPQrGjCnp49jQ63kqAYlO3WjB5puFjQHXX/siIInTWCf08B5 CEUxDXeyVluKiMpOdTXsH0vNSNiaHC3LUe6QcOI7KNB1L1XpzRJJdJnUN4glIN3Yb1py Vtsfm+vs82/KCustq11cMFGEoXGhxdygcqV5McpybcOKzdXrgoklhi1Z66uA/WxKQPRR bTQW+N/0QQYf97PJtRkdH4Yo8a9RjMgT945DNxz8KO/ETdBd45SB2bqu/XslvuZI1Sd3 +K4g== X-Forwarded-Encrypted: i=1; AJvYcCU5pkHhBeaXzpEMGYWksL5qcptTxIPlVYzCB6ujb6wgjz7hjTFz06tsn6IHrneJy9thkB02h/JVNLR95H1Lb1pkUSQX6AFl@freebsd.org X-Gm-Message-State: AOJu0Yy3bRdxDn+uCHQiDD6c/VLhQ/Z3goShnbauITcZ6XgMfoXSm114 dhN8uApyt5e0h8f76cKRShaXsta2ei6cWN1bABaHPyczJ7/37LZ5Jr9+fPLrrwN4 X-Gm-Gg: AZuq6aL80HOrGAoURvAYItBiD6N7qGyQG9zsnHCa13RTZP/17vOlrmrz558ttJ/XJDb Q4ogfLPN26Enwg5ngNMHE2z2T154MST0gjXKPjipdRodNQBryEDlHHJamyI4/r4svq4ARGICWh/ IV5uVV5y6EWEofoYaditWuCb6y2m1cBFWP8fw1UbyebOTjOG5poXRL89tNXq6t1K3FbGSsKOqSz BmCHgB7Yv7/FcGyRWHMGVbwJ+2vUCz5fTtZfHjTQH7iLzatNFqJEd5pvdqDVMGDZEPl5SLk4Bdv vQfEEMMZCtv9ZKel3BPs/e3PSNG4aDexd38QcBhCZDeJR9udTE0bgf6JsZWNj5j0U7YOW28Wsoa uAHNvySGTLxgGbtbCKR9YON0dBiZzBLhhw6a6vkzhkewD84HH+2Khy1cTNL+HZvKdPUI5m4Psb5 wjyTUk+TTcXd5xJ2yEglJywT+1i1Isavl2peex9xxhiiaCmglZ73dYYmIJj+vsxSV6T/+aFPkbb JTdXA== X-Received: by 2002:a17:907:3f20:b0:b7a:259:2a32 with SMTP id a640c23a62f3a-b885ac0faf3mr194568866b.2.1769170752069; Fri, 23 Jan 2026 04:19:12 -0800 (PST) Received: from tulp (2001-1c02-1a15-3000-c218-03ff-feb5-6cc4.cable.dynamic.v6.ziggo.nl. [2001:1c02:1a15:3000:c218:3ff:feb5:6cc4]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b885b419642sm100091166b.28.2026.01.23.04.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jan 2026 04:19:11 -0800 (PST) Date: Fri, 23 Jan 2026 13:18:59 +0100 From: Roman Bogorodskiy To: Roman Bogorodskiy Cc: Andrew Turner , Mark Johnston , freebsd-virtualization@freebsd.org, freebsd-arm@freebsd.org Subject: Re: Quartz64: vmm: No vgic found Message-ID: References: <0EE0EFAA-68BF-4BA5-A42E-2D72454B3E4A@fubar.geek.nz> List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dyH6W1gnkz3gMB Roman Bogorodskiy wrote: > Andrew Turner wrote: > > > > > > > > On 19 Jan 2026, at 18:03, Roman Bogorodskiy wrote: > > > > > > Mark Johnston wrote: > > > > > >> On Sat, Jan 17, 2026 at 06:19:47PM +0100, Roman Bogorodskiy wrote: > > >>> Mark Johnston wrote: > > >>> > > >>>> On Thu, Jan 15, 2026 at 06:42:10PM +0100, Roman Bogorodskiy wrote: > > >>>>> But bhyve does not start: > > >>>>> [...] > > >>>>> Does the board need something in addition to GICv3 that is missing that > > >>>>> is needed to make vmm(4) work, or is that a configuration or vmm(4) > > >>>>> issue? > > >>>> > > >>>> The vgic driver is refusing to attach, apparently because we don't > > >>>> detect virtualization support when probing the controller. When booting > > >>>> from a FDT we look for an "interrupts" property to determine this, but > > >>>> it's not clear to me whether that's totally right. Can you share the > > >>>> device tree you're using with this board? > > >>> > > >>> Not sure what's the right way to share the device tree, so I used the > > >>> command I found on wiki (https://wiki.freebsd.org/FlattenedDeviceTree), > > >>> that is: sysctl -b hw.fdt.dtb | dtc -I dtb > > >>> > > >>> It's lengthy, so I uploaded it here: > > >>> > > >>> https://people.freebsd.org/~novel/misc/quartz64_devicetree.txt > > >> > > >> So, from what I can tell, gic_v3_ofw_bus_attach() should be attaching a > > >> child vgic device. Are you loading vmm.ko after the kernel has booted? > > >> Does anything change if you load it from loader.conf, or compile vmm > > >> into the kernel? > > > > > > I was loading vmm.ko manually, i.e. by running `kldload vmm`. > > > Nothing changes when I load it via vmm_load="YES" in /boot/loader.conf: > > > > > > vmm: No vgic found > > > module_register_init: MOD_LOAD (vmm, 0xffff0000014391f0, 0) error 19 > > > > > > I'll test adding that to the kernel once I have an established procedure > > > of building a kernel for this board. > > > > Can you try the patch in https://reviews.freebsd.org/D54791? It fixes an issue where the vgic driver isn’t attached if there is no ITS on the board. This appears to be the case with the Quartz64. > > > > Andrew > > This does not fix the issue for my board, behaviour remains the same. I am sorry, I decided to double check and noticed that I tested the wrong kernel. It does work with this fix, that is, in the devicetree mode vmm(4) now loads properly, and I can start bhyve(8) VMs. Roman