[module] enable write-through mapping for the device

This is the magic I have been looking for the last few weeks, with
this change VM->VM is now useful at 60+fps :D
This commit is contained in:
Geoffrey McRae 2018-05-21 21:56:53 +10:00
parent d0a7b8df9c
commit 116926f7c0

View File

@ -46,7 +46,10 @@ static int kvmfr_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
if (!info->mem[0].addr) if (!info->mem[0].addr)
goto out_release; goto out_release;
info->mem[0].internal_addr = pci_iomap(dev, 2, 0); info->mem[0].internal_addr = ioremap_wt(
pci_resource_start(dev, 2),
pci_resource_len (dev, 2)
);
if (!info->mem[0].internal_addr) if (!info->mem[0].internal_addr)
goto out_release; goto out_release;