From: Igor Mammedov <imammedo@redhat.com>
To: fanhuang <FangSheng.Huang@amd.com>
Cc: <qemu-devel@nongnu.org>, <david@kernel.org>, <mst@redhat.com>,
<gourry@gourry.net>, <philmd@mailo.com>, <peterx@redhat.com>,
<Zhigang.Luo@amd.com>, <Lianjie.Shi@amd.com>
Subject: Re: [PATCH v13 07/10] tests/acpi: add bios-tables-test case for sp-mem
Date: Mon, 22 Jun 2026 15:00:48 +0200 [thread overview]
Message-ID: <20260622150048.358b9b00@imammedo> (raw)
In-Reply-To: <20260619111136.3481329-8-FangSheng.Huang@amd.com>
On Fri, 19 Jun 2026 19:11:33 +0800
fanhuang <FangSheng.Huang@amd.com> wrote:
> Add a q35 bios-tables-test case that boots two sp-mem devices on
> distinct NUMA nodes within the device_memory window, exercising the
> per-kind SRAT partition (per-device ENABLED entries plus HOTPLUGGABLE
> placeholders for the remaining sub-ranges).
>
> Signed-off-by: FangSheng Huang <FangSheng.Huang@amd.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
> ---
> tests/qtest/bios-tables-test.c | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
> index af6d9b5136..45abd8bd8c 100644
> --- a/tests/qtest/bios-tables-test.c
> +++ b/tests/qtest/bios-tables-test.c
> @@ -1416,6 +1416,26 @@ static void test_acpi_q35_tcg_numamem(void)
> free_test_data(&data);
> }
>
> +static void test_acpi_q35_tcg_sp_mem(void)
> +{
> + test_data data = {};
> +
> + data.machine = MACHINE_Q35;
> + data.arch = "x86",
> + data.variant = ".spmem";
> + test_acpi_one(" -m 128M,slots=4,maxmem=1G"
> + " -object memory-backend-ram,id=ram0,size=128M"
> + " -numa node,nodeid=0,memdev=ram0"
> + " -numa node,nodeid=1"
> + " -numa node,nodeid=2"
> + " -object memory-backend-ram,id=spm0,size=128M"
> + " -object memory-backend-ram,id=spm1,size=128M"
> + " -device sp-mem,id=sp0,memdev=spm0,node=1"
> + " -device sp-mem,id=sp1,memdev=spm1,node=2",
> + &data);
> + free_test_data(&data);
> +}
> +
> static void test_acpi_q35_kvm_xapic(void)
> {
> test_data data = {};
> @@ -2807,6 +2827,7 @@ int main(int argc, char *argv[])
> if (strcmp(arch, "i386")) {
> qtest_add_func("acpi/q35/memhp", test_acpi_q35_tcg_memhp);
> qtest_add_func("acpi/q35/dimmpxm", test_acpi_q35_tcg_dimm_pxm);
> + qtest_add_func("acpi/q35/sp-mem", test_acpi_q35_tcg_sp_mem);
> qtest_add_func("acpi/q35/acpihmat",
> test_acpi_q35_tcg_acpi_hmat);
> qtest_add_func("acpi/q35/mmio64", test_acpi_q35_tcg_mmio64);
next prev parent reply other threads:[~2026-06-22 13:02 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-19 11:11 [PATCH v13 00/10] hw/mem: add sp-mem device for Specific Purpose Memory fanhuang
2026-06-19 11:11 ` [PATCH v13 01/10] " fanhuang
2026-06-22 12:49 ` Igor Mammedov
2026-06-19 11:11 ` [PATCH v13 02/10] qapi, hmp: introspection for the sp-mem device fanhuang
2026-06-22 12:52 ` Igor Mammedov
2026-06-22 12:55 ` Daniel P. Berrangé
2026-06-22 13:07 ` Igor Mammedov
2026-06-22 13:22 ` Daniel P. Berrangé
2026-06-19 11:11 ` [PATCH v13 03/10] i386/acpi-build: partition device_memory SRAT umbrella for sp-mem fanhuang
2026-06-19 11:11 ` [PATCH v13 04/10] hw/i386: hook sp-mem into the pc machine plug path fanhuang
2026-06-22 12:44 ` Igor Mammedov
2026-06-19 11:11 ` [PATCH v13 05/10] MAINTAINERS: cover sp-mem under Memory devices, add R: tag fanhuang
2026-06-19 11:11 ` [PATCH v13 06/10] tests/acpi: add empty expected blobs for sp-mem SRAT test fanhuang
2026-06-22 12:53 ` Igor Mammedov
2026-06-19 11:11 ` [PATCH v13 07/10] tests/acpi: add bios-tables-test case for sp-mem fanhuang
2026-06-22 13:00 ` Igor Mammedov [this message]
2026-06-19 11:11 ` [PATCH v13 08/10] tests/acpi: generate expected blobs for sp-mem SRAT test fanhuang
2026-06-22 13:09 ` Igor Mammedov
2026-06-19 11:11 ` [PATCH v13 09/10] tests/qtest: add e820 fw_cfg test fanhuang
2026-06-22 14:09 ` Igor Mammedov
2026-06-19 11:11 ` [PATCH v13 10/10] tests/qtest: cover sp-mem SOFT_RESERVED e820 entry fanhuang
2026-06-22 14:09 ` Igor Mammedov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260622150048.358b9b00@imammedo \
--to=imammedo@redhat.com \
--cc=FangSheng.Huang@amd.com \
--cc=Lianjie.Shi@amd.com \
--cc=Zhigang.Luo@amd.com \
--cc=david@kernel.org \
--cc=gourry@gourry.net \
--cc=mst@redhat.com \
--cc=peterx@redhat.com \
--cc=philmd@mailo.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.