mirror of
https://github.com/qemu/qemu.git
synced 2025-08-08 08:05:17 +00:00
hw/ppc/spapr: Silence deprecation message in qtest mode
When running "make check", there is currently always an error message saying "spapr-pci-vfio-host-bridge is deprecated". This happens because the QOM tests are instantiating all possible devices, and the error message is currently located in the instance_init() function of the device. Since it is legal for the tests to instantiate a device without using it, the error message should be silenced when we're running in test mode. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
585fcd4b11
commit
a1aa130989
@ -27,6 +27,7 @@
|
|||||||
#include "linux/vfio.h"
|
#include "linux/vfio.h"
|
||||||
#include "hw/vfio/vfio.h"
|
#include "hw/vfio/vfio.h"
|
||||||
#include "qemu/error-report.h"
|
#include "qemu/error-report.h"
|
||||||
|
#include "sysemu/qtest.h"
|
||||||
|
|
||||||
#define TYPE_SPAPR_PCI_VFIO_HOST_BRIDGE "spapr-pci-vfio-host-bridge"
|
#define TYPE_SPAPR_PCI_VFIO_HOST_BRIDGE "spapr-pci-vfio-host-bridge"
|
||||||
|
|
||||||
@ -48,7 +49,9 @@ static Property spapr_phb_vfio_properties[] = {
|
|||||||
|
|
||||||
static void spapr_phb_vfio_instance_init(Object *obj)
|
static void spapr_phb_vfio_instance_init(Object *obj)
|
||||||
{
|
{
|
||||||
|
if (!qtest_enabled()) {
|
||||||
error_report("spapr-pci-vfio-host-bridge is deprecated");
|
error_report("spapr-pci-vfio-host-bridge is deprecated");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool spapr_phb_eeh_available(sPAPRPHBState *sphb)
|
bool spapr_phb_eeh_available(sPAPRPHBState *sphb)
|
||||||
|
Loading…
Reference in New Issue
Block a user