diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2019-06-02 21:11:56 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-06-05 14:14:49 +0200 |
commit | 1ae4de23eddef465104277e79fa669bec7b3d288 (patch) | |
tree | a7fdcde3c81072db306199cb3fb99ac9b202426c /arch/x86/kvm/vmx/ops.h | |
parent | b3ffd74a2f6fbec131eff6d81bc7a6dbbac57bc7 (diff) | |
download | linux-1ae4de23eddef465104277e79fa669bec7b3d288.tar.bz2 |
KVM: VMX: remove unneeded 'asm volatile ("")' from vmcs_write64
__vmcs_writel uses volatile asm, so there is no need to insert another
one between the first and the second call to __vmcs_writel in order
to prevent unwanted code moves for 32bit targets.
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx/ops.h')
-rw-r--r-- | arch/x86/kvm/vmx/ops.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx/ops.h b/arch/x86/kvm/vmx/ops.h index b8e50f76fefc..2200fb698dd0 100644 --- a/arch/x86/kvm/vmx/ops.h +++ b/arch/x86/kvm/vmx/ops.h @@ -146,7 +146,6 @@ static __always_inline void vmcs_write64(unsigned long field, u64 value) __vmcs_writel(field, value); #ifndef CONFIG_X86_64 - asm volatile (""); __vmcs_writel(field+1, value >> 32); #endif } |