target/riscv/cpu: set cpu->cfg in register_cpu_props()
[qemu.git] / hw / virtio / virtio-qmp.h
blob8af5f5e65a1a5cd2cbe1f88866ab8bc88ed65361
1 /*
2 * Virtio QMP helpers
4 * Copyright IBM, Corp. 2007
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifndef HW_VIRTIO_QMP_H
12 #define HW_VIRTIO_QMP_H
14 #include "qapi/qapi-types-virtio.h"
15 #include "hw/virtio/virtio.h"
16 #include "hw/virtio/vhost.h"
18 #include "qemu/queue.h"
20 typedef QTAILQ_HEAD(QmpVirtIODeviceList, VirtIODevice) QmpVirtIODeviceList;
22 /* QAPI list of realized VirtIODevices */
23 extern QmpVirtIODeviceList virtio_list;
25 VirtIODevice *qmp_find_virtio_device(const char *path);
26 VirtioDeviceStatus *qmp_decode_status(uint8_t bitmap);
27 VhostDeviceProtocols *qmp_decode_protocols(uint64_t bitmap);
28 VirtioDeviceFeatures *qmp_decode_features(uint16_t device_id, uint64_t bitmap);
30 #endif