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

Libvhost user #1

Closed
wants to merge 5 commits into from
Closed

Libvhost user #1

wants to merge 5 commits into from

Commits on Oct 14, 2016

  1. libvhost-user: fix build

    This patch fix three simple errors that are preventing libvhost-user
    from building.
    
    Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
    franciozzy committed Oct 14, 2016
    Configuration menu
    Copy the full SHA
    34637ac View commit details
    Browse the repository at this point in the history
  2. libvhost-user: set used_idx copy on SET_VRING_ADDR

    When configuring VQs, Qemu will tell the backend where to start
    processing the avail ring with a SET_VRING_BASE message. However, there
    is no explicit message to tell the backend where to start processing the
    used ring.
    
    This patch updates the local copy of a vq's used_idx upon seeing a
    SET_VRING_ADDR message. The used ring may have changed if the driver has
    been reloaded, for example, or between SeaBIOS using the device and then
    the kernel loading the relevant virtio module.
    
    Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
    franciozzy committed Oct 14, 2016
    Configuration menu
    Copy the full SHA
    5ec91db View commit details
    Browse the repository at this point in the history
  3. libvhost-user: update shadow avail idx on SET_VRING_BASE

    The shadow copy of the last_avail_idx must also be updated upon
    receiving a SET_VRING_BASE message.
    
    Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
    franciozzy committed Oct 14, 2016
    Configuration menu
    Copy the full SHA
    0e4f06c View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2016

  1. libvhost-user: Always mark vqs as started/stopped

    Currently, VQs are only marked as started or stopped when
    queue_set_started() is configured during vu_init(). This patch mark VQs
    as started/stopped regardless. This field might be useful for other
    changes in the near future.
    
    Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
    franciozzy committed Oct 25, 2016
    Configuration menu
    Copy the full SHA
    b978462 View commit details
    Browse the repository at this point in the history
  2. libvhost-user: Start VQs on SET_VRING_CALL

    Currently, VQs are started as soon as a SET_VRING_KICK is received. That
    is too early in the VQ setup process, as the backend might not yet have
    a callfd to notify in case it received a kick and fully processed the
    request/command. This patch only starts a VQ when a SET_VRING_CALL is
    received.
    
    Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
    franciozzy committed Oct 25, 2016
    Configuration menu
    Copy the full SHA
    b1bae31 View commit details
    Browse the repository at this point in the history