mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 21:03:54 -06:00
libvhost-user: Update and fix feature and request lists
Update the ProtocolFeature and UserRequest lists to match hw/virtio/vhost-user.c. Fix the text labelling in libvhost-user.c to match the list. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20171002191521.15748-4-dgilbert@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
parent
121765281d
commit
ea642e22ca
2 changed files with 13 additions and 6 deletions
|
@ -56,13 +56,10 @@
|
|||
} while (0)
|
||||
|
||||
static const char *
|
||||
vu_request_to_string(int req)
|
||||
vu_request_to_string(unsigned int req)
|
||||
{
|
||||
#define REQ(req) [req] = #req
|
||||
static const char *vu_request_str[] = {
|
||||
REQ(VHOST_USER_NONE),
|
||||
REQ(VHOST_USER_GET_FEATURES),
|
||||
REQ(VHOST_USER_SET_FEATURES),
|
||||
REQ(VHOST_USER_NONE),
|
||||
REQ(VHOST_USER_GET_FEATURES),
|
||||
REQ(VHOST_USER_SET_FEATURES),
|
||||
|
@ -83,7 +80,10 @@ vu_request_to_string(int req)
|
|||
REQ(VHOST_USER_GET_QUEUE_NUM),
|
||||
REQ(VHOST_USER_SET_VRING_ENABLE),
|
||||
REQ(VHOST_USER_SEND_RARP),
|
||||
REQ(VHOST_USER_INPUT_GET_CONFIG),
|
||||
REQ(VHOST_USER_NET_SET_MTU),
|
||||
REQ(VHOST_USER_SET_SLAVE_REQ_FD),
|
||||
REQ(VHOST_USER_IOTLB_MSG),
|
||||
REQ(VHOST_USER_SET_VRING_ENDIAN),
|
||||
REQ(VHOST_USER_MAX),
|
||||
};
|
||||
#undef REQ
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue