From nobody Mon Nov 25 01:51:52 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1719328265; cv=none; d=zohomail.com; s=zohoarc; b=aHMJfHMNpP1QdDVR8Em/ugfBpeO1K6Na2sEDFxaPSJIIR7mE4TePtdz8VsE+iH8p3ilk/qi4qqJWzOSgP6z5JtzN3A4dZvDloTr0gkJzZcL3E21kMjEhe4esFZiVS06Mkk8iCzevY1OPZm8sqtYwYa8GQsduA37HyVAZgXlxqH4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1719328265; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ekscQEnP3gpmZV2Wq3Q1zFJVqJpw78Y8pmFq27S2T54=; b=nYBwtCksgzuernC3sqjBCgzbQVm4Jbxmh7P/okb0e8j0CNi+hPVE0uz9zrRHwg1Znk1YoaS6b+OO/rH03D6a2M0kuUFetfFYnjOR+r3uXCZrxccvMqjDrMUPqXT4oXWc5oK13yoKyy2uzehErJDwDFHQChEFccgzWLSMvyxSTas= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1719328265357309.91955539291314; Tue, 25 Jun 2024 08:11:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sM7oO-0002zD-68; Tue, 25 Jun 2024 11:10:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sM7oM-0002xs-Nz for qemu-devel@nongnu.org; Tue, 25 Jun 2024 11:10:22 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sM7oK-0006pu-7U for qemu-devel@nongnu.org; Tue, 25 Jun 2024 11:10:22 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-7024d571d8eso4418567b3a.0 for ; Tue, 25 Jun 2024 08:10:19 -0700 (PDT) Received: from sunil-pc.Dlink ([106.51.187.237]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70681722219sm4142636b3a.73.2024.06.25.08.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 08:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1719328218; x=1719933018; darn=nongnu.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=ekscQEnP3gpmZV2Wq3Q1zFJVqJpw78Y8pmFq27S2T54=; b=awpOqezgpP9C9R3PB+cs8eaDvoyds3/lgeiybcTDwX5G0p5djX7pz6msw0TdvbAbzz 8qpJWTvAlwIE5jPZxAKovHrt40SyCh1y05Hl6tHf/fReufjXiUI9smSruOJbMQJFnwlv q6tXwk5gAB5E2jeiOrx1ZdYyZ2JFgNjIqfWaBwGyd/wUnw0rI74EiOuXNzMyFB8pnePG V5hWzuHEplpyqVcOb81cH3Ka0yYBjeHWW4dV5VeeIc5bQQ9TMtwLOsS+PDVMMm/nePs0 c7p89Z4ZAzludJljhLeQKLdwvh2CUemO0twHL65qOmMRJsnyf+OtWpo+BE0HZC3lLC5f ObrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719328218; x=1719933018; 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=ekscQEnP3gpmZV2Wq3Q1zFJVqJpw78Y8pmFq27S2T54=; b=Z0rRE5CzADA4tyr4GqimRMjzscvwC6Cg9mwyh2WOhcWh3rzqkNQJEVmMFPhNo/xGgJ 28A7faPO+JH9+3VaxZqA4xe3RfDWURLODy6wol5KVWCpJbiA7jZJjMGBrb5P93RbCSSP c7kMfqpr30tZ5IWAcwcT1uFfHTI+bP5rCJcwMTa1y4n2kgAn46tsKBXJ8bnG6AFDBlhP xwCoI6KPFupdVj7qGxTnpgRnNYWG+2ctHz2WFoEq4A9cZvywsTW1mskw6KXugxQK09E/ 6+q46mVUEzvk+Nk5ZYvD1t+/9z9isvvlHX6RRFyIXzy/5Hkn3G7PmChKW4HTyswFeDxP Qzww== X-Gm-Message-State: AOJu0Ywvmzpdm9zp+0hWsNbpk+Lqqk8aX/xFox0GyYabsuIIaYv9dN4o 27lPc7x0bx6ElQC4P3feX+odZy/uZWSER58PtbQtA6tYTd7xfyTtvxUgflUzgt7r3wpQaKx0YR8 4 X-Google-Smtp-Source: AGHT+IHFshzYimtqyEKXsBMujDimtP/DnCKXkUXxy6IPeoiAjv20AprA+Az9e8Nw4cuokVIe6bcO0Q== X-Received: by 2002:a05:6a00:2d9b:b0:6ed:cd4c:cc1a with SMTP id d2e1a72fcca58-706745be4bamr9530589b3a.8.1719328218235; Tue, 25 Jun 2024 08:10:18 -0700 (PDT) From: Sunil V L To: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-riscv@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Michael S . Tsirkin" , Igor Mammedov , Ani Sinha , Laurent Vivier , Gerd Hoffmann , Sia Jee Heng , Alistair Francis , Daniel Henrique Barboza , Palmer Dabbelt , Bin Meng , Weiwei Li , Liu Zhiwei , Sunil V L , Alistair Francis Subject: [PATCH v4 15/16] tests/qtest/bios-tables-test.c: Enable basic testing for RISC-V Date: Tue, 25 Jun 2024 20:38:38 +0530 Message-Id: <20240625150839.1358279-16-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240625150839.1358279-1-sunilvl@ventanamicro.com> References: <20240625150839.1358279-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=sunilvl@ventanamicro.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ventanamicro.com) X-ZM-MESSAGEID: 1719328266305100001 Content-Type: text/plain; charset="utf-8" Add basic ACPI table test case for RISC-V. Signed-off-by: Sunil V L Reviewed-by: Alistair Francis Reviewed-by: Igor Mammedov --- tests/qtest/bios-tables-test.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index f4c4704bab..0f9c654e96 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -1977,6 +1977,28 @@ static void test_acpi_microvm_acpi_erst(void) } #endif /* CONFIG_POSIX */ =20 +static void test_acpi_riscv64_virt_tcg(void) +{ + test_data data =3D { + .machine =3D "virt", + .arch =3D "riscv64", + .tcg_only =3D true, + .uefi_fl1 =3D "pc-bios/edk2-riscv-code.fd", + .uefi_fl2 =3D "pc-bios/edk2-riscv-vars.fd", + .cd =3D "tests/data/uefi-boot-images/bios-tables-test.riscv64.iso.= qcow2", + .ram_start =3D 0x80000000ULL, + .scan_len =3D 128ULL * 1024 * 1024, + }; + + /* + * RHCT will have ISA string encoded. To reduce the effort + * of updating expected AML file for any new default ISA extension, + * use the profile rva22s64. + */ + test_acpi_one("-cpu rva22s64 ", &data); + free_test_data(&data); +} + static void test_acpi_aarch64_virt_tcg(void) { test_data data =3D { @@ -2455,6 +2477,10 @@ int main(int argc, char *argv[]) qtest_add_func("acpi/virt/viot", test_acpi_aarch64_virt_vi= ot); } } + } else if (strcmp(arch, "riscv64") =3D=3D 0) { + if (has_tcg && qtest_has_device("virtio-blk-pci")) { + qtest_add_func("acpi/virt", test_acpi_riscv64_virt_tcg); + } } ret =3D g_test_run(); boot_sector_cleanup(disk); --=20 2.40.1