Unverified Commit 4501a31b authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6003 KVM: s390: vsie: fix race during shadow creation

parents c5486cb2 7e62e9b8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1201,7 +1201,6 @@ static int acquire_gmap_shadow(struct kvm_vcpu *vcpu,
	gmap = gmap_shadow(vcpu->arch.gmap, asce, edat);
	if (IS_ERR(gmap))
		return PTR_ERR(gmap);
	gmap->private = vcpu->kvm;
	WRITE_ONCE(vsie_page->gmap, gmap);
	return 0;
}
+1 −0
Original line number Diff line number Diff line
@@ -1663,6 +1663,7 @@ struct gmap *gmap_shadow(struct gmap *parent, unsigned long asce,
		return ERR_PTR(-ENOMEM);
	new->mm = parent->mm;
	new->parent = gmap_get(parent);
	new->private = parent->private;
	new->orig_asce = asce;
	new->edat_level = edat_level;
	new->initialized = false;