OSDN Git Service

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)
commit43ce76ce731ff7f9cff51124fee738018c18a864
tree9652072a1aaf6821cf8d60ee1081e401844c81a4
parentc4f55198c7c2b87909b166ffc2f6b68d9af6766c
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