diff options
| author | Sean Christopherson <[email protected]> | 2019-12-18 13:54:54 -0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-01-24 09:18:57 +0100 |
| commit | d813a8ba54f94fd6a0276230bdf53c97b36c2101 (patch) | |
| tree | 399247f4498f6264587d0e2497d17105f0271407 /scripts/gdb/linux/proc.py | |
| parent | fc6e2a1845abfcfa335aef5ffaac664e104d72ca (diff) | |
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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions