diff options
author | 2019-12-18 13:54:54 -0800 | |
---|---|---|
committer | 2020-01-24 09:18:57 +0100 | |
commit | d813a8ba54f94fd6a0276230bdf53c97b36c2101 (patch) | |
tree | 399247f4498f6264587d0e2497d17105f0271407 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | KVM: x86: Move FPU allocation to common x86 code (diff) | |
download | linux-dev-d813a8ba54f94fd6a0276230bdf53c97b36c2101.tar.xz linux-dev-d813a8ba54f94fd6a0276230bdf53c97b36c2101.zip |
KVM: x86: Move allocation of pio_data page down a few lines
Allocate the pio_data page after creating the MMU and local APIC so that
all direct memory allocations are grouped together. This allows setting
the return value to -ENOMEM prior to starting the allocations instead of
setting it in the fail path for every allocation.
The pio_data page is only consumed when KVM_RUN is invoked, i.e. moving
its allocation has no real functional impact.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions