This patch is just to test ex hypercall locally. Not for merge. Signed-off-by: Isaku Yamahata <isaku.yamahata@xxxxxxxxx> --- arch/x86/hyperv/hv_apic.c | 2 ++ arch/x86/hyperv/mmu.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/hyperv/hv_apic.c b/arch/x86/hyperv/hv_apic.c index 63187ffaa4c4..8fe7a1a801fa 100644 --- a/arch/x86/hyperv/hv_apic.c +++ b/arch/x86/hyperv/hv_apic.c @@ -139,6 +139,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector) static bool __send_ipi_mask(const struct cpumask *mask, int vector) { +#if 0 int cur_cpu, vcpu; struct hv_send_ipi ipi_arg; int ret = 1; @@ -191,6 +192,7 @@ static bool __send_ipi_mask(const struct cpumask *mask, int vector) return ((ret == 0) ? true : false); do_ex_hypercall: +#endif return __send_ipi_mask_ex(mask, vector); } diff --git a/arch/x86/hyperv/mmu.c b/arch/x86/hyperv/mmu.c index e6654073a6ea..65d3aa90b54f 100644 --- a/arch/x86/hyperv/mmu.c +++ b/arch/x86/hyperv/mmu.c @@ -96,6 +96,7 @@ static void hyperv_flush_tlb_others(const struct cpumask *cpus, if (cpumask_equal(cpus, cpu_present_mask)) { flush->flags |= HV_FLUSH_ALL_PROCESSORS; } else { +#if 0 /* * From the supplied CPU set we need to figure out if we can get * away with cheaper HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE} @@ -123,8 +124,10 @@ static void hyperv_flush_tlb_others(const struct cpumask *cpus, __set_bit(vcpu, (unsigned long *) &flush->processor_mask); } +#endif } +#if 0 /* * We can flush not more than max_gvas with one hypercall. Flush the * whole address space if we were asked to do more. @@ -148,9 +151,10 @@ static void hyperv_flush_tlb_others(const struct cpumask *cpus, goto check_status; do_ex_hypercall: +#endif status = hyperv_flush_tlb_others_ex(cpus, info); -check_status: +// check_status: local_irq_restore(flags); if (!(status & HV_HYPERCALL_RESULT_MASK)) -- 2.14.1