cregit-Linux how code gets into the kernel

Release 4.10 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 fitzhardingejeremy fitzhardinge6893.15%150.00%
david vrabeldavid 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 stabellinistefano stabellini4384.31%457.14%
ouyang zhaowei (charles)ouyang zhaowei (charles)59.80%114.29%
david vrabeldavid vrabel23.92%114.29%
konrad rzeszutek wilkkonrad 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 fitzhardingejeremy fitzhardinge5873.42%240.00%
mike travismike travis1215.19%120.00%
david vrabeldavid vrabel67.59%120.00%
ian campbellian 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 vrabeldavid 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 vrabeldavid vrabel2395.83%150.00%
jeremy fitzhardingejeremy 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 campbellian campbell2090.91%133.33%
thomas gleixnerthomas gleixner29.09%266.67%
Total22100.00%3100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
boris ostrovskyboris 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 ostrovskyboris ostrovsky1242.86%120.00%
ian campbellian campbell828.57%240.00%
isaku yamahataisaku yamahata725.00%120.00%
thomas gleixnerthomas 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 ostrovskyboris ostrovsky28100.00%2100.00%
Total28100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
jeremy fitzhardingejeremy fitzhardinge15140.92%29.52%
boris ostrovskyboris ostrovsky5615.18%314.29%
david vrabeldavid vrabel5113.82%14.76%
stefano stabellinistefano stabellini4311.65%419.05%
ian campbellian campbell338.94%314.29%
mike travismike travis123.25%14.76%
isaku yamahataisaku yamahata71.90%14.76%
ouyang zhaowei (charles)ouyang zhaowei (charles)51.36%14.76%
thomas gleixnerthomas gleixner41.08%29.52%
andrew mortonandrew morton30.81%14.76%
ingo molnaringo molnar30.81%14.76%
konrad rzeszutek wilkkonrad 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.