aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xen
diff options
context:
space:
mode:
authorElliott Mitchell <ehem+freebsd@m5p.com>2021-04-06 07:59:30 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2021-07-28 15:27:02 +0000
commitb6ff9345a46af564da32ad480490eaa97840d0b6 (patch)
treed3ff11e84405ecc28d49574704322ea561ffda63 /sys/dev/xen
parenta48f7ba444fdd8598635fc0330631fb293f7818f (diff)
Diffstat (limited to 'sys/dev/xen')
-rw-r--r--sys/dev/xen/bus/xenpv.c2
-rw-r--r--sys/dev/xen/console/xen_console.c2
-rw-r--r--sys/dev/xen/xenstore/xenstore.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/xen/bus/xenpv.c b/sys/dev/xen/bus/xenpv.c
index d9db10b7005d..080c82c73f08 100644
--- a/sys/dev/xen/bus/xenpv.c
+++ b/sys/dev/xen/bus/xenpv.c
@@ -125,7 +125,7 @@ xenpv_alloc_physmem(device_t dev, device_t child, int *res_id, size_t size)
phys_addr = rman_get_start(res);
error = vm_phys_fictitious_reg_range(phys_addr, phys_addr + size,
- VM_MEMATTR_DEFAULT);
+ VM_MEMATTR_XEN);
if (error) {
bus_release_resource(child, SYS_RES_MEMORY, *res_id, res);
return (NULL);
diff --git a/sys/dev/xen/console/xen_console.c b/sys/dev/xen/console/xen_console.c
index 7eed30885e6b..8ad755dbf214 100644
--- a/sys/dev/xen/console/xen_console.c
+++ b/sys/dev/xen/console/xen_console.c
@@ -273,7 +273,7 @@ static void
xencons_early_init_ring(struct xencons_priv *cons)
{
cons->intf = pmap_mapdev_attr(ptoa(xen_get_console_mfn()), PAGE_SIZE,
- VM_MEMATTR_WRITE_BACK);
+ VM_MEMATTR_XEN);
cons->evtchn = xen_get_console_evtchn();
}
diff --git a/sys/dev/xen/xenstore/xenstore.c b/sys/dev/xen/xenstore/xenstore.c
index 890cfe009411..dc00ed0d50b8 100644
--- a/sys/dev/xen/xenstore/xenstore.c
+++ b/sys/dev/xen/xenstore/xenstore.c
@@ -1130,7 +1130,7 @@ xs_attach(device_t dev)
} else {
xs.gpfn = xen_get_xenstore_mfn();
xen_store = pmap_mapdev_attr(ptoa(xs.gpfn), PAGE_SIZE,
- PAT_WRITE_BACK);
+ VM_MEMATTR_XEN);
xs.initialized = true;
}