Cisco VPP Vhost-user 협상 순서

vhost-user 는 서버 와 클 라 이언 트 로 나 뉘 는데 다음 순서 로 libvirtd 와 vpp 가 협상 을 진행 합 니 다.협상 과정 에서 libvirtd 가 vhost-user 의 서버 나 클 라 이언 트 로 서 libvirtd 가 자발적으로 Unix Socket 소켓 소켓 을 사용 하여 협상 을 합 니 다.
vhost-user    :
                               vm libvirtd            -------------------------->        vpp

            VHOST_USER_GET_FEATURES
                                                                                  FEATURES: 5844926464
---------------------

            VHOST_USER_GET_PROTOCOL_FEATURES
                                                                                  PROTOCOL_FEATURES: 3
---------------------

            VHOST_USER_SET_PROTOCOL_FEATURES
                                                                                  PROTOCOL_FEATURES: 3
---------------------

            VHOST_USER_GET_QUEUE_NUM
                                                                                  QUEUE_NUM: 16
---------------------

            VHOST_USER_SET_OWNER
---------------------

            VHOST_USER_GET_FEATURES
                                                                                  FEATURES: 5844926464
---------------------

            VHOST_USER_SET_VRING_CALL
                                                                                  vring 0  callfd  : vhost_user_callfd_read_ready
---------------------

            VHOST_USER_SET_VRING_CALL
                                                                                  vring 1  callfd  : vhost_user_callfd_read_ready
---------------------

            VHOST_USER_SET_VRING_ENABLE
                                                                                  vring 0  enabled 1
---------------------

            VHOST_USER_SET_VRING_ENABLE
                                                                                  vring 1  enabled 1
---------------------

            VHOST_USER_SET_VRING_ENABLE
                                                                                  vring 0  enabled 1
---------------------

            VHOST_USER_SET_VRING_ENABLE
                                                                                  vring 1  enabled 1
---------------------

            VHOST_USER_SET_FEATURES
                                                                                  FEATURES: 5639274496
---------------------

            VHOST_USER_SET_MEM_TABLE
                                                                                  memory.regions  vui->region_mmap_addr
---------------------

            VHOST_USER_SET_VRING_NUM
                                                                                  vring 0  qsz
---------------------

            VHOST_USER_SET_VRING_BASE
                                                                                  vring 0  last_avail_idx 0
---------------------

            VHOST_USER_SET_VRING_ADDR
                                                                                  vring 0  desc、used、avail   ,last_used_idx、last_avail_idx、used->idx 0
---------------------

            VHOST_USER_SET_VRING_KICK
                                                                                  vring 0  kick      vhost_user_kickfd_read_ready
---------------------

            VHOST_USER_SET_VRING_CALL
                                                                                  vring 0  callfd  :vhost_user_callfd_read_ready
---------------------

            VHOST_USER_SET_VRING_NUM
                                                                                  vring 1  qsz
---------------------

            VHOST_USER_SET_VRING_BASE
                                                                                  vring 1  last_avail_idx
---------------------

            VHOST_USER_SET_VRING_ADDR
                                                                                  vring 1  desc、used、avail   ,last_used_idx、last_avail_idx、used->idx 0
---------------------

            VHOST_USER_SET_VRING_KICK
                                                                                  vring 1  kick      vhost_user_kickfd_read_ready
---------------------

            VHOST_USER_SET_VRING_CALL
                                                                                  vring 1  callfd      vhost_user_callfd_read_ready
---------------------

            VHOST_USER_SET_VRING_ENABLE
                                                                                  vring 0  enabled 1
---------------------

            VHOST_USER_SET_VRING_ENABLE
                                                                                  vring 1  enabled 1


좋은 웹페이지 즐겨찾기