mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
x86/xen: move paravirt lazy code
Only Xen is using the paravirt lazy mode code, so it can be moved to Xen specific sources. This allows to make some of the functions static or to merge them into their only call sites. While at it do a rename from "paravirt" to "xen" for all moved specifiers. No functional change. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Link: https://lore.kernel.org/r/20230913113828.18421-3-jgross@suse.com Signed-off-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
@@ -6,26 +6,26 @@
|
||||
#define _TRACE_XEN_H
|
||||
|
||||
#include <linux/tracepoint.h>
|
||||
#include <asm/paravirt_types.h>
|
||||
#include <asm/xen/hypervisor.h>
|
||||
#include <asm/xen/trace_types.h>
|
||||
|
||||
struct multicall_entry;
|
||||
|
||||
/* Multicalls */
|
||||
DECLARE_EVENT_CLASS(xen_mc__batch,
|
||||
TP_PROTO(enum paravirt_lazy_mode mode),
|
||||
TP_PROTO(enum xen_lazy_mode mode),
|
||||
TP_ARGS(mode),
|
||||
TP_STRUCT__entry(
|
||||
__field(enum paravirt_lazy_mode, mode)
|
||||
__field(enum xen_lazy_mode, mode)
|
||||
),
|
||||
TP_fast_assign(__entry->mode = mode),
|
||||
TP_printk("start batch LAZY_%s",
|
||||
(__entry->mode == PARAVIRT_LAZY_MMU) ? "MMU" :
|
||||
(__entry->mode == PARAVIRT_LAZY_CPU) ? "CPU" : "NONE")
|
||||
(__entry->mode == XEN_LAZY_MMU) ? "MMU" :
|
||||
(__entry->mode == XEN_LAZY_CPU) ? "CPU" : "NONE")
|
||||
);
|
||||
#define DEFINE_XEN_MC_BATCH(name) \
|
||||
DEFINE_EVENT(xen_mc__batch, name, \
|
||||
TP_PROTO(enum paravirt_lazy_mode mode), \
|
||||
TP_PROTO(enum xen_lazy_mode mode), \
|
||||
TP_ARGS(mode))
|
||||
|
||||
DEFINE_XEN_MC_BATCH(xen_mc_batch);
|
||||
|
||||
Reference in New Issue
Block a user