Re: [PATCH 3/3] KVM: MMU: consider host cache type in MMIO pfn check

2017-10-31 Thread Haozhong Zhang
On 10/27/17 10:40 +0200, Ingo Molnar wrote: > > * Haozhong Zhang wrote: > > > By default, KVM treats a reserved page as for MMIO purpose, and maps > > it to guest with UC memory type. However, some reserved pages are not > > for MMIO, such as pages of DAX device

Re: [PATCH 3/3] KVM: MMU: consider host cache type in MMIO pfn check

2017-10-31 Thread Haozhong Zhang
On 10/27/17 10:40 +0200, Ingo Molnar wrote: > > * Haozhong Zhang wrote: > > > By default, KVM treats a reserved page as for MMIO purpose, and maps > > it to guest with UC memory type. However, some reserved pages are not > > for MMIO, such as pages of DAX device (e.g., /dev/daxX.Y). Mapping >

Re: [PATCH 3/3] KVM: MMU: consider host cache type in MMIO pfn check

2017-10-27 Thread Ingo Molnar
* Haozhong Zhang wrote: > By default, KVM treats a reserved page as for MMIO purpose, and maps > it to guest with UC memory type. However, some reserved pages are not > for MMIO, such as pages of DAX device (e.g., /dev/daxX.Y). Mapping > them with UC memory type will

Re: [PATCH 3/3] KVM: MMU: consider host cache type in MMIO pfn check

2017-10-27 Thread Ingo Molnar
* Haozhong Zhang wrote: > By default, KVM treats a reserved page as for MMIO purpose, and maps > it to guest with UC memory type. However, some reserved pages are not > for MMIO, such as pages of DAX device (e.g., /dev/daxX.Y). Mapping > them with UC memory type will harm the performance. In

[PATCH 3/3] KVM: MMU: consider host cache type in MMIO pfn check

2017-10-26 Thread Haozhong Zhang
By default, KVM treats a reserved page as for MMIO purpose, and maps it to guest with UC memory type. However, some reserved pages are not for MMIO, such as pages of DAX device (e.g., /dev/daxX.Y). Mapping them with UC memory type will harm the performance. In order to exclude those cases, we

[PATCH 3/3] KVM: MMU: consider host cache type in MMIO pfn check

2017-10-26 Thread Haozhong Zhang
By default, KVM treats a reserved page as for MMIO purpose, and maps it to guest with UC memory type. However, some reserved pages are not for MMIO, such as pages of DAX device (e.g., /dev/daxX.Y). Mapping them with UC memory type will harm the performance. In order to exclude those cases, we