From patchwork Fri Feb 26 13:59:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mammedov X-Patchwork-Id: 8437201 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 856B39F52D for ; Fri, 26 Feb 2016 14:02:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A07B720259 for ; Fri, 26 Feb 2016 14:02:07 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 873F32021B for ; Fri, 26 Feb 2016 14:02:06 +0000 (UTC) Received: from localhost ([::1]:49959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZIy6-0001re-0v for patchwork-qemu-devel@patchwork.kernel.org; Fri, 26 Feb 2016 09:02:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZIvj-0006k8-47 for qemu-devel@nongnu.org; Fri, 26 Feb 2016 08:59:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZIvg-0008T3-It for qemu-devel@nongnu.org; Fri, 26 Feb 2016 08:59:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZIvg-0008St-At for qemu-devel@nongnu.org; Fri, 26 Feb 2016 08:59:36 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id E1FD0461D3 for ; Fri, 26 Feb 2016 13:59:35 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.34.112.60]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1QDxVCp007250; Fri, 26 Feb 2016 08:59:33 -0500 From: Igor Mammedov To: qemu-devel@nongnu.org Date: Fri, 26 Feb 2016 14:59:19 +0100 Message-Id: <1456495168-144510-2-git-send-email-imammedo@redhat.com> In-Reply-To: <1456495168-144510-1-git-send-email-imammedo@redhat.com> References: <1456495168-144510-1-git-send-email-imammedo@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: marcel@redhat.com, ehabkost@redhat.com, mst@redhat.com Subject: [Qemu-devel] [PATCH v4 01/10] tests: pc: acpi: piix4: add sparse CPU hotplug case X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Igor Mammedov Reviewed-by: Marcel Apfelbaum Reviewed-by: Marcel Apfelbaum --- tests/acpi-test-data/pc/APIC.cpuhp_sparse | Bin 0 -> 168 bytes tests/acpi-test-data/pc/DSDT.cpuhp_sparse | Bin 0 -> 5889 bytes tests/acpi-test-data/pc/SRAT.cpuhp_sparse | Bin 0 -> 280 bytes tests/bios-tables-test.c | 16 ++++++++++++++++ 4 files changed, 16 insertions(+) create mode 100644 tests/acpi-test-data/pc/APIC.cpuhp_sparse create mode 100644 tests/acpi-test-data/pc/DSDT.cpuhp_sparse create mode 100644 tests/acpi-test-data/pc/SRAT.cpuhp_sparse diff --git a/tests/acpi-test-data/pc/APIC.cpuhp_sparse b/tests/acpi-test-data/pc/APIC.cpuhp_sparse new file mode 100644 index 0000000000000000000000000000000000000000..d921ee1fa15fd6a549d8f12eb5f15682f5d5a8f3 GIT binary patch literal 168 zcmXAh!4ZHU3dF%=qzdbCzK#R)XfpBiYT(O;X*;O+@O-ds&YqpS2{; z6lZXd=xv>zdpNz4*lUfG{4fZO5n3yB4pbBN)39~mfxvoghK(a9-2xZHV(ezz$1i^D C5DftU literal 0 HcmV?d00001 diff --git a/tests/acpi-test-data/pc/DSDT.cpuhp_sparse b/tests/acpi-test-data/pc/DSDT.cpuhp_sparse new file mode 100644 index 0000000000000000000000000000000000000000..0dafa1037da867521d69d0ee0a5d2df07ac5a419 GIT binary patch literal 5889 zcmb7I-EZ606+c&`Wa>(?DVs^0q-_NEBWt!K`mmh@7=}osY{?O2R+NJb3`WX!FlE>l z!cBlCMghkKoV0J9mZ5tYlt9nPpRhgdv42AMFLc8a3{wrO+GKDQB)v?8q*w5ztQh!I8)q*|B0TwY_Aj>DI=T)QE`>`*qn_s{R+$ez zsIdiLt852$AeMLt&i<7f6=MXKBrO@N&1kxTp$8r?wAzMkd@sas*3SNUbA4lEI5T(L zP~q_fPzksuuNeAhE2lu450{@N;Pn%@3a#}RrZ7Q1Fqx3b+{l0 zL4Vb-+M}TI$Q7;7TU@C;v&ue`K9dw>VK1<+%KExl5UUes;eiq(qVfwG_m zZdS-m@t7MP8~MQviu4nE9Ya3~`cZ4j_)P3sy4_|ec*zw!vBc zQeM&lNfD!0^3^p|RGMasrPNSCj9zJOm^p`48u|^;KD6}eTFiN$xWhxgOG^JCy9;FQ zoG0-B)Fx&`#Z_-`I>nm7U8~gwe>S$~`OtY$Nj~fFJ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?H zRzR(0hoOU8HeC@bQ~ZxlGZ4djGwmNe@XGf({W{GQl(TS;e?ax?^oY*{yZ!IUGr)20 zsr}I}27xAMugEHghkySuP{2R_OIJf(#-$CfhR3P}$tP+AUijN(o(eCs8O~SPcdx#C z#pLjQY1OP&xIsrt4&D!PwKwX`o4(*Bykr_)$UeS}#mX+Zvk95uppjm5XBC;pun-fs zL>iia+W6aT+9zlKhJ1;xAy%t8Y7jgTTn#e1wei!!zk*jRhf~2TL2w6r#dFT%bih#k zzOFi7lynQvTkzA;u32uwfVu}DL*FvU*lo}T&9LG3Whj zeft0wg;zyDl}M=YniSAv6m&^=Bvg3K2xuk>dPR7h z7SQQPsPKxPP~li-qM%oWS5-jONT~3d70_%H^qTNGE1KMW#JW1emE^H z5-Pl&5YQ7*(2DSSQb12eLWS2;0(vS6std340y-ZF6<$vZ=;KPH--NdJg~8>47nI_Bb|&K7KfpZVl9ny6bw^* zsH14hBOQgqL>=lV-WAf#>~^ubVgov`G2sM{cL3zadhF2$Hl~iyb5(bz42U8HCOaK4? literal 0 HcmV?d00001 diff --git a/tests/acpi-test-data/pc/SRAT.cpuhp_sparse b/tests/acpi-test-data/pc/SRAT.cpuhp_sparse new file mode 100644 index 0000000000000000000000000000000000000000..5377019cca32fb7a97111ea79d96d68a52627cd8 GIT binary patch literal 280 zcmWFzatx7RWME*-aq@Te2v%^42yhMtiUEZfKx_~V!f+sf!DmF1XF}sMqw!hL_^fDr gHe^1d2Ha*Sg9|QzT^-PYVDNz*rVzV2m@IZ00Pd>^0RR91 literal 0 HcmV?d00001 diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 0a80ddf..15fa3c9 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -781,6 +781,20 @@ static void test_acpi_q35_tcg_bridge(void) free_test_data(&data); } +static void test_acpi_piix4_tcg_cpuhp_sparse(void) +{ + test_data data; + + memset(&data, 0, sizeof(data)); + data.machine = MACHINE_PC; + data.variant = ".cpuhp_sparse"; + test_acpi_one("-machine accel=tcg" + " -numa node -smp 1,sockets=2,cores=3,maxcpus=6", + &data); + free_test_data(&data); +} + + int main(int argc, char *argv[]) { const char *arch = qtest_get_arch(); @@ -797,6 +811,8 @@ int main(int argc, char *argv[]) qtest_add_func("acpi/piix4/tcg/bridge", test_acpi_piix4_tcg_bridge); qtest_add_func("acpi/q35/tcg", test_acpi_q35_tcg); qtest_add_func("acpi/q35/tcg/bridge", test_acpi_q35_tcg_bridge); + qtest_add_func("acpi/piix4/tcg/cpuhp_sparse", + test_acpi_piix4_tcg_cpuhp_sparse); } ret = g_test_run(); boot_sector_cleanup(disk);