]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm/vmx: Make noinstr clean
authorPeter Zijlstra <peterz@infradead.org>
Tue, 14 Jun 2022 21:15:32 +0000 (23:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 27 Jun 2022 08:33:58 +0000 (10:33 +0200)
commit8a1afccb4a466205eeab1ec3472e68988faf697e
tree3751b228c8c59dab105f713c558a07719a438326
parent95bff9fd66ecd812d590c69387965cb20664fd49
x86/kvm/vmx: Make noinstr clean

The recent mmio_stale_data fixes broke the noinstr constraints:

  vmlinux.o: warning: objtool: vmx_vcpu_enter_exit+0x15b: call to wrmsrl.constprop.0() leaves .noinstr.text section
  vmlinux.o: warning: objtool: vmx_vcpu_enter_exit+0x1bf: call to kvm_arch_has_assigned_device() leaves .noinstr.text section

make it all happy again.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h