aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorDavid Stevens <[email protected]>2021-09-22 13:58:59 +0900
committerPaolo Bonzini <[email protected]>2021-10-01 03:44:58 -0400
commitdeae4a10f16649d9c8bfb89f38b61930fb938284 (patch)
tree1a02e48834bd4dcebf1f06d4828a4fadada9ebb8 /tools/perf/scripts/python/export-to-sqlite.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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions