From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ralf Baechle Subject: Re: [PATCH 00/14] MIPS: KVM: Dynamically generate exception code Date: Tue, 5 Jul 2016 15:48:16 +0200 Message-ID: <20160705134815.GK7075@linux-mips.org> References: <1466699687-24791-1-git-send-email-james.hogan@imgtec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , linux-mips@linux-mips.org, kvm@vger.kernel.org To: James Hogan Return-path: Content-Disposition: inline In-Reply-To: <1466699687-24791-1-git-send-email-james.hogan@imgtec.com> Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: List-Id: kvm.vger.kernel.org On Thu, Jun 23, 2016 at 05:34:33PM +0100, James Hogan wrote: > These patches change the MIPS KVM exception entry code to be dynamically > assembled by the MIPS "uasm" in-kernel assembler, directly into unmapped > memory at run time by a new entry.c. Previously this code was statically > assembled from locore.S at build time and later copied into unmapped > memory at run time. > > Patches 1-5 add support for the necessary instructions to uasm. > > Patches 6-8 do the minimal-change conversion of locore.S to entry.c > using uasm (I've used -M10% so the diff is shown as a file move). > > Patches 9-14 make some related improvements that are possible now that > it is dynamically generated, such as avoiding messy runtime conditionals > in assembly code, making use of KScratch registers when available, and > simplifying the initial GP register save sequence & jump to common code. > > Ralf: Since the uasm patches (1-5) are needed for the later patches, I > suggest these all go together via the KVM tree (on which the whole > patchset is based), so Acks are welcome if they're okay with you. Yes, please, so for the MIPS bits, that is patche 01..05: Acked-by: Ralf Baechle Ralf