mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
8c4c162109
In the context of VFIO, we use Vt-d, which means we rely on an IOMMU. Depending on the IOMMU capability, and in particular if it is not able to perform SC (Snooping Control), the memory will not be tagged as WB by KVM, but instead the vCPU will rely on its MTRR/PAT MSRs to find the appropriate way of interact with specific memory regions. Because when Vt-d is not involved KVM sets the memory as WB (write-back) the VMM should set the memory default as WB. That's why this patch sets the MSR MTRRdefType with the default memory type being WB. One thing that it is worth noting is that we might have to specifically create some UC (uncacheable) regions if we see some issues with the ranges corresponding to the MMIO ranges that should trap. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |