From nobody Fri Jan 9 08:44:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1766912230; cv=none; d=zohomail.com; s=zohoarc; b=N2KCNsA0+5vZhGIoiAdcBl+JKI2RJJBmEE0Xfn4aQZ7ICSjRiqIGQ/1GKZTaZriS0g9nJA4tds3l9pm3cAJbhysG65FSRLh5yUXFSnNJ/htofSftGKRZh7ondcdnDrB9Dx4pRYAQ4zSljq4iuZN5lp9PBvZYQTact8Lw9Ds9GtQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766912230; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=icXFxI/AgbhENNgWnsybY9OH96Qc3wCh54r+WoglF14=; b=A5DgYZ7x/dOMkMc0XY/yIwMPJVEgIDv47lE99CeeBn8hNSbOtyCQH6KjjdUwrrpUB5IeDYEqaPHV7U1+L9WYsd2o1zU35sdZn4gPcSBYC67/u791sOSI0/3UwCRZW5sOX+3CDtibATis5tP/7t0J+shYTIwT3Z/IotAgnAG6/ks= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 17669122305498.453536648561908; Sun, 28 Dec 2025 00:57:10 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 140A641A9B; Sun, 28 Dec 2025 03:57:08 -0500 (EST) Received: from [172.19.199.83] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 121924183D; Sun, 28 Dec 2025 03:56:32 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id D04203FBCB; Sun, 28 Dec 2025 03:54:39 -0500 (EST) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 244FC3FBC4 for ; Sun, 28 Dec 2025 03:54:39 -0500 (EST) Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-b734fcbf1e3so1696260766b.3 for ; Sun, 28 Dec 2025 00:54:39 -0800 (PST) Received: from tulp.my.domain (84-25-144-101.cable.dynamic.v4.ziggo.nl. [84.25.144.101]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8037f0ebbasm2843201266b.55.2025.12.28.00.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Dec 2025 00:54:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766912077; x=1767516877; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=icXFxI/AgbhENNgWnsybY9OH96Qc3wCh54r+WoglF14=; b=NJE/GXLlipObIZwY2w7WGJSJUta7t+aQOmbClCBE6IhnpcGIxpjdHAcevlyHWuGYyM 3xN9NOFonNAal0XU+rHl8wxSvhTYhMZLqP4JRXSiXLiVVf+TCc/bRuRbiWelbmiDNR2F di/40ZGIIdyzgNoG4m5MZSrc9smaMVciDm4pi97VAHV4a8VMzI6KEEVLGNWG4bFCnLem efsYMZ1HvSHsw0PVN2yndax5xhqfI/D2FPLkVH35/h4MG7VzRTSYP8tCxV3c2XbfuFPz I8FbIkOzlavjqs/7BTfiaKGs70IQerapPRT8hN0AqYPjrfIuoG+cOojzREbV/HWc7HVV gYsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766912077; x=1767516877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=icXFxI/AgbhENNgWnsybY9OH96Qc3wCh54r+WoglF14=; b=BEHgRjgjzfWpUaSlpcFcE1+1YLNt6IM1asm5h2I7cWjvFzGW0LVXnxz8WOG4cmY42q RMn8oOUb/gQJGjfWVYogz0TihtAwJd3T0ZPTVyqFHDsLeyL0oNuNKO56qbxYNpttNwEt xLaSt6xJ9STmzXae8YwzmcUgom93If7pmGWisgwp4WgAwQifn8ArXPnDVLf5Zed5j9/T xtp4sw2ymm09tL3VBCJj1B9YmdWd1okEa0ShunQ38j2sjem2jmd++U3jya9zu6icBVlf 37rV8fmpbhqi30ANl+hdZVAqpVyWtGvBNyDPTLUi3bA6DYXZZ6y0vrGkEzvChy6Eqhoy XezA== X-Gm-Message-State: AOJu0Yw8g1u2Nih1FODae/t3hsKs2K9CqEy+xHa664Om+i/5/8WzoPg5 FFA60L8XGe2ys1pmiEMhovNf3nXdOBaPuLaCoCEtDTg4Z2T3H5TqCjiKQ2stChC4 X-Gm-Gg: AY/fxX5mGFGNdksFyaR3SvauH79MCvZhfnAFln1SiPaMAM8EZhw7TzrsQFWXt+gP7MJ fGD8J5MWT5s2tcXrzq7PQhHr2JK2frgTkO6f4RlrOQYHkRECWSLG3a+FuTchsT4dganTNkokheH ceumq8LZxldf2evOfj10liqcvm4mO2Hcq0nxk0fPLbxrkvLikdqezuZDT1qpzmrSkLBt/0GpOe7 0Rv7kzN0VqdnuwNwD9AYg9s9acEGsFvdZ8Ph6QG1A0vaRuZe7uq4rIRClP2mlWMW3fKNUKvRVPa e/TtyGe4zj9x5akS+CEh6c7hFXwl+LWnQx0f60VLkeW8hH0a3i/5kYzXOHsUdTkqj0P7CpGvDiZ amrhLPmVCTb7hBpLu94FPpHFsRlMpzCRGLttfJgNy8T+6KR3nDYEtTcOzCaRcVdQGK62BVHwTaR S81k1Gu6IJdS3DgrYwMerpLzYz6SSKgQzWkCsVretEFcgAbuMVlg== X-Google-Smtp-Source: AGHT+IEUISu+DGRAeoUUkMyflsPX80bSI5CxP6xP5jRkc1ytdFadb6Q1A+D3hvpG+NgGAzkAGKK0ag== X-Received: by 2002:a17:907:7f05:b0:b72:9961:dc04 with SMTP id a640c23a62f3a-b8036f86950mr3119184566b.28.1766912077215; Sun, 28 Dec 2025 00:54:37 -0800 (PST) From: Roman Bogorodskiy To: devel@lists.libvirt.org Subject: [PATCH 1/9] bhyve: capabilities: fix for arm64 Date: Sun, 28 Dec 2025 09:51:04 +0100 Message-ID: <20251228085112.81805-2-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251228085112.81805-1-bogorodskiy@gmail.com> References: <20251228085112.81805-1-bogorodskiy@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: SGHOBEAO2V7O3JQDAIQN2QTE5NBKLRYM X-Message-ID-Hash: SGHOBEAO2V7O3JQDAIQN2QTE5NBKLRYM X-MailFrom: bogorodskiy@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Roman Bogorodskiy X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1766912233119158500 Content-Type: text/plain; charset="utf-8" Currently, guest capabilities have VIR_ARCH_X86_64 hard-coded for supported guest. As bhyve supports amd64 and arm64 hosts, and guests' arch must match host's arch, reporting VIR_ARCH_X86_64 for arm64 is wrong. Set supported guest arch to the same value as the host arch. Signed-off-by: Roman Bogorodskiy --- src/bhyve/bhyve_capabilities.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bhyve/bhyve_capabilities.c b/src/bhyve/bhyve_capabilities.c index 0585fff8e9..38959cc271 100644 --- a/src/bhyve/bhyve_capabilities.c +++ b/src/bhyve/bhyve_capabilities.c @@ -46,13 +46,14 @@ virBhyveCapsBuild(void) { virCaps *caps; virCapsGuest *guest; + virArch hostarch =3D virArchFromHost(); =20 - if ((caps =3D virCapabilitiesNew(virArchFromHost(), + if ((caps =3D virCapabilitiesNew(hostarch, false, false)) =3D=3D NULL) return NULL; =20 guest =3D virCapabilitiesAddGuest(caps, VIR_DOMAIN_OSTYPE_HVM, - VIR_ARCH_X86_64, "bhyve", + hostarch, "bhyve", NULL, 0, NULL); =20 virCapabilitiesAddGuestDomain(guest, VIR_DOMAIN_VIRT_BHYVE, --=20 2.51.2