Skip to content

Commit

Permalink
kvm: fix compile on s390 part 2
Browse files Browse the repository at this point in the history
We also need to fence the memunmap part.

Fixes: e45adf6 ("KVM: Introduce a new guest mapping API")
Fixes: d30b214 (kvm: fix compilation on s390)
Cc: Michal Kubecek <[email protected]>
Cc: KarimAllah Ahmed <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
  • Loading branch information
borntraeger committed May 28, 2019
1 parent cd6c84d commit eb1f2f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eb1f2f3

Please sign in to comment.