aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2019-12-18 13:54:53 -0800
committerPaolo Bonzini <[email protected]>2020-01-24 09:18:56 +0100
commitfc6e2a1845abfcfa335aef5ffaac664e104d72ca (patch)
tree3499453a0c79a8785d184f6f12acf2586244b2cd /scripts/gdb/linux/proc.py
parenta9dd6f09d7e54d3f58be32d7d051196f7a00e69e (diff)
KVM: x86: Move FPU allocation to common x86 code
The allocation of FPU structs is identical across VMX and SVM, move it to common x86 code. Somewhat arbitrarily place the allocation so that it resides directly above the associated initialization via fx_init(), e.g. instead of retaining its position with respect to the overall vcpu creation flow. Although the names names kvm_arch_vcpu_create() and kvm_arch_vcpu_init() might suggest otherwise, x86 does not have a clean split between 'create' and 'init'. Allocating the struct immediately prior to the first use arguably improves readability *now*, and will yield even bigger improvements when kvm_arch_vcpu_init() is removed in a future patch. 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