mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-12 12:30:08 +00:00
dm/VBS-U: implement virtio_vq_enable
Virtio modern changed the virtqueue cofiguration precedures. GPA of descriptor table, available ring and used ring are written to common configuration registers separately. A final write to Q_ENABLE register triggered initialization of the virtqueue on the backend device. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -318,7 +318,8 @@ struct vring_used {
|
||||
|
||||
/* From section 2.3, "Virtqueue Configuration", of the virtio specification */
|
||||
/**
|
||||
* @brief Calculate size of a virtual ring.
|
||||
* @brief Calculate size of a virtual ring, this interface is only valid for
|
||||
* legacy virtio.
|
||||
*
|
||||
* @param qsz Size of raw data in a certain virtqueue.
|
||||
*
|
||||
|
Reference in New Issue
Block a user