[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 4/4] 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 <jbeulich@xxxxxxxx> --- a/xen/arch/x86/hvm/mtrr.c +++ b/xen/arch/x86/hvm/mtrr.c @@ -650,6 +650,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); @@ -695,6 +696,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; } Attachment:
x86-set-pinned-reeval.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |