mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-30 14:13:28 +00:00
To support discard for virtio-blk, the backend file should also located in a filesystem which support discard. So, mount /data partition with ' -o discard'. Then, add 'discard' to virtio-blk to enable this feature. 1. Erase operations on UOS will trigger the discard on SOS instead of writing zero, which will save erase time. 2. Discard in storage firmware will move the mapped host address range to the unmapped host address range. So, when delete a file in UOS, discard will trigger the space collection on storage, so that in the next write operation, it need not to do erase first. Tracked-On: #2547 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Reviewed-by: Yu Wang <yu1.wang@intel.com> Acked-by: Binbin Wu <binbin.wu@intel.com>
ACRN Device Model ################# Introduction ============ The ACRN Device Model provides **device sharing** capabilities between the Service OS and Guest OSs. It is a component that is used in conjunction with the `ACRN Hypervisor`_ and this is installed within the Service OS. You can find out more about Project ACRN on the `Project ACRN documentation`_ website. .. _`ACRN Hypervisor`: https://github.com/projectacrn/acrn-hypervisor .. _`Project ACRN documentation`: https://projectacrn.github.io/