]> git.baikalelectronics.ru Git - kernel.git/commit
KVM/x86: Use 32bit xor to clear registers in svm.c
authorUros Bizjak <ubizjak@gmail.com>
Wed, 17 Oct 2018 14:46:57 +0000 (16:46 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Oct 2018 17:08:21 +0000 (19:08 +0200)
commitd50403df4418eaa37841ddab6510b8761e6f7a93
tree9652072a1aaf6821cf8d60ee1081e401844c81a4
parent0e9f0733fcbaa4fe050a40e9a447e2165f9a33d7
KVM/x86: Use 32bit xor to clear registers in svm.c

x86_64 zero-extends 32bit xor operation to a full 64bit register.

Also add a comment and remove unnecessary instruction suffix in vmx.c

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c