Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dragonball: Support vhost-user-net device #8503

Merged
merged 3 commits into from
Dec 25, 2023

Commits on Dec 22, 2023

  1. dragonball: Introduce address space for MmioV2DeviceState

    Vhost-user-net has a dependency on address space from `MmioV2DeviceState`.
    The addition of the address space is introduced in this patch. Plus, it
    makes sure all unit tests have the according parameter as well.
    
    Fixes: kata-containers#8502
    
    Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
    justxuewei committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    1f21d3c View commit details
    Browse the repository at this point in the history
  2. dragonball: Support vhost-user-net devices

    This PR introduces vhost-user-net devices to Dragonball. The devices are
    allowed to run as server on the VMM side.
    
    Fixes: kata-containers#8502
    
    Signed-off-by: Eric Ren <renzhen@linux.alibaba.com>
    Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
    Signed-off-by: Zha Bin <zhabin@linux.alibaba.com>
    Signed-off-by: Chao Wu <chaowu@linux.alibaba.com>
    Signed-off-by: Zizheng Bian <zizheng.bian@linux.alibaba.com>
    Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
    justxuewei committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    beadce5 View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2023

  1. dragonball: Wrap config space into set_config_space

    Config space of network device is shared and accord with virtio 1.1 spec.
    It is a good way to abstract the common part into one function.
    `set_config_space()` implements this.
    
    Plus, this patch removes `vq_pairs` from vhost-net devices, since there is
    a possibility of data inconsistency. For example, some places read that
    from `self.vq_pairs`, others read from `queue_sizes.len() / 2`.
    
    Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
    justxuewei committed Dec 25, 2023
    Configuration menu
    Copy the full SHA
    4c5de72 View commit details
    Browse the repository at this point in the history