xen: remove unused function xen_set_domain_pte()
authorJuergen Gross <jgross@suse.com>
Fri, 4 Aug 2017 11:36:12 +0000 (13:36 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 31 Aug 2017 13:45:55 +0000 (09:45 -0400)
The function xen_set_domain_pte() is used nowhere in the kernel.
Remove it.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/include/asm/xen/page.h
arch/x86/xen/mmu_pv.c
include/trace/events/xen.h

index 497f7d28c1d61bc1b8c0ed07d0a083a046c49c7d..07b6531813c495a8c8fed7c2624e514bf8d8d274 100644 (file)
@@ -314,8 +314,6 @@ static inline pte_t __pte_ma(pteval_t x)
 #define p4d_val_ma(x)  ((x).p4d)
 #endif
 
-void xen_set_domain_pte(pte_t *ptep, pte_t pteval, unsigned domid);
-
 xmaddr_t arbitrary_virt_to_machine(void *address);
 unsigned long arbitrary_virt_to_mfn(void *vaddr);
 void make_lowmem_page_readonly(void *vaddr);
index cab28cf2cffbb78d09325c46413f65381ec6c5e3..0422ee7e70b3cb0aeb1cb47a9af426f215c85a57 100644 (file)
@@ -162,26 +162,6 @@ static bool xen_page_pinned(void *ptr)
        return PagePinned(page);
 }
 
-void xen_set_domain_pte(pte_t *ptep, pte_t pteval, unsigned domid)
-{
-       struct multicall_space mcs;
-       struct mmu_update *u;
-
-       trace_xen_mmu_set_domain_pte(ptep, pteval, domid);
-
-       mcs = xen_mc_entry(sizeof(*u));
-       u = mcs.args;
-
-       /* ptep might be kmapped when using 32-bit HIGHPTE */
-       u->ptr = virt_to_machine(ptep).maddr;
-       u->val = pte_val_ma(pteval);
-
-       MULTI_mmu_update(mcs.mc, mcs.args, 1, NULL, domid);
-
-       xen_mc_issue(PARAVIRT_LAZY_MMU);
-}
-EXPORT_SYMBOL_GPL(xen_set_domain_pte);
-
 static void xen_extend_mmu_update(const struct mmu_update *update)
 {
        struct multicall_space mcs;
index b70a38b7fa84b85f13967d1c4be83d18a1b416c1..677e8ac2bb81b57793ba1b2d343df0e0e45dd2fe 100644 (file)
@@ -149,24 +149,6 @@ DECLARE_EVENT_CLASS(xen_mmu__set_pte,
 DEFINE_XEN_MMU_SET_PTE(xen_mmu_set_pte);
 DEFINE_XEN_MMU_SET_PTE(xen_mmu_set_pte_atomic);
 
-TRACE_EVENT(xen_mmu_set_domain_pte,
-           TP_PROTO(pte_t *ptep, pte_t pteval, unsigned domid),
-           TP_ARGS(ptep, pteval, domid),
-           TP_STRUCT__entry(
-                   __field(pte_t *, ptep)
-                   __field(pteval_t, pteval)
-                   __field(unsigned, domid)
-                   ),
-           TP_fast_assign(__entry->ptep = ptep;
-                          __entry->pteval = pteval.pte;
-                          __entry->domid = domid),
-           TP_printk("ptep %p pteval %0*llx (raw %0*llx) domid %u",
-                     __entry->ptep,
-                     (int)sizeof(pteval_t) * 2, (unsigned long long)pte_val(native_make_pte(__entry->pteval)),
-                     (int)sizeof(pteval_t) * 2, (unsigned long long)__entry->pteval,
-                     __entry->domid)
-       );
-
 TRACE_EVENT(xen_mmu_set_pte_at,
            TP_PROTO(struct mm_struct *mm, unsigned long addr,
                     pte_t *ptep, pte_t pteval),