Commit d30b214d authored by Paolo Bonzini's avatar Paolo Bonzini

kvm: fix compilation on s390

s390 does not have memremap, even though in this particular case it
would be useful.
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 382409b4
......@@ -1761,8 +1761,10 @@ static int __kvm_map_gfn(struct kvm_memory_slot *slot, gfn_t gfn,
if (pfn_valid(pfn)) {
page = pfn_to_page(pfn);
hva = kmap(page);
#ifdef CONFIG_HAS_IOMEM
} else {
hva = memremap(pfn_to_hpa(pfn), PAGE_SIZE, MEMREMAP_WB);
#endif
}
if (!hva)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment