Signed-off-by: Igor Mammedov <address@hidden>
---
- 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|<*a7f<E&Q5aM>P<xIDtldzrJSv1
z&J<^Gkm&6~&pn)8jo53Ale{s5)($!cstNn)address@hidden
B4FLcE
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..c8ce867d6d241b76ecef1e1fc322b68390a23bee
GIT binary patch
literal 5930
zcmb7I-EZ606+c&^Wa>(?DVs^0q-_NEBWt!K`mmi88wN|HY{?O2MwGJ*3`WX!FlFc#
z!cBm>Mgd0!+_Z0<mSWqJ68Jg!6Sl`a_D|^kg$`@;6z?2TSCW+y=meNNAHVZ)?>*<<
zOY4^2x^xDBRm&S%)ykG{o0^U?1^`6UTd7HRz&_B+YYt0BBxXNK`ZPYuvib|Xyt&5y
z+Ht>j-3On$tnI<pGv&!v+xzUXy9ES#xaDz9gtFjRWykKGH?>+$cB(Z!Rr-cUWv8S!
zL3TE4I#Ucez*OX_S!oFnLlCMljjGu)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kiTIhycwrQp^%#%#p02H-J(CSC+(yY
zcG3wuX<)ZRcdm(address@hidden&6LztI-E#bOyZ8ya_zAmsM>Qlm^&)r<cHodE^&XLo$o##2
zve)4eq6+~n5xp4DF`}0OI!^TRJ(*78*~HYKIq)lZY>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%(<!mCLBbPD@(address@hidden&address@hidden<h1W_cy?!Is3
zucM*0*%*BKqe&FhS-%YE3xxuZnxF-8OHjOEVJL*+hh7L&c#R2YEDTx{Ua`Rfuklc*
address@hidden(@3W;address@hidden(={B)oC~<)KjF75By<fn*qTS$IteXetycyru;-
z9R|H7yiN<address@hidden>USJP$d*9yk-P669)Z2c%2o{*-)tPIwzoWVbGHB
zij^M>address@hidden@&)1gq|^^Aa?34?0F>address@hidden|yS=LGaz
zC{%boFQDhcpcUcu4FP>46e_&FDWGqLL05&>w*>U9P^j>FK|nA37*wsE*Kajik$!5w
zgWqq5wAbD983h^K%>address@hidden>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;N<address@hidden<@85#SsQ6axw|fY=}!gyBE{gU^U2&address@hidden
dj2dv8pbRd!0Csgi2Z6x{c9=r!>R__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);