KVM: s390/mm: try a cow on read only pages for key ops
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 19 Aug 2014 14:19:35 +0000 (16:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:17 +0000 (14:52 -0700)
commit2bc5712526beb5842eb4d9e3c7668066004aa14d
tree6a59d1d558564af834187fc69f8ddacb6ef55c06
parentb71635775a36d1636f3de84a4d741febe049ad40
KVM: s390/mm: try a cow on read only pages for key ops

commit ab3f285f227fec62868037e9b1b1fd18294a83b8 upstream.

The PFMF instruction handler  blindly wrote the storage key even if
the page was mapped R/O in the host. Lets try a COW before continuing
and bail out in case of errors.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/mm/pgtable.c