tests/qtest: enable tests for virtio-scmi

We don't have a virtio-scmi implementation in QEMU and only support a
vhost-user backend.  This is very similar to virtio-gpio and we add the same
set of tests, just passing some vhost-user messages over the control socket.

Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230628100524.342666-4-mzamazal@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Milan Zamazal 2023-06-28 12:05:24 +02:00 committed by Michael S. Tsirkin
parent c46b20cf83
commit b6f53ae005
5 changed files with 254 additions and 0 deletions

View file

@ -0,0 +1,34 @@
/*
* virtio-scmi structures
*
* SPDX-FileCopyrightText: Red Hat, Inc.
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef TESTS_LIBQOS_VIRTIO_SCMI_H
#define TESTS_LIBQOS_VIRTIO_SCMI_H
#include "qgraph.h"
#include "virtio.h"
#include "virtio-pci.h"
typedef struct QVhostUserSCMI QVhostUserSCMI;
typedef struct QVhostUserSCMIPCI QVhostUserSCMIPCI;
typedef struct QVhostUserSCMIDevice QVhostUserSCMIDevice;
struct QVhostUserSCMI {
QVirtioDevice *vdev;
QVirtQueue **queues;
};
struct QVhostUserSCMIPCI {
QVirtioPCIDevice pci_vdev;
QVhostUserSCMI scmi;
};
struct QVhostUserSCMIDevice {
QOSGraphObject obj;
QVhostUserSCMI scmi;
};
#endif