From 90e5add6f2fa0b0bd9a4c1d5a4de2304b5f3e466 Mon Sep 17 00:00:00 2001 From: John Snow Date: Mon, 19 Jan 2015 15:15:55 -0500 Subject: libqos: add pc specific interface Create an operations structure so that the libqos interface can be architecture agnostic, and create a pc-specific interface to functions like qtest_boot. Move the libqos object in the Makefile from being ahci-test only to being linked with all tests that utilize the libqos features. Signed-off-by: John Snow Reviewed-by: Paolo Bonzini Message-id: 1421698563-6977-8-git-send-email-jsnow@redhat.com Signed-off-by: Stefan Hajnoczi --- tests/ahci-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/ahci-test.c') diff --git a/tests/ahci-test.c b/tests/ahci-test.c index 15542b9..3bc9772 100644 --- a/tests/ahci-test.c +++ b/tests/ahci-test.c @@ -29,7 +29,7 @@ #include #include "libqtest.h" -#include "libqos/libqos.h" +#include "libqos/libqos-pc.h" #include "libqos/ahci.h" #include "libqos/pci-pc.h" #include "libqos/malloc-pc.h" @@ -151,7 +151,7 @@ static AHCIQState *ahci_boot(void) " -M q35 " "-device ide-hd,drive=drive0 " "-global ide-hd.ver=%s"; - s->parent = qtest_boot(cli, tmp_path, "testdisk", "version"); + s->parent = qtest_pc_boot(cli, tmp_path, "testdisk", "version"); /* Verify that we have an AHCI device present. */ s->dev = get_ahci_device(); -- cgit v1.1