[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 6/9] x86: move memory_type_changed to mm.c
This function is common to both PV and HVM. Move it to x86 common code. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/arch/x86/hvm/mtrr.c | 9 --------- xen/arch/x86/mm.c | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/xen/arch/x86/hvm/mtrr.c b/xen/arch/x86/hvm/mtrr.c index c502dda..f33d3b5 100644 --- a/xen/arch/x86/hvm/mtrr.c +++ b/xen/arch/x86/hvm/mtrr.c @@ -822,15 +822,6 @@ static int hvm_load_mtrr_msr(struct domain *d, hvm_domain_context_t *h) HVM_REGISTER_SAVE_RESTORE(MTRR, hvm_save_mtrr_msr, hvm_load_mtrr_msr, 1, HVMSR_PER_VCPU); -void memory_type_changed(struct domain *d) -{ - if ( need_iommu(d) && d->vcpu && d->vcpu[0] ) - { - p2m_memory_type_changed(d); - flush_all(FLUSH_CACHE); - } -} - int epte_get_entry_emt(struct domain *d, unsigned long gfn, mfn_t mfn, unsigned int order, uint8_t *ipat, bool_t direct_mmio) { diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index a1a1f5f..f251bb3 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -5761,6 +5761,15 @@ unsigned long get_upper_mfn_bound(void) return min(max_mfn, 1UL << (paddr_bits - PAGE_SHIFT)) - 1; } +void memory_type_changed(struct domain *d) +{ + if ( need_iommu(d) && d->vcpu && d->vcpu[0] ) + { + p2m_memory_type_changed(d); + flush_all(FLUSH_CACHE); + } +} + /* * Local variables: * mode: C -- git-series 0.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |