summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2019-05-27 04:28:25 -0400
committerChristian Borntraeger <borntraeger@de.ibm.com>2019-05-28 09:51:52 -0400
commiteb1f2f387db8c0d084581fb26e7faffde700bc8e (patch)
tree9f746da6d56bbebb2a4059c2035ff7c185ed1dad /virt
parentcd6c84d8f0cdc911df435bb075ba22ce3c605b07 (diff)
kvm: fix compile on s390 part 2
We also need to fence the memunmap part. Fixes: e45adf665a53 ("KVM: Introduce a new guest mapping API") Fixes: d30b214d1d0a (kvm: fix compilation on s390) Cc: Michal Kubecek <mkubecek@suse.cz> Cc: KarimAllah Ahmed <karahmed@amazon.de> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 134ec0283a8a..301089a462c4 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1795,8 +1795,10 @@ void kvm_vcpu_unmap(struct kvm_vcpu *vcpu, struct kvm_host_map *map,
1795 1795
1796 if (map->page) 1796 if (map->page)
1797 kunmap(map->page); 1797 kunmap(map->page);
1798#ifdef CONFIG_HAS_IOMEM
1798 else 1799 else
1799 memunmap(map->hva); 1800 memunmap(map->hva);
1801#endif
1800 1802
1801 if (dirty) { 1803 if (dirty) {
1802 kvm_vcpu_mark_page_dirty(vcpu, map->gfn); 1804 kvm_vcpu_mark_page_dirty(vcpu, map->gfn);