684f912034
This patch is pure refactoring, it does not change behaviour. virtio-9p-test.c grew to 1657 lines. Let's split this file up between actual 9p test cases vs. 9p test client, to make it easier to concentrate on the actual 9p tests. Move the 9p test client code to a new unit virtio-9p-client.c, which are basically all functions and types prefixed with v9fs_* already. Note that some client wrapper functions (do_*) are preserved in virtio-9p-test.c, simply because these wrapper functions are going to be wiped with subsequent patches anyway. As the global QGuestAllocator variable is moved to virtio-9p-client.c, add a new function v9fs_set_allocator() to be used by virtio-9p-test.c instead of fiddling with a global variable across units and libraries. Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Reviewed-by: Greg Kurz <groug@kaod.org> Message-Id: <E1odrya-0004Fv-97@lizzy.crudebyte.com>
70 lines
1.5 KiB
Meson
70 lines
1.5 KiB
Meson
libqos_srcs = files(
|
|
'../libqtest.c',
|
|
'../libqmp.c',
|
|
|
|
'qgraph.c',
|
|
'qos_external.c',
|
|
'pci.c',
|
|
'fw_cfg.c',
|
|
'libqos-malloc.c',
|
|
'libqos.c',
|
|
'sdhci-cmd.c',
|
|
|
|
# spapr
|
|
'malloc-spapr.c',
|
|
'libqos-spapr.c',
|
|
'rtas.c',
|
|
'pci-spapr.c',
|
|
|
|
# pc
|
|
'pci-pc.c',
|
|
'malloc-pc.c',
|
|
'libqos-pc.c',
|
|
'ahci.c',
|
|
|
|
# usb
|
|
'usb.c',
|
|
|
|
# qgraph devices:
|
|
'e1000e.c',
|
|
'i2c.c',
|
|
'i2c-imx.c',
|
|
'i2c-omap.c',
|
|
'sdhci.c',
|
|
'tpci200.c',
|
|
'virtio.c',
|
|
'virtio-9p.c',
|
|
'virtio-9p-client.c',
|
|
'virtio-balloon.c',
|
|
'virtio-blk.c',
|
|
'vhost-user-blk.c',
|
|
'virtio-mmio.c',
|
|
'virtio-net.c',
|
|
'virtio-pci.c',
|
|
'virtio-pci-modern.c',
|
|
'virtio-rng.c',
|
|
'virtio-scsi.c',
|
|
'virtio-serial.c',
|
|
'virtio-iommu.c',
|
|
'virtio-gpio.c',
|
|
'generic-pcihost.c',
|
|
|
|
# qgraph machines:
|
|
'aarch64-xlnx-zcu102-machine.c',
|
|
'arm-imx25-pdk-machine.c',
|
|
'arm-n800-machine.c',
|
|
'arm-raspi2-machine.c',
|
|
'arm-sabrelite-machine.c',
|
|
'arm-smdkc210-machine.c',
|
|
'arm-virt-machine.c',
|
|
'arm-xilinx-zynq-a9-machine.c',
|
|
'ppc64_pseries-machine.c',
|
|
'x86_64_pc-machine.c',
|
|
)
|
|
|
|
libqos = static_library('qos', libqos_srcs + genh,
|
|
name_suffix: 'fa',
|
|
build_by_default: false)
|
|
|
|
qos = declare_dependency(link_whole: libqos)
|