aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorAaron Lewis <[email protected]>2019-10-21 16:30:22 -0700
committerPaolo Bonzini <[email protected]>2019-10-22 15:44:26 +0200
commit78958563d8023db0c6d03a2fe2a64d79b47b4349 (patch)
tree58cdf9f89052f914d16d0517d7a4f3d7e9361604 /scripts/gdb/linux/lists.py
parentc034f2aa8622e1e436563eb34c0f78ba8aa32329 (diff)
KVM: x86: Remove unneeded kvm_vcpu variable, guest_xcr0_loaded
The kvm_vcpu variable, guest_xcr0_loaded, is a waste of an 'int' and a conditional branch. VMX and SVM are the only users, and both unconditionally pair kvm_load_guest_xcr0() with kvm_put_guest_xcr0() making this check unnecessary. Without this variable, the predicates in kvm_load_guest_xcr0 and kvm_put_guest_xcr0 should match. Suggested-by: Sean Christopherson <[email protected]> Reviewed-by: Jim Mattson <[email protected]> Signed-off-by: Aaron Lewis <[email protected]> Change-Id: I7b1eb9b62969d7bbb2850f27e42f863421641b23 Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions