]>
Commit | Line | Data |
---|---|---|
04e9a20b AK |
1 | /* |
2 | * QTest testcase for SPAPR PHB | |
3 | * | |
4 | * Authors: | |
5 | * Alexey Kardashevskiy <[email protected]> | |
6 | * | |
7 | * This work is licensed under the terms of the GNU GPL, version 2 or later. | |
8 | * See the COPYING file in the top-level directory. | |
9 | */ | |
04e9a20b | 10 | |
dca06306 | 11 | #include "qemu/osdep.h" |
04e9a20b | 12 | #include "libqtest.h" |
dca06306 | 13 | #include "libqos/qgraph.h" |
04e9a20b | 14 | |
dca06306 EGE |
15 | /* Tests only initialization so far. TODO: Replace with functional tests, |
16 | * for example by producing pci-bus. | |
17 | */ | |
18 | static void test_phb_device(void *obj, void *data, QGuestAllocator *alloc) | |
04e9a20b AK |
19 | { |
20 | } | |
21 | ||
dca06306 | 22 | static void register_phb_test(void) |
04e9a20b | 23 | { |
dca06306 EGE |
24 | qos_add_test("spapr-phb-test", "ppc64/pseries", |
25 | test_phb_device, &(QOSGraphTestOptions) { | |
26 | .edge.before_cmd_line = "-device spapr-pci-host-bridge" | |
27 | ",index=30", | |
28 | }); | |
04e9a20b | 29 | } |
dca06306 EGE |
30 | |
31 | libqos_init(register_phb_test); |