From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Mon, 11 Dec 2017 09:40:27 +0000 Subject: [PATCH v2 09/36] KVM: arm64: Improve debug register save/restore flow In-Reply-To: <20171207170630.592-10-christoffer.dall@linaro.org> References: <20171207170630.592-1-christoffer.dall@linaro.org> <20171207170630.592-10-christoffer.dall@linaro.org> Message-ID: <5c7e6b56-1cb7-cfd7-c1c7-b23d37e99054@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 07/12/17 17:06, Christoffer Dall wrote: > Instead of having multiple calls from the world switch path to the debug > logic, each figuring out if the dirty bit is set and if we should > save/restore the debug registers, let's just provide two hooks to the > debug save/restore functionality, one for switching to the guest > context, and one for switching to the host context, and we get the > benefit of only having to evaluate the dirty flag once on each path, > plus we give the compiler some more room to inline some of this > functionality. > > Signed-off-by: Christoffer Dall Reviewed-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny...