x86/ibt,paravirt: Use text_gen_insn() for paravirt_patch()

Less duplication is more better.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154317.697253958@infradead.org
This commit is contained in:
Peter Zijlstra 2022-03-08 16:30:20 +01:00
commit ba27d1a808
2 changed files with 17 additions and 26 deletions