]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen: use correct cache attributes for Xen specific memory regions
authorRoger Pau Monné <royger@FreeBSD.org>
Fri, 9 Apr 2021 09:31:44 +0000 (11:31 +0200)
committerRoger Pau Monné <royger@FreeBSD.org>
Thu, 12 Aug 2021 07:18:32 +0000 (09:18 +0200)
commitf4c6843ec2b9aa5eff475778fb000ed6278c5b77
treebf66bdc0bcde544ec9a5baaeeb0da561e6a27ec9
parent080c6fdc0ce86c55f7cbbe1e86c026f3bc641bb1
xen: use correct cache attributes for Xen specific memory regions

bus_activate_resource maps memory regions as uncacheable on x86, which
is more strict than required for regions allocated using xenmem_alloc,
so don't rely on bus_activate_resource and instead map the region
using pmap_mapdev_attr and VM_MEMATTR_XEN as the cache attribute.

Sponsored by: Citrix Systems R&D
sys/dev/xen/bus/xenpv.c