From: Keir Fraser Date: Thu, 21 Aug 2008 09:52:01 +0000 (+0100) Subject: x86: fix l1_disallow_mask() for HVM guests with pass-thru devices. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14128 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b9c620d078f2cc0503c59aafb0e42865aee977ff;p=xen.git x86: fix l1_disallow_mask() for HVM guests with pass-thru devices. Signed-off-by: Naoki Nishiguchi --- diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index c6855d76d6..150d987514 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -163,7 +163,8 @@ unsigned long total_pages; #define l1_disallow_mask(d) \ ((d != dom_io) && \ (rangeset_is_empty((d)->iomem_caps) && \ - rangeset_is_empty((d)->arch.ioport_caps)) ? \ + rangeset_is_empty((d)->arch.ioport_caps) && \ + !has_arch_pdevs(d)) ? \ L1_DISALLOW_MASK : (L1_DISALLOW_MASK & ~PAGE_CACHE_ATTRS)) #ifdef CONFIG_COMPAT