mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: MMU: fix kvm_is_mmio_pfn()
@ 2017-10-27  2:25 Haozhong Zhang
  2017-10-27  2:25 ` [PATCH 1/3] x86/mm: expose track_pfn_insert() Haozhong Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Haozhong Zhang @ 2017-10-27  2:25 UTC (permalink / raw)
  To: kvm, x86
  Cc: linux-kernel, Paolo Bonzini, rkrcmar, Xiao Guangrong,
	Dan Williams, ivan.d.cuevas.escareno, karthik.kumar,
	Haozhong Zhang, Thomas Gleixner, Ingo Molnar, H. Peter Anvin,
	Borislav Petkov, Mikulas Patocka, Tom Lendacky

[I just copy the commit message from patch 3]

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 check the host cache mode in addition and only
treat UC/UC- pages as MMIO.

Haozhong Zhang (3):
  x86/mm: expose track_pfn_insert()
  KVM: add converters between pfn_t and kvm_pfn_t
  KVM: MMU: consider host cache type in MMIO pfn check

 arch/x86/kvm/mmu.c       | 32 +++++++++++++++++++++++++++++---
 arch/x86/mm/pat.c        |  1 +
 include/linux/kvm_host.h |  3 +++
 3 files changed, 33 insertions(+), 3 deletions(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-10-31  8:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-27  2:25 [PATCH 0/3] KVM: MMU: fix kvm_is_mmio_pfn() Haozhong Zhang
2017-10-27  2:25 ` [PATCH 1/3] x86/mm: expose track_pfn_insert() Haozhong Zhang
2017-10-27  2:25 ` [PATCH 2/3] KVM: add converters between pfn_t and kvm_pfn_t Haozhong Zhang
2017-10-27  2:25 ` [PATCH 3/3] KVM: MMU: consider host cache type in MMIO pfn check Haozhong Zhang
2017-10-27  8:40   ` Ingo Molnar
2017-10-31  7:35     ` Haozhong Zhang
2017-10-31  8:12 ` [PATCH 0/3] KVM: MMU: fix kvm_is_mmio_pfn() Xiao Guangrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®