cregit-Linux how code gets into the kernel

Release 4.11 arch/x86/xen/suspend.c

Directory: arch/x86/xen
#include <linux/types.h>
#include <linux/tick.h>

#include <xen/xen.h>
#include <xen/interface/xen.h>
#include <xen/grant_table.h>
#include <xen/events.h>

#include <asm/xen/hypercall.h>
#include <asm/xen/page.h>
#include <asm/fixmap.h>

#include "xen-ops.h"
#include "mmu.h"
#include "pmu.h"


static void xen_pv_pre_suspend(void) { xen_mm_pin_all(); xen_start_info->store_mfn = mfn_to_pfn(xen_start_info->store_mfn); xen_start_info->console.domU.mfn = mfn_to_pfn(xen_start_info->console.domU.mfn); BUG_ON(!irqs_disabled()); HYPERVISOR_shared_info = &xen_dummy_shared_info; if (HYPERVISOR_update_va_mapping(fix_to_virt(FIX_PARAVIRT_BOOTMAP), __pte_ma(0), 0)) BUG(); }

Contributors

PersonTokensPropCommitsCommitProp
Jeremy Fitzhardinge6893.15%150.00%
David Vrabel56.85%150.00%
Total73100.00%2100.00%


static void xen_hvm_post_suspend(int suspend_cancelled) { #ifdef CONFIG_XEN_PVHVM int cpu; if (!suspend_cancelled) xen_hvm_init_shared_info(); xen_callback_vector(); xen_unplug_emulated_devices(); if (xen_feature(XENFEAT_hvm_safe_pvclock)) { for_each_online_cpu(cpu) { xen_setup_runstate_info(cpu); } } #endif }

Contributors

PersonTokensPropCommitsCommitProp
Stefano Stabellini4384.31%457.14%
Ouyang Zhaowei (Charles)59.80%114.29%
David Vrabel23.92%114.29%
Konrad Rzeszutek Wilk11.96%114.29%
Total51100.00%7100.00%


static void xen_pv_post_suspend(int suspend_cancelled) { xen_build_mfn_list_list(); xen_setup_shared_info(); if (suspend_cancelled) { xen_start_info->store_mfn = pfn_to_mfn(xen_start_info->store_mfn); xen_start_info->console.domU.mfn = pfn_to_mfn(xen_start_info->console.domU.mfn); } else { #ifdef CONFIG_SMP BUG_ON(xen_cpu_initialized_map == NULL); cpumask_copy(xen_cpu_initialized_map, cpu_online_mask); #endif xen_vcpu_restore(); } xen_mm_unpin_all(); }

Contributors

PersonTokensPropCommitsCommitProp
Jeremy Fitzhardinge5873.42%240.00%
Mike Travis1215.19%120.00%
David Vrabel67.59%120.00%
Ian Campbell33.80%120.00%
Total79100.00%5100.00%


void xen_arch_pre_suspend(void) { if (xen_pv_domain()) xen_pv_pre_suspend(); }

Contributors

PersonTokensPropCommitsCommitProp
David Vrabel15100.00%1100.00%
Total15100.00%1100.00%


void xen_arch_post_suspend(int cancelled) { if (xen_pv_domain()) xen_pv_post_suspend(cancelled); else xen_hvm_post_suspend(cancelled); }

Contributors

PersonTokensPropCommitsCommitProp
David Vrabel2395.83%150.00%
Jeremy Fitzhardinge14.17%150.00%
Total24100.00%2100.00%


static void xen_vcpu_notify_restore(void *data) { /* Boot processor notified via generic timekeeping_resume() */ if (smp_processor_id() == 0) return; tick_resume_local(); }

Contributors

PersonTokensPropCommitsCommitProp
Ian Campbell2090.91%133.33%
Thomas Gleixner29.09%266.67%
Total22100.00%3100.00%


static void xen_vcpu_notify_suspend(void *data) { tick_suspend_local(); }

Contributors

PersonTokensPropCommitsCommitProp
Boris Ostrovsky13100.00%1100.00%
Total13100.00%1100.00%


void xen_arch_resume(void) { int cpu; on_each_cpu(xen_vcpu_notify_restore, NULL, 1); for_each_online_cpu(cpu) xen_pmu_init(cpu); }

Contributors

PersonTokensPropCommitsCommitProp
Boris Ostrovsky1242.86%120.00%
Ian Campbell828.57%240.00%
Isaku Yamahata725.00%120.00%
Thomas Gleixner13.57%120.00%
Total28100.00%5100.00%


void xen_arch_suspend(void) { int cpu; for_each_online_cpu(cpu) xen_pmu_finish(cpu); on_each_cpu(xen_vcpu_notify_suspend, NULL, 1); }

Contributors

PersonTokensPropCommitsCommitProp
Boris Ostrovsky28100.00%2100.00%
Total28100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Jeremy Fitzhardinge15140.92%29.52%
Boris Ostrovsky5615.18%314.29%
David Vrabel5113.82%14.76%
Stefano Stabellini4311.65%419.05%
Ian Campbell338.94%314.29%
Mike Travis123.25%14.76%
Isaku Yamahata71.90%14.76%
Ouyang Zhaowei (Charles)51.36%14.76%
Thomas Gleixner41.08%29.52%
Andrew Morton30.81%14.76%
Ingo Molnar30.81%14.76%
Konrad Rzeszutek Wilk10.27%14.76%
Total369100.00%21100.00%
Directory: arch/x86/xen
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.