diff options
author | Sean Christopherson <[email protected]> | 2020-01-08 12:24:48 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2020-01-27 20:00:09 +0100 |
commit | e851265a816f96a86c5a0316d2fc4d45be76d1d4 (patch) | |
tree | 21bb77c2d610b96dbab00c0ca85e4a452cf6c787 /tools/perf/util/trace-event-scripting.c | |
parent | 2c0629f4b95cf5adf5b6f78f7d318df894b5f9a1 (diff) |
KVM: x86/mmu: Use huge pages for DAX-backed files
Walk the host page tables to identify hugepage mappings for ZONE_DEVICE
pfns, i.e. DAX pages. Explicitly query kvm_is_zone_device_pfn() when
deciding whether or not to bother walking the host page tables, as DAX
pages do not set up the head/tail infrastructure, i.e. will return false
for PageCompound() even when using huge pages.
Zap ZONE_DEVICE sptes when disabling dirty logging, e.g. if live
migration fails, to allow KVM to rebuild large pages for DAX-based
mappings. Presumably DAX favors large pages, and worst case scenario is
a minor performance hit as KVM will need to re-fault all DAX-based
pages.
Suggested-by: Barret Rhoden <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Jason Zeng <[email protected]>
Cc: Dave Jiang <[email protected]>
Cc: Liran Alon <[email protected]>
Cc: linux-nvdimm <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions