From: Marc Zyngier Date: Wed, 7 May 2014 12:44:49 +0000 (+0100) Subject: arm64: KVM: implement lazy world switch for debug registers X-Git-Tag: omap-for-v3.17/fixes-against-rc2~130^2~11^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0e626b380872b663918230fafdac128c34fea56;p=pandora-kernel.git arm64: KVM: implement lazy world switch for debug registers Implement switching of the debug registers. While the number of registers is massive, CPUs usually don't implement them all (A57 has 6 breakpoints and 4 watchpoints, which gives us a total of 22 registers "only"). Also, we only save/restore them when MDSCR_EL1 has debug enabled, or when we've flagged the debug registers as dirty. It means that most of the time, we only save/restore MDSCR_EL1. Reviewed-by: Anup Patel Reviewed-by: Christoffer Dall Signed-off-by: Marc Zyngier --- Reading git-diff-tree failed