KVM: VMX: Convert launched argument to flags
commit bb066506 upstream. Convert __vmx_vcpu_run()'s 'launched' argument to 'flags', in preparation for doing SPEC_CTRL handling immediately after vmexit, which will need another flag. This is much easier than adding a fourth argument, because this code supports both 32-bit and 64-bit, and the fourth argument on 32-bit would have to be pushed on the stack. Note that __vmx_vcpu_run_flags() is called outside of the noinstr critical section because it will soon start calling potentially traceable functions. Signed-off-by:Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by:
Borislav Petkov <bp@suse.de> Signed-off-by:
Thadeu Lima de Souza Cascardo <cascardo@canonical.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- arch/x86/kvm/vmx/nested.c 1 addition, 1 deletionarch/x86/kvm/vmx/nested.c
- arch/x86/kvm/vmx/run_flags.h 7 additions, 0 deletionsarch/x86/kvm/vmx/run_flags.h
- arch/x86/kvm/vmx/vmenter.S 5 additions, 4 deletionsarch/x86/kvm/vmx/vmenter.S
- arch/x86/kvm/vmx/vmx.c 11 additions, 1 deletionarch/x86/kvm/vmx/vmx.c
- arch/x86/kvm/vmx/vmx.h 4 additions, 1 deletionarch/x86/kvm/vmx/vmx.h
Loading
Please register or sign in to comment