mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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:
parent
c46b20cf83
commit
b6f53ae005
5 changed files with 254 additions and 0 deletions
34
tests/qtest/libqos/virtio-scmi.h
Normal file
34
tests/qtest/libqos/virtio-scmi.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue