summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDavid Stevens <stevensd@chromium.org>2021-09-22 13:58:59 +0900
committerPaolo Bonzini <pbonzini@redhat.com>2021-10-01 03:44:58 -0400
commitdeae4a10f16649d9c8bfb89f38b61930fb938284 (patch)
tree1a02e48834bd4dcebf1f06d4828a4fadada9ebb8 /tools/perf/scripts/python/exported-sql-viewer.py
parente9d0c0c4f7ea47d25490cd466cefe6d5c1a4d0ec (diff)
KVM: x86: only allocate gfn_track when necessary
Avoid allocating the gfn_track arrays if nothing needs them. If there are no external to KVM users of the API (i.e. no GVT-g), then page tracking is only needed for shadow page tables. This means that when tdp is enabled and there are no external users, then the gfn_track arrays can be lazily allocated when the shadow MMU is actually used. This avoid allocations equal to .05% of guest memory when nested virtualization is not used, if the kernel is compiled without GVT-g. Signed-off-by: David Stevens <stevensd@chromium.org> Message-Id: <20210922045859.2011227-3-stevensd@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions