diff options
author | Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com> | 2023-07-19 11:14:19 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-03 15:18:54 +0300 |
commit | cfb9918442a1a22639f55f5923e9807481cc4045 (patch) | |
tree | 820815e4af4af81712db6005b35e33ae6cccc6ce /vhost_user_input.c | |
parent | 75dbf6ff44fc7f499f401265703d4bca5aaf3a79 (diff) |
Virtio-loopback-rfc release:
- Polish the code, remove comments, FIXMEs ...
- Add 'print_config' as a class method
- Fix 'features_sel' read/write operations
Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
Diffstat (limited to 'vhost_user_input.c')
-rw-r--r-- | vhost_user_input.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vhost_user_input.c b/vhost_user_input.c index cd5cb4f..e33d22c 100644 --- a/vhost_user_input.c +++ b/vhost_user_input.c @@ -92,6 +92,13 @@ static struct vhost_dev *vhost_input_get_vhost(VirtIODevice *vdev) return vdev->vhuinput->vhost_dev; } +static void print_config_input(uint8_t *config_data) +{ + struct virtio_input_config *config_strct = + (struct virtio_input_config *)config_data; + DBG("print_config_input: Not yet implemented\n"); +} + static void vhost_input_class_init(VirtIODevice *vdev) { DBG("vhost_input_class_init(...)\n"); @@ -100,13 +107,12 @@ static void vhost_input_class_init(VirtIODevice *vdev) /* Comment out the following lines to get the local config */ vdev->vdev_class->get_config = vhost_input_get_config; vdev->vdev_class->set_config = vhost_input_set_config; - vdev->vdev_class->get_vhost = vhost_input_get_vhost; - vdev->vhuinput->vdev_input->input_class->realize = vhost_user_input_realize; vdev->vhuinput->vdev_input->input_class->change_active = vhost_input_change_active; vdev->vdev_class->update_mem_table = update_mem_table; + vdev->vdev_class->print_config = print_config_input; } |