From patchwork Mon Mar 14 12:25:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mammedov X-Patchwork-Id: 8578871 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B8CDDC0553 for ; Mon, 14 Mar 2016 12:25:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D6FFE2040F for ; Mon, 14 Mar 2016 12:25:52 +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 B9EA6203FB for ; Mon, 14 Mar 2016 12:25:51 +0000 (UTC) Received: from localhost ([::1]:40755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afRZH-0004yK-4p for patchwork-qemu-devel@patchwork.kernel.org; Mon, 14 Mar 2016 08:25:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afRYv-0004xx-RI for qemu-devel@nongnu.org; Mon, 14 Mar 2016 08:25:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afRYs-0002Ni-Is for qemu-devel@nongnu.org; Mon, 14 Mar 2016 08:25:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afRYs-0002NR-BM for qemu-devel@nongnu.org; Mon, 14 Mar 2016 08:25:26 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id E1CA87F087 for ; Mon, 14 Mar 2016 12:25:25 +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-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2ECPNtm001024; Mon, 14 Mar 2016 08:25:23 -0400 From: Igor Mammedov To: qemu-devel@nongnu.org Date: Mon, 14 Mar 2016 13:25:22 +0100 Message-Id: <1457958322-217687-1-git-send-email-imammedo@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: mst@redhat.com Subject: [Qemu-devel] [PATCH v6] 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 --- - rebased on top of todays PCI tree to match modified tables --- tests/acpi-test-data/pc/APIC.cpuhp_sparse | Bin 0 -> 160 bytes tests/acpi-test-data/pc/DSDT.cpuhp_sparse | Bin 0 -> 5930 bytes tests/acpi-test-data/pc/SRAT.cpuhp_sparse | Bin 0 -> 264 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..67918d51b7b7fbd26aff57802b3cf358864fb36a GIT binary patch literal 160 zcmXAh%MpMe3`7G13?J>mR)CA1WX6lF*o~!Fij|<*a7fP(?DVs^0q-_NEBWt!K`mmi88wN|HY{?O2MwGJ*3`WX!FlFc# z!cBm>Mgd0!+_Z0*<< zOY4^2x^xDBRm&S%)ykG{o0^U?1^`6UTd7HRz&_B+YYt0BBxXNK`ZPYuvib|Xyt&5y z+Ht>j-3On$tnI+$cB(Z!Rr-cUWv8S! zL3TE4I#Ucez*OX_S!oFnLlCMljjGu)AO-Nvt0YMFBZc_6Ta|{MHJiGVRhJ#BRRWJB zu1BKwCoWgqe(I~93q3b^e0&7`>92Zi_)9wl|Nd|62#)xS>}X9Zli|~c2^=vx2MJ&g zly|RCHk7X2J!{_17yVpQQDB&gnJ;P);K#~JYz(GJHLK(VIGk9*E#|ZccR8l}-tVrE z7qSGXUWKW;S!po14pFT{L{ux|OVKV|jf%kJ&F)@qwls7aOj!~qi}Ic4r`DJU9w?Co zU~6m_b|Dhq1G{_eMp+-iqfs^C&&qJ1zM%^)Ftpl%9egiDaJ+W+qOq|#G@O~6G?aO4 z0Tcq3`PI5v5{td6*JiT{@EG6V zImTb`2!9vjmY$~6?Z;(_UPfO=L0(XNH>>2PFyV$r zhJJ8GL;XZvM$nIpew3;_Dxw2Zvsx?(&$)~xPK<^%xS7R=p0y9G$~v~9{G2K(NsLy` zRn}2aZWv9LR00JtTDh@lWNlWiYd1iB*VHQO5&Lc8j*q<#DZM>*56IlUNa7<<8rVW* zN4deN>{XpRX0rv}Y~;Z8p#7|zc+%zv-Y0Dyfh});x4i{C3fq09w~e3#woScpLx-LI zJH2hz&-B_{8j3C0d72(_B?M)9+dMLqln0XNP@=((_vzjiR{$Fq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V&@QU5p`D|x(Ga+s&Ju9|e| z2hQj1M;C~R(&nF~qW~XuqUuQDo`}WpCIL#Y!u{h6H(NX;{WFn1DeOn50((3{v$Q?p z!_u;9oX*jRV%(USJP$d*9yk-P669)Z2c%2o{*-)tPIwzoWVbGHB zij^M>OAUnzucrj`R2Z}@yq*@&)1gq|^^Aa?34?0F>%4%@heCzdvjTcH45|yS=LGaz zC{%boFQDhcpcUcu4FP>46e_&FDWGqLL05&>w*>U9P^j>FK|nA37*wsE*Kajik$!5w zgWqq5wAbD983h^K%>pJ%jL@tggF8~7IUt5K>HSU;|9yC9;kGj1BE$`K5^}gX40IH0 zX{e)M*x~~nMOz-~C>%EGKu7Vek#1(cgS#spK!+AKoZ#{NMt-EnbNSH1))9LAKt+C} zSBS?Z5c;gokMt|VV>t``fzOZh{)n+Kg&q%+LrWXe)2Ok;hI$&eKBlLUW3deNS>ng^ iE6C%r5A_Gcqh7s0S9APdD*aQ8mJrXnO*SBO9{nF|;Gs+a 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..8deeaee3bde46a891d8946b21368c4cef55d7d4f GIT binary patch literal 264 zcmWFzatz^MWME*N;NR__iX#j#W2>}2A 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);