warnings. And use it in the various tests that start pseries machines.
Signed-off-by: Greg Kurz <address@hidden>
---
This patch fixes the warnings observed with David's latest pull request.
tests/qtest/boot-serial-test.c | 3 ++-
tests/qtest/libqos/libqos-spapr.h | 8 ++++++++
tests/qtest/prom-env-test.c | 3 ++-
tests/qtest/pxe-test.c | 7 ++++---
4 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/tests/qtest/boot-serial-test.c
b/tests/qtest/boot-serial-test.c
index 8e8c5b0a0f0c..85a361428697 100644
--- a/tests/qtest/boot-serial-test.c
+++ b/tests/qtest/boot-serial-test.c
@@ -15,6 +15,7 @@
#include "qemu/osdep.h"
#include "libqtest.h"
+#include "libqos/libqos-spapr.h"
static const uint8_t kernel_mcf5208[] = {
0x41, 0xf9, 0xfc, 0x06, 0x00, 0x00, /* lea 0xfc060000,%a0 */
@@ -112,7 +113,7 @@ static testdef_t tests[] = {
{ "ppc64", "40p", "-m 192", "Memory: 192M" },
{ "ppc64", "mac99", "", "PowerPC,970FX" },
{ "ppc64", "pseries",
- "-machine cap-cfpc=broken,cap-sbbc=broken,cap-ibs=broken",
+ "-machine " PSERIES_DEFAULT_CAPABILITIES,
"Open Firmware" },
{ "ppc64", "powernv8", "", "OPAL" },
{ "ppc64", "powernv9", "", "OPAL" },
diff --git a/tests/qtest/libqos/libqos-spapr.h
b/tests/qtest/libqos/libqos-spapr.h
index dcb5c43ad37d..e4460d08ae6e 100644
--- a/tests/qtest/libqos/libqos-spapr.h
+++ b/tests/qtest/libqos/libqos-spapr.h
@@ -7,4 +7,12 @@ QOSState *qtest_spapr_vboot(const char *cmdline_fmt,
va_list ap);
QOSState *qtest_spapr_boot(const char *cmdline_fmt, ...);
void qtest_spapr_shutdown(QOSState *qs);
+/* List of capabilities needed to silent warnings with TCG */