Re: [PATCH 1/4] powerpc/kvm: Move kvm_tmp into .text, shrink to 64K

2019-09-19 Thread Michael Ellerman
On Wed, 2019-09-11 at 11:57:43 UTC, Michael Ellerman wrote: > In some configurations of KVM, guests binary patch themselves to > avoid/reduce trapping into the hypervisor. For some instructions this > requires replacing one instruction with a sequence of instructions. > > For those cases we need t

[PATCH 1/4] powerpc/kvm: Move kvm_tmp into .text, shrink to 64K

2019-09-11 Thread Michael Ellerman
In some configurations of KVM, guests binary patch themselves to avoid/reduce trapping into the hypervisor. For some instructions this requires replacing one instruction with a sequence of instructions. For those cases we need to write the sequence of instructions somewhere and then patch the loca