]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
KVM: VMX: remove unneeded 'asm volatile ("")' from vmcs_write64
authorUros Bizjak <ubizjak@gmail.com>
Sun, 2 Jun 2019 19:11:56 +0000 (21:11 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jun 2019 12:14:49 +0000 (14:14 +0200)
__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>
arch/x86/kvm/vmx/ops.h

index b8e50f76fefcb818c1e82f83435447bbcf1e3228..2200fb698dd0fed2ed62576ca08e2232158ae274 100644 (file)
@@ -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
 }