Re: [PATCH v6 0/2] KVM: MMU: fix kvm_is_mmio_pfn()

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 08:29, Haozhong Zhang wrote: > Some reserved pages, such as those from NVDIMM DAX devices, are not > for MMIO, and can be mapped with cached memory type for better > performance. However, the above check misconceives those pages as > MMIO. Because KVM maps MMIO pages with UC memory

Re: [PATCH v6 0/2] KVM: MMU: fix kvm_is_mmio_pfn()

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 08:29, Haozhong Zhang wrote: > Some reserved pages, such as those from NVDIMM DAX devices, are not > for MMIO, and can be mapped with cached memory type for better > performance. However, the above check misconceives those pages as > MMIO. Because KVM maps MMIO pages with UC memory

[PATCH v6 0/2] KVM: MMU: fix kvm_is_mmio_pfn()

2017-12-19 Thread Haozhong Zhang
Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance. However, the above check misconceives those pages as MMIO. Because KVM maps MMIO pages with UC memory type, the performance of guest accesses to those

[PATCH v6 0/2] KVM: MMU: fix kvm_is_mmio_pfn()

2017-12-19 Thread Haozhong Zhang
Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance. However, the above check misconceives those pages as MMIO. Because KVM maps MMIO pages with UC memory type, the performance of guest accesses to those