From 116926f7c04c3f53afa8828dd52002ffffdf6382 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 21 May 2018 21:56:53 +1000 Subject: [PATCH] [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 --- module/kvmfr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/kvmfr.c b/module/kvmfr.c index 949cef27..b512fffc 100644 --- a/module/kvmfr.c +++ b/module/kvmfr.c @@ -46,7 +46,10 @@ static int kvmfr_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) if (!info->mem[0].addr) 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) goto out_release;