mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 07:21:15 +00:00
FS_IO is part of the actions a vhost-user-fs daemon can ask the VMM to perform on its behalf. It is meant to read/write the content from a file descriptor directly into a guest memory region. This region can either be a RAM region or the dedicated cache region for virtio-fs. The way FS_IO was implemented, it was only expecting the guest physical address provided through the "cache_offset" field to refer to the cache region. Unfortunately, this was only implementing FS_IO partially. This patch extends the existing FS_IO implementation by checking the GPA against the cache region as a first step, but if it is not part of the cache region address range, then we fallback onto searching for a RAM region that could match. If there is a matching RAM region, we retrieve the corresponding host address to let the VMM read/write from/to it. Fixes: #1054 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |