summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-02-09 05:17:38 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2022-02-25 08:20:16 -0500
commit57cb3bb0dc89c09d989f5f9cd64a7ac19469a475 (patch)
treea962b257b25966729c3ae61942de6bd799be39f1 /tools/perf/scripts/python/export-to-sqlite.py
parentd6174299365ddbbf491620c0b8c5ca1a6ef2eea5 (diff)
KVM: x86: do not deliver asynchronous page faults if CR0.PG=0
Enabling async page faults is nonsensical if paging is disabled, but it is allowed because CR0.PG=0 does not clear the async page fault MSR. Just ignore them and only use the artificial halt state, similar to what happens in guest mode if async #PF vmexits are disabled. Given the increasingly complex logic, and the nicer code if the new "if" is placed last, opportunistically change the "||" into a chain of "if (...) return false" statements. Reviewed-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions