From nobody Sun Nov 24 07:45:08 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1726119050; cv=none; d=zohomail.com; s=zohoarc; b=SG1UOZzbPdLih0Jd/ZEr2usqfIuwv0bns0+0CourloU5dlQacGqyfKMZmBaXeZ7/DWHZzOAOALMg86MiaWzgjWSS/VKlM5cfpDeb2+isGvG7D+Em/rUi1SAQY9Xh9X6NJEz2dee3g8lRDa1XJzRbrIinbnXrfk2JLa0sW6yEF88= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1726119050; 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=t3uTPve2mzx49hu7WEVCseBvT4eXpfBEBSsLLj942CY=; b=Fefg/fqwzOLI0yOvvAeg2r/2rdLObGYP4ITy6cTrSQRlZl5IMXWcw+l3T9s26wcRXAbmQTHHn+cQcwLbMAcq/2SBpnEnQLmzsZ+majQAdtjFqk3CBbgO2pvmV43X3UqiwVywIlqdKV/hTC7A8ZQw2VsRkxN4w0RzCS/pWIykJZc= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1726119050093707.3223106227948; Wed, 11 Sep 2024 22:30:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1socPJ-00009X-Uj; Thu, 12 Sep 2024 01:30:18 -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 1socPF-0008O6-7K for qemu-devel@nongnu.org; Thu, 12 Sep 2024 01:30:13 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1socPD-0002yT-Fv for qemu-devel@nongnu.org; Thu, 12 Sep 2024 01:30:12 -0400 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-7191ee537cbso411545b3a.2 for ; Wed, 11 Sep 2024 22:30:10 -0700 (PDT) Received: from toolbox.alistair23.me (2403-580b-97e8-0-82ce-f179-8a79-69f4.ip6.aussiebb.net. [2403:580b:97e8:0:82ce:f179:8a79:69f4]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71908fc8fdesm3833034b3a.1.2024.09.11.22.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 22:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726119009; x=1726723809; 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=t3uTPve2mzx49hu7WEVCseBvT4eXpfBEBSsLLj942CY=; b=N0lHiWRD4cS2I2MqNFbN/tORLZR2ert36LGNcgp0xKA8yCTQ+nV/rRtw8cwBqV8B0k G6CXXrazWxdte+Lx2h2NxcbW8+1UZOEbaH5PRIFEVDPHMRTQVnQYvfUR/Z+HtSw7tur3 A9jwi1sCZMs3HIVzvaijyC38H4EyOMumDFJAb6NoxhySZJ1Fl8oCwRMIAn0vnb04qdsq dr1Yzb/xdavsuFeNLpfy8aFlYQrjV0YjF7HljMI3JrtmxjGokEnGQAs/zg7oXxcGFApE LSqfZ3A8ruFDOGF1nBTtloVzuL5LV8GXl1zGujp4ZlQZtrLwrfNjcvTOhtYuqoTKALyO R44g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726119009; x=1726723809; 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=t3uTPve2mzx49hu7WEVCseBvT4eXpfBEBSsLLj942CY=; b=N4tPnmJPilJxAU6PMAHz9Y3Hm5PrYJ06YH2sbPVjzxtwxN31i1gOZklhDnLCvwpexP YRBN1NGXuwkuuM+jUQgjgFQztsctbyfjje7N1qRoVxLVu3RbC1n5QA7ICZl2A9ykqQ/X YQSxuwtzCB398R3GNQkoWo6+EcVA7PUzKaZiMYZEzRS8I2WNpYcVbHaOG70AT04my//u 8K/d02jaDrGDNYcL6RxVOU2e+R+EY9T3qOPFvKcumLBVn4u/u+RooiDoiZO/uL8ijmDH 2om79SPkw/fMDnM34vR2fZI3XXFIdXod8WI1BrJATZnLfNjhqw4Wq1n1CG6eeIBgmDYX XT7w== X-Gm-Message-State: AOJu0YxoZOIYHi3KAtLqJ/+uTtG8+jpyrelMKJ16cQMRLtfZtg+nJuzV D903lV1wMl9XANdhG6EfeXi9Tn5qdxTFI1q3MgXZdvFpv11twfS5Uh1hgg== X-Google-Smtp-Source: AGHT+IFSEXK0TaAqemG7p92dP4KUTpd36cQy0n8IznMbjBuO6nM2e02WWrWyFMgKWgPdboH8rbropA== X-Received: by 2002:a05:6a00:812:b0:70d:1b48:e362 with SMTP id d2e1a72fcca58-719262065e5mr2379405b3a.26.1726119009550; Wed, 11 Sep 2024 22:30:09 -0700 (PDT) From: Alistair Francis X-Google-Original-From: Alistair Francis To: qemu-devel@nongnu.org Cc: alistair23@gmail.com, Haibo Xu , Sunil V L , Alistair Francis Subject: [PULL 03/47] tests/qtest/bios-tables-test.c: Enable numamem testing for RISC-V Date: Thu, 12 Sep 2024 15:29:08 +1000 Message-ID: <20240912052953.2552501-4-alistair.francis@wdc.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240912052953.2552501-1-alistair.francis@wdc.com> References: <20240912052953.2552501-1-alistair.francis@wdc.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::430; envelope-from=alistair23@gmail.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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 @gmail.com) X-ZM-MESSAGEID: 1726119052033116600 Content-Type: text/plain; charset="utf-8" From: Haibo Xu Add ACPI SRAT table test case for RISC-V when NUMA was enabled. Signed-off-by: Haibo Xu Reviewed-by: Sunil V L Acked-by: Alistair Francis Message-ID: Signed-off-by: Alistair Francis --- tests/qtest/bios-tables-test.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 36e5c0adde..e79f3a03df 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -1706,6 +1706,32 @@ static void test_acpi_microvm_ioapic2_tcg(void) free_test_data(&data); } =20 +static void test_acpi_riscv64_virt_tcg_numamem(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, + }; + + data.variant =3D ".numamem"; + /* + * 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" + " -object memory-backend-ram,id=3Dram0,size=3D128M" + " -numa node,memdev=3Dram0", + &data); + free_test_data(&data); +} + static void test_acpi_aarch64_virt_tcg_numamem(void) { test_data data =3D { @@ -2466,6 +2492,8 @@ int main(int argc, char *argv[]) } 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); + qtest_add_func("acpi/virt/numamem", + test_acpi_riscv64_virt_tcg_numamem); } } ret =3D g_test_run(); --=20 2.46.0