diff options
Diffstat (limited to 'wmediumd/lib/vhost.c')
-rw-r--r-- | wmediumd/lib/vhost.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wmediumd/lib/vhost.c b/wmediumd/lib/vhost.c index dbb721b..f5d1631 100644 --- a/wmediumd/lib/vhost.c +++ b/wmediumd/lib/vhost.c @@ -696,6 +696,8 @@ static void usfstl_vhost_user_handle_msg(struct usfstl_loop_entry *entry) usfstl_loop_unregister(&dev->virtqs[virtq].entry); } } + msg.payload.i8 = 1; // success + reply_len = sizeof(msg.payload.i8); break; case VHOST_USER_WAKE: USFSTL_ASSERT_EQ(len, (ssize_t)0, "%zd"); @@ -710,6 +712,8 @@ static void usfstl_vhost_user_handle_msg(struct usfstl_loop_entry *entry) usfstl_vhost_user_virtq_kick(dev, virtq); } } + msg.payload.i8 = 1; // success + reply_len = sizeof(msg.payload.i8); break; case VHOST_USER_SNAPSHOT: { USFSTL_ASSERT_EQ(len, (ssize_t)0, "%zd"); |