mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
The actual backend is "Chardev", CharBackend is the frontend side of it (whatever talks to the backend), let's rename it for readability. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Link: https://lore.kernel.org/r/20251022074612.1258413-1-marcandre.lureau@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
32 lines
701 B
C
32 lines
701 B
C
/*
|
|
* Vhost-user SCMI virtio device
|
|
*
|
|
* Copyright (c) 2023 Red Hat, Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef _QEMU_VHOST_USER_SCMI_H
|
|
#define _QEMU_VHOST_USER_SCMI_H
|
|
|
|
#include "hw/virtio/virtio.h"
|
|
#include "hw/virtio/vhost.h"
|
|
#include "hw/virtio/vhost-user.h"
|
|
|
|
#define TYPE_VHOST_USER_SCMI "vhost-user-scmi"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(VHostUserSCMI, VHOST_USER_SCMI);
|
|
|
|
struct VHostUserSCMI {
|
|
VirtIODevice parent;
|
|
CharFrontend chardev;
|
|
struct vhost_virtqueue *vhost_vqs;
|
|
struct vhost_dev vhost_dev;
|
|
VhostUserState vhost_user;
|
|
VirtQueue *cmd_vq;
|
|
VirtQueue *event_vq;
|
|
bool connected;
|
|
bool started_vu;
|
|
};
|
|
|
|
#endif /* _QEMU_VHOST_USER_SCMI_H */
|