 b6f53ae005
			
		
	
	
		b6f53ae005
		
	
	
	
	
		
			
			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>
		
			
				
	
	
		
			35 lines
		
	
	
		
			671 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			671 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * 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
 |