]> git.ipfire.org Git - thirdparty/qemu.git/blame - tests/spapr-phb-test.c
hw/rdma: Utilize ibv_reg_mr_iova for memory registration
[thirdparty/qemu.git] / tests / spapr-phb-test.c
CommitLineData
04e9a20b
AK
1/*
2 * QTest testcase for SPAPR PHB
3 *
4 * Authors:
5 * Alexey Kardashevskiy <aik@ozlabs.ru>
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"
0b8fa32f 13#include "qemu/module.h"
dca06306 14#include "libqos/qgraph.h"
04e9a20b 15
dca06306
EGE
16/* Tests only initialization so far. TODO: Replace with functional tests,
17 * for example by producing pci-bus.
18 */
19static void test_phb_device(void *obj, void *data, QGuestAllocator *alloc)
04e9a20b
AK
20{
21}
22
dca06306 23static void register_phb_test(void)
04e9a20b 24{
dca06306
EGE
25 qos_add_test("spapr-phb-test", "ppc64/pseries",
26 test_phb_device, &(QOSGraphTestOptions) {
27 .edge.before_cmd_line = "-device spapr-pci-host-bridge"
28 ",index=30",
29 });
04e9a20b 30}
dca06306
EGE
31
32libqos_init(register_phb_test);