The patch titled xen-paravirt_ops: use paravirt_nop to consistently mark no-op operations has been removed from the -mm tree. Its filename was xen-paravirt_ops-use-paravirt_nop-to-consistently-mark-no-op-operations.patch This patch was dropped because Zach's patches destroyed it all ------------------------------------------------------ Subject: xen-paravirt_ops: use paravirt_nop to consistently mark no-op operations From: Jeremy Fitzhardinge <jeremy@xxxxxxxx> Add a _paravirt_nop function for use as a stub for no-op operations, and paravirt_nop #defined void * version to make using it easier (since all its uses are as a void *). This is useful to allow the patcher to automatically identify noop operations so it can simply nop out the callsite. Signed-off-by: Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/i386/kernel/paravirt.c | 22 +++++++++++----------- include/asm-i386/paravirt.h | 3 +++ 2 files changed, 14 insertions(+), 11 deletions(-) diff -puN arch/i386/kernel/paravirt.c~xen-paravirt_ops-use-paravirt_nop-to-consistently-mark-no-op-operations arch/i386/kernel/paravirt.c --- a/arch/i386/kernel/paravirt.c~xen-paravirt_ops-use-paravirt_nop-to-consistently-mark-no-op-operations +++ a/arch/i386/kernel/paravirt.c @@ -35,7 +35,7 @@ #include <asm/timer.h> /* nop stub */ -static void native_nop(void) +void _paravirt_nop(void) { } @@ -490,7 +490,7 @@ struct paravirt_ops paravirt_ops = { .patch = native_patch, .banner = default_banner, - .arch_setup = native_nop, + .arch_setup = paravirt_nop, .memory_setup = machine_specific_memory_setup, .get_wallclock = native_get_wallclock, .set_wallclock = native_set_wallclock, @@ -546,7 +546,7 @@ struct paravirt_ops paravirt_ops = { .setup_boot_clock = setup_boot_APIC_clock, .setup_secondary_clock = setup_secondary_APIC_clock, #endif - .set_lazy_mode = (void *)native_nop, + .set_lazy_mode = paravirt_nop, .flush_tlb_user = native_flush_tlb, .flush_tlb_kernel = native_flush_tlb_global, @@ -554,17 +554,17 @@ struct paravirt_ops paravirt_ops = { .map_pt_hook = (void *)native_nop, - .alloc_pt = (void *)native_nop, - .alloc_pd = (void *)native_nop, - .alloc_pd_clone = (void *)native_nop, - .release_pt = (void *)native_nop, - .release_pd = (void *)native_nop, + .alloc_pt = paravirt_nop, + .alloc_pd = paravirt_nop, + .alloc_pd_clone = paravirt_nop, + .release_pt = paravirt_nop, + .release_pd = paravirt_nop, .set_pte = native_set_pte, .set_pte_at = native_set_pte_at, .set_pmd = native_set_pmd, - .pte_update = (void *)native_nop, - .pte_update_defer = (void *)native_nop, + .pte_update = paravirt_nop, + .pte_update_defer = paravirt_nop, #ifdef CONFIG_X86_PAE .set_pte_atomic = native_set_pte_atomic, .set_pte_present = native_set_pte_present, @@ -576,7 +576,7 @@ struct paravirt_ops paravirt_ops = { .irq_enable_sysexit = native_irq_enable_sysexit, .iret = native_iret, - .startup_ipi_hook = (void *)native_nop, + .startup_ipi_hook = paravirt_nop, }; /* diff -puN include/asm-i386/paravirt.h~xen-paravirt_ops-use-paravirt_nop-to-consistently-mark-no-op-operations include/asm-i386/paravirt.h --- a/include/asm-i386/paravirt.h~xen-paravirt_ops-use-paravirt_nop-to-consistently-mark-no-op-operations +++ a/include/asm-i386/paravirt.h @@ -430,6 +430,9 @@ static inline void pmd_clear(pmd_t *pmdp #define arch_enter_lazy_mmu_mode() paravirt_ops.set_lazy_mode(PARAVIRT_LAZY_MMU) #define arch_leave_lazy_mmu_mode() paravirt_ops.set_lazy_mode(PARAVIRT_LAZY_NONE) +void _paravirt_nop(void); +#define paravirt_nop ((void *)_paravirt_nop) + /* These all sit in the .parainstructions section to tell us what to patch. */ struct paravirt_patch { u8 *instr; /* original instructions */ _ Patches currently in -mm which might be from jeremy@xxxxxxxx are xen-paravirt_ops-use-paravirt_nop-to-consistently-mark-no-op-operations.patch xen-paravirt_ops-add-pagetable-accessors-to-pack-and-unpack-pagetable-entries.patch xen-paravirt_ops-paravirt_ops-hooks-to-set-up-initial-pagetable.patch xen-paravirt_ops-paravirt_ops-allocate-a-fixmap-slot.patch xen-paravirt_ops-allow-paravirt-backend-to-choose-kernel-pmd-sharing.patch xen-paravirt_ops-add-hooks-to-intercept-mm-creation-and-destruction.patch xen-paravirt_ops-remove-have_arch_mm_lifetime-define-no-op-architecture-implementations.patch xen-paravirt_ops-rename-struct-paravirt_patch-to-paravirt_patch_site-for-clarity.patch xen-paravirt_ops-use-patch-site-ids-computed-from-offset-in-paravirt_ops-structure.patch xen-paravirt_ops-fix-patch-site-clobbers-to-include-return-register.patch xen-paravirt_ops-consistently-wrap-paravirt-ops-callsites-to-make-them-patchable.patch xen-paravirt_ops-add-common-patching-machinery.patch xen-paravirt_ops-add-apply_to_page_range-which-applies-a-function-to-a-pte-range.patch xen-paravirt_ops-allocate-and-free-vmalloc-areas.patch xen-paravirt_ops-add-nosegneg-capability-to-the-vsyscall-page-notes.patch xen-paravirt_ops-add-xen-config-options.patch xen-paravirt_ops-add-xen-interface-header-files.patch xen-paravirt_ops-core-xen-implementation.patch xen-paravirt_ops-use-the-hvc-console-infrastructure-for-xen-console.patch xen-paravirt_ops-add-early-printk-support-via-hvc-console.patch xen-paravirt_ops-add-xen-grant-table-support.patch xen-paravirt_ops-add-the-xenbus-sysfs-and-virtual-device-hotplug-driver.patch xen-paravirt_ops-add-xen-virtual-block-device-driver.patch xen-paravirt_ops-add-the-xen-virtual-network-device-driver.patch fixes-and-cleanups-for-earlyprintk-aka-boot-console.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html