From nobody Tue Sep 9 23:58:13 2025 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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1737559100675161.46048320294142; Wed, 22 Jan 2025 07:18:20 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 0E5A014FE; Wed, 22 Jan 2025 10:18:19 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id A568C147B; Wed, 22 Jan 2025 10:17:18 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 918B4142B; Wed, 22 Jan 2025 10:17:13 -0500 (EST) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id B744E11D0 for ; Wed, 22 Jan 2025 10:17:12 -0500 (EST) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-21675fd60feso150260605ad.2 for ; Wed, 22 Jan 2025 07:17:12 -0800 (PST) Received: from grind.. ([191.202.238.10]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d402f7dsm96059215ad.216.2025.01.22.07.17.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 07:17:11 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1737559031; x=1738163831; 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=W5JbHJ8yXUYhDQwgnVAyOz9ZQAcjGiVC/ofvl9+Cm6c=; b=lXtLM0mbMpsL/PuNRMGD0oWPeCl+940lZa7u7iLcM4DuFMHP3H5b1Kq9X48M3IHnKH FYtYeY2cCOUyQ8RgP4wMQJyyh392Pn3vdThwfgPGv3ntAsSZNMaBQjMp8I+H/ZLuWhxt 09adaaW/kuf2szRtQPG8rsWhzsvGo2R7IoaRE4HhPSN1oUM8h3QiRNlzpM4y9d4X1+TB SYnpM59jEeSGWFZspvYpkgg6zNaVUZgPUexLKGsmGFxihGP6LfHUErFdkwagrNuI+LCJ hppUu7TelcG1l8/YlTbjV4sjqnr2Zn+8pIje2HdBFPCHhbMkAwOIDJao5aDtv7R2GK6D J0Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737559031; x=1738163831; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W5JbHJ8yXUYhDQwgnVAyOz9ZQAcjGiVC/ofvl9+Cm6c=; b=j2SZDP34WaYuFWgDlpRUcd/LBDwJWmWcAlLcdD3rSg20iVnPfZoos60hRMB0DIvKat rF8Las+4pvk5UjMDLJ3uUHidzhWjb80qRk4XmlmAwVcRc1sYbKIY4ZXz04w00Vlz8K9G xQLmpK2ca6GiKinu453rJRICsen9tR3JcW2NUpq9uS0f2EJmcXhy5V59wRtEDyPPIcjL 85HBUHaF2avMc6sMKTcNIkdCPGPvS4N+RSC36rXR+V8nc1fXYj7+Azgcbl2aPlpPyPVA fPXVJEqGOVm1sBz9Cbko3uVyLkaYGw5ZLfyVqrH2sp786+JMjRbFw5VsVH6V5pxS4r0Y D7Cw== X-Gm-Message-State: AOJu0Yw9ebiNls6jF/3jbwVB2CFpBKDKco+Lzsja8uyvbKM8e1GWI4Db IXjXpRHmrw+7K19exMu3pJxpyDPgtoOspUNsEoLTft96HpJwPF7SUpHvVLETwwvzS7VgTkcwYDr I X-Gm-Gg: ASbGnctfCz4bW+RJ4LhL5CJH7rvl62QbmpJ4iOZFNBi2WOXPskZEDZQeSL1pPej3DSH 4sFFtwBvkz8Zb0zg+x2IvvfHCfMs6YhnlAYaoQE45CC552C6q+VfQBj9qR2GSu5wfj5xwBN07FN mUba5r6DlDgVY5VFdXfgTO4zrklTiljunO6sIG/f3LwI0PAZGo8UgDWylVb87BPOiRloKPsemAs WoTuJWWsIA3IDeaFNsCRp0rI6xgdLYxtQxs8dBPsysyYqJm9lK1N9u31BeM9AwWixhdA3Xr X-Google-Smtp-Source: AGHT+IFLEnU6CkJ4ADcy45m5oWnPzh5FKKRxnhcuPps4utQJIk9MH5SlG6Rt6+DOkw3BVS1b6wczZw== X-Received: by 2002:a17:902:e5ce:b0:21b:b3c9:38ff with SMTP id d9443c01a7336-21c355eeaf3mr292577865ad.37.1737559031490; Wed, 22 Jan 2025 07:17:11 -0800 (PST) From: Daniel Henrique Barboza To: devel@lists.libvirt.org Subject: [PATCH v2 1/3] qemu: add capability for RISC-V AIA feature Date: Wed, 22 Jan 2025 12:17:00 -0300 Message-ID: <20250122151702.95617-3-dbarboza@ventanamicro.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250122151702.95617-1-dbarboza@ventanamicro.com> References: <20250122151702.95617-1-dbarboza@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: VDZWT7AFAFEBYVCLS6Z5GEP55UTTVGFH X-Message-ID-Hash: VDZWT7AFAFEBYVCLS6Z5GEP55UTTVGFH X-MailFrom: dbarboza@ventanamicro.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: dbarboza@ventanamicro.com X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1737559101843019000 Content-Type: text/plain; charset="utf-8" AIA (Advanced Interrupt Architecture) support was introduced in QEMU 7.0 for the 'virt' machine type. It allows the guest to choose from a more modern interrupt model than the default (CLINT - Core Logical Interrupt Controller). Signed-off-by: Daniel Henrique Barboza Reviewed-by: Martin Kletzander --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_8.0.0_riscv64.xml | 1 + tests/qemucapabilitiesdata/caps_9.1.0_riscv64.xml | 1 + 4 files changed, 5 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 53aa64a009..490f5b28fd 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -725,6 +725,7 @@ VIR_ENUM_IMPL(virQEMUCaps, =20 /* 470 */ "migrate-incoming.exit-on-error", /* QEMU_CAPS_MIGRATE_INCOM= ING_EXIT_ON_ERROR */ + "machine.virt.aia", /* QEMU_CAPS_MACHINE_VIRT_AIA */ ); =20 =20 @@ -1764,6 +1765,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsMachi= nePropsPSeries[] =3D { static struct virQEMUCapsStringFlags virQEMUCapsMachinePropsVirt[] =3D { { "iommu", QEMU_CAPS_MACHINE_VIRT_IOMMU }, { "ras", QEMU_CAPS_MACHINE_VIRT_RAS }, + { "aia", QEMU_CAPS_MACHINE_VIRT_AIA }, }; =20 static struct virQEMUCapsStringFlags virQEMUCapsMachinePropsGeneric[] =3D { diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index 398749a136..07746f644c 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -704,6 +704,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ =20 /* 470 */ QEMU_CAPS_MIGRATE_INCOMING_EXIT_ON_ERROR, /* exit-on-error argument of= migrate-incoming command */ + QEMU_CAPS_MACHINE_VIRT_AIA, /* -machine virt,aia=3D(none|aplic|aplic-i= msic), RISC-V only */ =20 QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; diff --git a/tests/qemucapabilitiesdata/caps_8.0.0_riscv64.xml b/tests/qemu= capabilitiesdata/caps_8.0.0_riscv64.xml index 7959d49c02..0207637ebc 100644 --- a/tests/qemucapabilitiesdata/caps_8.0.0_riscv64.xml +++ b/tests/qemucapabilitiesdata/caps_8.0.0_riscv64.xml @@ -142,6 +142,7 @@ + 7002050 0 v7.2.0-333-g222059a0fc diff --git a/tests/qemucapabilitiesdata/caps_9.1.0_riscv64.xml b/tests/qemu= capabilitiesdata/caps_9.1.0_riscv64.xml index 77f4deca03..ccc7673ba9 100644 --- a/tests/qemucapabilitiesdata/caps_9.1.0_riscv64.xml +++ b/tests/qemucapabilitiesdata/caps_9.1.0_riscv64.xml @@ -169,6 +169,7 @@ + 9001000 0 v9.1.0 --=20 2.48.1