diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2013-06-12 13:54:52 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-17 17:04:30 +0200 |
commit | db70ccdfb9953b984f5b95d98c50d8da335bab59 (patch) | |
tree | 0fcf0e279caf6c7b9652a7e6bc824fe926b893dd /arch/s390/include | |
parent | 8915aa27d5efbb9185357175b0acf884325565f9 (diff) | |
download | op-kernel-dev-db70ccdfb9953b984f5b95d98c50d8da335bab59.zip op-kernel-dev-db70ccdfb9953b984f5b95d98c50d8da335bab59.tar.gz |
KVM: s390: Provide function for setting the guest storage key
From time to time we need to set the guest storage key. Lets
provide a helper function that handles the changes with all the
right locking and checking.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r-- | arch/s390/include/asm/pgalloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/include/asm/pgalloc.h b/arch/s390/include/asm/pgalloc.h index 590c321..e1408dd 100644 --- a/arch/s390/include/asm/pgalloc.h +++ b/arch/s390/include/asm/pgalloc.h @@ -22,6 +22,9 @@ unsigned long *page_table_alloc(struct mm_struct *, unsigned long); void page_table_free(struct mm_struct *, unsigned long *); void page_table_free_rcu(struct mmu_gather *, unsigned long *); +int set_guest_storage_key(struct mm_struct *mm, unsigned long addr, + unsigned long key, bool nq); + static inline void clear_table(unsigned long *s, unsigned long val, size_t n) { typedef struct { char _[n]; } addrtype; |