mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
vhost: rename RESET_DEVICE backto RESET_OWNER
This patch basically reverts commit d1f8b30e
.
It turned out that it breaks stuff, so revert it:
http://lists.nongnu.org/archive/html/qemu-devel/2015-10/msg00949.html
CC: "Michael S. Tsirkin" <mst@redhat.com>
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2b8819c6ee
commit
60915dc469
6 changed files with 12 additions and 12 deletions
|
@ -188,7 +188,7 @@ typedef enum VhostUserRequest {
|
|||
VHOST_USER_GET_FEATURES = 1,
|
||||
VHOST_USER_SET_FEATURES = 2,
|
||||
VHOST_USER_SET_OWNER = 3,
|
||||
VHOST_USER_RESET_DEVICE = 4,
|
||||
VHOST_USER_RESET_OWNER = 4,
|
||||
VHOST_USER_SET_MEM_TABLE = 5,
|
||||
VHOST_USER_SET_LOG_BASE = 6,
|
||||
VHOST_USER_SET_LOG_FD = 7,
|
||||
|
@ -274,7 +274,7 @@ static const char *vubr_request_str[] = {
|
|||
[VHOST_USER_GET_FEATURES] = "VHOST_USER_GET_FEATURES",
|
||||
[VHOST_USER_SET_FEATURES] = "VHOST_USER_SET_FEATURES",
|
||||
[VHOST_USER_SET_OWNER] = "VHOST_USER_SET_OWNER",
|
||||
[VHOST_USER_RESET_DEVICE] = "VHOST_USER_RESET_DEVICE",
|
||||
[VHOST_USER_RESET_OWNER] = "VHOST_USER_RESET_OWNER",
|
||||
[VHOST_USER_SET_MEM_TABLE] = "VHOST_USER_SET_MEM_TABLE",
|
||||
[VHOST_USER_SET_LOG_BASE] = "VHOST_USER_SET_LOG_BASE",
|
||||
[VHOST_USER_SET_LOG_FD] = "VHOST_USER_SET_LOG_FD",
|
||||
|
@ -921,7 +921,7 @@ vubr_execute_request(VubrDev *dev, VhostUserMsg *vmsg)
|
|||
return vubr_set_features_exec(dev, vmsg);
|
||||
case VHOST_USER_SET_OWNER:
|
||||
return vubr_set_owner_exec(dev, vmsg);
|
||||
case VHOST_USER_RESET_DEVICE:
|
||||
case VHOST_USER_RESET_OWNER:
|
||||
return vubr_reset_device_exec(dev, vmsg);
|
||||
case VHOST_USER_SET_MEM_TABLE:
|
||||
return vubr_set_mem_table_exec(dev, vmsg);
|
||||
|
|
|
@ -57,7 +57,7 @@ typedef enum VhostUserRequest {
|
|||
VHOST_USER_GET_FEATURES = 1,
|
||||
VHOST_USER_SET_FEATURES = 2,
|
||||
VHOST_USER_SET_OWNER = 3,
|
||||
VHOST_USER_RESET_DEVICE = 4,
|
||||
VHOST_USER_RESET_OWNER = 4,
|
||||
VHOST_USER_SET_MEM_TABLE = 5,
|
||||
VHOST_USER_SET_LOG_BASE = 6,
|
||||
VHOST_USER_SET_LOG_FD = 7,
|
||||
|
@ -315,7 +315,7 @@ static void chr_read(void *opaque, const uint8_t *buf, int size)
|
|||
g_cond_signal(&s->data_cond);
|
||||
break;
|
||||
|
||||
case VHOST_USER_RESET_DEVICE:
|
||||
case VHOST_USER_RESET_OWNER:
|
||||
s->fds_num = 0;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue