]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu_ppc64: Avoid repeated loading of CPU map
authorJiri Denemark <jdenemar@redhat.com>
Fri, 30 Sep 2022 09:03:15 +0000 (11:03 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 10 Oct 2022 12:31:42 +0000 (14:31 +0200)
commit0cc8e875207a8aca0c94cc334e372520a880242b
tree739573215ad0ba6c8821dceba9414dd2ed17f16d
parentf0554d88fbe5005c5b98ac8324284683196d8257
cpu_ppc64: Avoid repeated loading of CPU map

The ppc64 CPU code still has to load and parse the CPU map everytime it
needs to look at it, which can make some operations pretty slow. Other
archs already switched to loading the CPU map once and keeping the
parsed structure in memory. Let's switch ppc64 as well.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/cpu/cpu_ppc64.c