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 <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Tim Deegan <tim@xen.org>
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);
range->type = type;
list_add_rcu(&range->list, &d->arch.hvm_domain.pinned_cacheattr_ranges);
+ p2m_memory_type_changed(d);
return 0;
}