Skip to content

Commit 0230cae

Browse files
frankjaaborntraeger
authored andcommitted
KVM: s390: Replace clear_user with kvm_clear_guest
kvm_clear_guest also does the dirty tracking for us, which we want to have. Signed-off-by: Janosch Frank <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Acked-by: Christian Borntraeger <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
1 parent 6f0d349 commit 0230cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kvm/priv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ static int handle_pfmf(struct kvm_vcpu *vcpu)
956956
return kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
957957

958958
if (vcpu->run->s.regs.gprs[reg1] & PFMF_CF) {
959-
if (clear_user((void __user *)useraddr, PAGE_SIZE))
959+
if (kvm_clear_guest(vcpu->kvm, start, PAGE_SIZE))
960960
return kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
961961
}
962962

0 commit comments

Comments
 (0)