Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`VhostBackend::set_vring_addr()` receives a vring config data which contains the addresses of desc table, used ring and avail ring. `VhostBackend::is_valid()` checks the addresses in the guest address space. `VHOST_SET_VRING_ADDR` uses the addresses in the host address space. However, the method doesn't convert those addresses. To address this issue, the addresses passed by the config are checked in the guest address space. Then, they are converted by `VringConfigData::to_vhost_vring_addr()` into the host address space to setup the vring on the kernel. Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
- Loading branch information