KVM: s390: Fix RRBE return code not being CC
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Fri, 27 Jan 2017 09:23:59 +0000 (10:23 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Jan 2017 10:19:17 +0000 (11:19 +0100)
reset_guest_reference_bit needs to return the CC, so we can set it in
the guest PSW when emulating RRBE. Right now it only returns 0.

Let's fix that.

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/mm/pgtable.c

index 7a1897c51c5495f3f2b13d86ba8f6344e2234788..f70db837ddc4b932c22a99dfa3ae728a1710cc17 100644 (file)
@@ -741,7 +741,7 @@ int reset_guest_reference_bit(struct mm_struct *mm, unsigned long addr)
 
        pgste_set_unlock(ptep, new);
        pte_unmap_unlock(ptep, ptl);
-       return 0;
+       return cc;
 }
 EXPORT_SYMBOL(reset_guest_reference_bit);