tests: virtio-9p: code refactoring
commit1211d81b17e74df5ebc26884778b59b4e3ea064f
authorGreg Kurz <groug@kaod.org>
Tue, 3 Jan 2017 16:28:44 +0000 (3 17:28 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 3 Jan 2017 16:28:44 +0000 (3 17:28 +0100)
treebbc2f7614374381b44b13f1bec4145d37e17f70c
parentd5ebc8272b513adfdd6a8309d2c491e6bdc836b8
tests: virtio-9p: code refactoring

This moves the test_share static and the QOSState into the QVirtIO9P
structure, and put PCI related code in functions with a _pci_ name.

This will avoid code duplication in future tests, and allow to add
support for non-PCI platforms.

Signed-off-by: Greg Kurz <groug@kaod.org>
tests/virtio-9p-test.c