diff options
author | Sean Christopherson <[email protected]> | 2020-01-08 12:24:36 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2020-01-27 20:00:01 +0100 |
commit | 005ba37cb89bcc0cf63c2029a41f8db165aeb615 (patch) | |
tree | 0d0b3d133dfd012cfe53f548397308a7089da89c /tools/perf/util/trace-event-scripting.c | |
parent | 22b1d57b032cea4d612746473ed28cb20665d876 (diff) |
mm: thp: KVM: Explicitly check for THP when populating secondary MMU
Add a helper, is_transparent_hugepage(), to explicitly check whether a
compound page is a THP and use it when populating KVM's secondary MMU.
The explicit check fixes a bug where a remapped compound page, e.g. for
an XDP Rx socket, is mapped into a KVM guest and is mistaken for a THP,
which results in KVM incorrectly creating a huge page in its secondary
MMU.
Fixes: 936a5fe6e6148 ("thp: kvm mmu transparent hugepage support")
Reported-by: [email protected]
Cc: Andrea Arcangeli <[email protected]>
Cc: [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