From: Dominik Dingel Date: Tue, 14 Jan 2014 17:10:17 +0000 (+0100) Subject: KVM: s390: Allow skeys to be enabled for the current process X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~8^2~67^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=934bc131efc3e4be6a52f7dd6c4dbf99635e381a;p=pandora-kernel.git KVM: s390: Allow skeys to be enabled for the current process Introduce a new function s390_enable_skey(), which enables storage key handling via setting the use_skey flag in the mmu context. This function is only useful within the context of kvm. Note that enabling storage keys will cause a one-time hickup when walking the page table; however, it saves us special effort for cases like clear reset while making it possible for us to be architecture conform. s390_enable_skey() takes the page table lock to prevent reseting storage keys triggered from multiple vcpus. Signed-off-by: Dominik Dingel Acked-by: Martin Schwidefsky Signed-off-by: Christian Borntraeger --- Reading git-diff-tree failed