2022-12-13 14:17:07 +03:00
|
|
|
/*
|
|
|
|
* Virtio QMP helpers
|
|
|
|
*
|
|
|
|
* Copyright IBM, Corp. 2007
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Anthony Liguori <aliguori@us.ibm.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
#ifndef HW_VIRTIO_QMP_H
|
|
|
|
#define HW_VIRTIO_QMP_H
|
|
|
|
|
|
|
|
#include "qapi/qapi-types-virtio.h"
|
2022-12-22 11:00:05 +03:00
|
|
|
#include "hw/virtio/virtio.h"
|
2022-12-22 15:08:10 +03:00
|
|
|
#include "hw/virtio/vhost.h"
|
2022-12-13 14:17:07 +03:00
|
|
|
|
2022-12-22 11:00:05 +03:00
|
|
|
VirtIODevice *qmp_find_virtio_device(const char *path);
|
2022-12-13 14:17:07 +03:00
|
|
|
VirtioDeviceStatus *qmp_decode_status(uint8_t bitmap);
|
|
|
|
VhostDeviceProtocols *qmp_decode_protocols(uint64_t bitmap);
|
|
|
|
VirtioDeviceFeatures *qmp_decode_features(uint16_t device_id, uint64_t bitmap);
|
|
|
|
|
|
|
|
#endif
|