On 03/12/18 10:30, KarimAllah Ahmed wrote: > +void kvm_vcpu_unmap(struct kvm_host_map *map) This probably needs to come in two versions, dirty and clean. I'll do the adjustment when I queue this for 4.22. Thanks, Paolo > +{ > + if (!map->hva) > + return; > + > + if (map->page) > + kunmap(map->page); > + else > + memunmap(map->hva); > + > + kvm_release_pfn_dirty(map->pfn); > + map->hva = NULL; > +} > +EXPORT_SYMBOL_GPL(kvm_vcpu_unmap); > +