]> git.baikalelectronics.ru Git - kernel.git/commit
x86/vmx: Remove .fixup usage
authorPeter Zijlstra <peterz@infradead.org>
Wed, 10 Nov 2021 10:01:17 +0000 (11:01 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 11 Dec 2021 08:09:49 +0000 (09:09 +0100)
commit0be6b531ff151f733fed6fdbf1b94d5cb0e65758
treed86c7c76ff6f4b4ca0c39352c059259d8f250d00
parentd5c8df9f1401c4b405a78e9b8db905e775335da6
x86/vmx: Remove .fixup usage

In the vmread exceptin path, use the, thus far, unused output register
to push the @fault argument onto the stack. This, in turn, enables the
exception handler to not do pushes and only modify that register when
an exception does occur.

As noted by Sean the input constraint needs to be changed to "=&r" to
avoid the value and field occupying the same register.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20211110101325.781308550@infradead.org
arch/x86/kvm/vmx/vmx_ops.h