Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb1f2f38 authored by Christian Borntraeger's avatar Christian Borntraeger
Browse files

kvm: fix compile on s390 part 2



We also need to fence the memunmap part.

Fixes: e45adf66 ("KVM: Introduce a new guest mapping API")
Fixes: d30b214d (kvm: fix compilation on s390)
Cc: Michal Kubecek <mkubecek@suse.cz>
Cc: KarimAllah Ahmed <karahmed@amazon.de>
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
parent cd6c84d8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1795,8 +1795,10 @@ void kvm_vcpu_unmap(struct kvm_vcpu *vcpu, struct kvm_host_map *map,

	if (map->page)
		kunmap(map->page);
#ifdef CONFIG_HAS_IOMEM
	else
		memunmap(map->hva);
#endif

	if (dirty) {
		kvm_vcpu_mark_page_dirty(vcpu, map->gfn);