Skip to contentSkip to conversation

KVM: s390: Replace clear_user with kvm_clear_guest

GIT PULL Christian Borntraeger 1 participant 1 message Jul 31, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: Janosch Frank <[email protected]>

kvm_clear_guest also does the dirty tracking for us, which we want to have.

---
 arch/s390/kvm/priv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/s390/kvm/priv.c +1 -1
index eb0eb60c7be6..c4da375553e8 100644
@@ -956,7 +956,7 @@ static int handle_pfmf(struct kvm_vcpu *vcpu)
 			return kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
 
 		if (vcpu->run->s.regs.gprs[reg1] & PFMF_CF) {
-			if (clear_user((void __user *)useraddr, PAGE_SIZE))
+			if (kvm_clear_guest(vcpu->kvm, start, PAGE_SIZE))
 				return kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
 		}
 
Signature · 1 line
2.17.0