From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7F9A5C2BBCA for ; Tue, 25 Jun 2024 11:20:33 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sM4DY-00063B-71; Tue, 25 Jun 2024 07:20:08 -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 1sM4DW-00062M-A3 for qemu-devel@nongnu.org; Tue, 25 Jun 2024 07:20:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sM4DU-0003Uh-LF for qemu-devel@nongnu.org; Tue, 25 Jun 2024 07:20:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1719314403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TxfK50CM39AgyHMqWIsuemzgcz5lpe3wAS/FH8p5QME=; b=Xlo8dGkF2gnAdtBwQlJJbTXhsHRe0RDK6iY/U15obCcc5qicOBhiNZGtBCKkweAKaAcMuA nqWeBN7zYdBENQDGVSZti6owC16HVjtk+twL760QCuOrTY0IpLv6wq2Y06eqpBM7bBZwsL lrDpRb6brt/H+h5vL33NtwFjjZYmv00= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-526-5jeUyjP0Py-qXDATY_jfZQ-1; Tue, 25 Jun 2024 07:20:02 -0400 X-MC-Unique: 5jeUyjP0Py-qXDATY_jfZQ-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-3643d0e3831so3517482f8f.0 for ; Tue, 25 Jun 2024 04:20:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719314401; x=1719919201; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TxfK50CM39AgyHMqWIsuemzgcz5lpe3wAS/FH8p5QME=; b=tC0YxDHxqj1ClZUNDUEJcvXjOBqcLYf9oTft8rXH505G6eMFOcWddVVURRe6ZTeZGA /eVnkWGgR6ftmkrOwt0p9+a7ISsJIe5IV6QT4G+KibE6THJptNe8SqSNQkMjNn/AoCip /ApzwlwEfk3Tq+QpOf5foV7u0yyJdzSI4eV8Iylh4MlyxwECbPMtyuovRhtqZ2ksmGvp rAIjwMZQy7O5i/OQHi2SV39OGa6BaijFUCQP976h/PGqBHciXGnO6NB8QRROccSFny8q I/W0VnIJN3pFB9qCTTPBXazg11WzwUt8WrqtlvGByMlIQtPEhPGYUtzuvZolo4FASJYp jWaQ== X-Gm-Message-State: AOJu0YyRoHghStJurvY0mwnPUJp7aYpq1UoUakcqv4yOrl0KNHlCaNxt KHizoq0y8EzpzLJfCaRqZPDKc1lg/y2a1KhZlU83NIAPyrhU1/6tQYqLWEX5fI1YG4KlKiVzkM6 z04T/svwcy/V9LbSsC0uNf3A7t5cWbwCsrKWv5Ssc1Rhnptq+sEr+ X-Received: by 2002:adf:e58b:0:b0:35f:1dce:8671 with SMTP id ffacd0b85a97d-366e948eb63mr4549694f8f.25.1719314401141; Tue, 25 Jun 2024 04:20:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcLxacYR4nykxujNhQdXMes9ZuyxkAAaFrXTW1/Li9bQClY0Za9ENc9OchVqJwrOj5T++SoQ== X-Received: by 2002:adf:e58b:0:b0:35f:1dce:8671 with SMTP id ffacd0b85a97d-366e948eb63mr4549679f8f.25.1719314400680; Tue, 25 Jun 2024 04:20:00 -0700 (PDT) Received: from imammedo.users.ipa.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36638f858fbsm12641652f8f.65.2024.06.25.04.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 04:20:00 -0700 (PDT) Date: Tue, 25 Jun 2024 13:19:59 +0200 From: Igor Mammedov To: Sunil V L Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Paolo Bonzini , =?UTF-8?B?TWFyYy1BbmRyw6k=?= Lureau , "Daniel P . =?UTF-8?B?QmVycmFuZ8Op?=" , Thomas Huth , Philippe =?UTF-8?B?TWF0aGlldS1EYXVkw6k=?= , "Michael S . Tsirkin" , Ani Sinha , Laurent Vivier , Gerd Hoffmann , Sia Jee Heng , Alistair Francis , Daniel Henrique Barboza , Palmer Dabbelt , Bin Meng , Weiwei Li , Liu Zhiwei , Alistair Francis Subject: Re: [PATCH v3 14/15] tests/qtest/bios-tables-test.c: Enable basic testing for RISC-V Message-ID: <20240625131959.67c2fc74@imammedo.users.ipa.redhat.com> In-Reply-To: <20240621115906.1049832-15-sunilvl@ventanamicro.com> References: <20240621115906.1049832-1-sunilvl@ventanamicro.com> <20240621115906.1049832-15-sunilvl@ventanamicro.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=imammedo@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.151, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Fri, 21 Jun 2024 17:29:05 +0530 Sunil V L wrote: > 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 */ > > +static void test_acpi_riscv64_virt_tcg(void) > +{ > + test_data data = { > + .machine = "virt", > + .arch = "riscv64", > + .tcg_only = true, > + .uefi_fl1 = "pc-bios/edk2-riscv-code.fd", > + .uefi_fl2 = "pc-bios/edk2-riscv-vars.fd", > + .cd = "tests/data/uefi-boot-images/bios-tables-test.riscv64.iso.qcow2", > + .ram_start = 0x80000000ULL, > + .scan_len = 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 = { > @@ -2455,6 +2477,10 @@ int main(int argc, char *argv[]) > qtest_add_func("acpi/virt/viot", test_acpi_aarch64_virt_viot); > } > } > + } else if (strcmp(arch, "riscv64") == 0) { > + if (has_tcg && qtest_has_device("virtio-blk-pci")) { > + qtest_add_func("acpi/virt", test_acpi_riscv64_virt_tcg); > + } > } > ret = g_test_run(); > boot_sector_cleanup(disk);