2017-11-08 09:21:12

by Xiao Guangrong

[permalink] [raw]
Subject: Re: [PATCH v5 0/2] KVM: MMU: fix kvm_is_mmio_pfn()



On 11/08/2017 03:56 PM, 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 type, the
> performance of guest accesses to those pages would be harmed.
> Therefore, we check the host memory type in addition and only treat
> UC/UC- pages as MMIO.
>

Reviewed-by: Xiao Guangrong <[email protected]>

From 1583483816069244686@xxx Wed Nov 08 07:57:25 +0000 2017
X-GM-THRID: 1582773659541235477
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread