Release 4.11 arch/x86/xen/suspend.c
#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
Person | Tokens | Prop | Commits | CommitProp |
Jeremy Fitzhardinge | 68 | 93.15% | 1 | 50.00% |
David Vrabel | 5 | 6.85% | 1 | 50.00% |
Total | 73 | 100.00% | 2 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Stefano Stabellini | 43 | 84.31% | 4 | 57.14% |
Ouyang Zhaowei (Charles) | 5 | 9.80% | 1 | 14.29% |
David Vrabel | 2 | 3.92% | 1 | 14.29% |
Konrad Rzeszutek Wilk | 1 | 1.96% | 1 | 14.29% |
Total | 51 | 100.00% | 7 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Jeremy Fitzhardinge | 58 | 73.42% | 2 | 40.00% |
Mike Travis | 12 | 15.19% | 1 | 20.00% |
David Vrabel | 6 | 7.59% | 1 | 20.00% |
Ian Campbell | 3 | 3.80% | 1 | 20.00% |
Total | 79 | 100.00% | 5 | 100.00% |
void xen_arch_pre_suspend(void)
{
if (xen_pv_domain())
xen_pv_pre_suspend();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Vrabel | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
void xen_arch_post_suspend(int cancelled)
{
if (xen_pv_domain())
xen_pv_post_suspend(cancelled);
else
xen_hvm_post_suspend(cancelled);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Vrabel | 23 | 95.83% | 1 | 50.00% |
Jeremy Fitzhardinge | 1 | 4.17% | 1 | 50.00% |
Total | 24 | 100.00% | 2 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Ian Campbell | 20 | 90.91% | 1 | 33.33% |
Thomas Gleixner | 2 | 9.09% | 2 | 66.67% |
Total | 22 | 100.00% | 3 | 100.00% |
static void xen_vcpu_notify_suspend(void *data)
{
tick_suspend_local();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Boris Ostrovsky | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Boris Ostrovsky | 12 | 42.86% | 1 | 20.00% |
Ian Campbell | 8 | 28.57% | 2 | 40.00% |
Isaku Yamahata | 7 | 25.00% | 1 | 20.00% |
Thomas Gleixner | 1 | 3.57% | 1 | 20.00% |
Total | 28 | 100.00% | 5 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Boris Ostrovsky | 28 | 100.00% | 2 | 100.00% |
Total | 28 | 100.00% | 2 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeremy Fitzhardinge | 151 | 40.92% | 2 | 9.52% |
Boris Ostrovsky | 56 | 15.18% | 3 | 14.29% |
David Vrabel | 51 | 13.82% | 1 | 4.76% |
Stefano Stabellini | 43 | 11.65% | 4 | 19.05% |
Ian Campbell | 33 | 8.94% | 3 | 14.29% |
Mike Travis | 12 | 3.25% | 1 | 4.76% |
Isaku Yamahata | 7 | 1.90% | 1 | 4.76% |
Ouyang Zhaowei (Charles) | 5 | 1.36% | 1 | 4.76% |
Thomas Gleixner | 4 | 1.08% | 2 | 9.52% |
Andrew Morton | 3 | 0.81% | 1 | 4.76% |
Ingo Molnar | 3 | 0.81% | 1 | 4.76% |
Konrad Rzeszutek Wilk | 1 | 0.27% | 1 | 4.76% |
Total | 369 | 100.00% | 21 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.