From: Jan Beulich Date: Fri, 2 May 2014 08:51:32 +0000 (+0200) Subject: x86/EPT: also force EMT re-evaluation if pinned ranges change X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5121 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=35d1c20b85156eea6b6c3af32b6bad7b9caf6315;p=xen.git x86/EPT: also force EMT re-evaluation if pinned ranges change This was inadvertently left out of aa9114ed ("x86/EPT: force re-evaluation of memory type as necessary"). Note that this intentionally doesn't use memory_type_changed(): Changes to the pinned ranges are independent of IOMMU presence, which that function uses to determine whether to call the underlying p2m_memory_type_changed(). Signed-off-by: Jan Beulich Acked-by: Kevin Tian Reviewed-by: Tim Deegan --- diff --git a/xen/arch/x86/hvm/mtrr.c b/xen/arch/x86/hvm/mtrr.c index 98a4f34793..0ec38fcc21 100644 --- a/xen/arch/x86/hvm/mtrr.c +++ b/xen/arch/x86/hvm/mtrr.c @@ -651,6 +651,7 @@ int32_t hvm_set_mem_pinned_cacheattr( rcu_read_unlock(&pinned_cacheattr_rcu_lock); list_del_rcu(&range->list); call_rcu(&range->rcu, free_pinned_cacheattr_entry); + p2m_memory_type_changed(d); return 0; } rcu_read_unlock(&pinned_cacheattr_rcu_lock); @@ -696,6 +697,7 @@ int32_t hvm_set_mem_pinned_cacheattr( range->type = type; list_add_rcu(&range->list, &d->arch.hvm_domain.pinned_cacheattr_ranges); + p2m_memory_type_changed(d); return 0; }