Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/hyperv: Enable build of hypervisor crashdump collection files

Enable build of the new files introduced in the earlier commits and add
call to do the setup during boot.

Signed-off-by: Mukesh Rathor <mrathor@linux.microsoft.com>
[ wei: fix build ]
Signed-off-by: Wei Liu <wei.liu@kernel.org>

authored by

Mukesh Rathor and committed by
Wei Liu
77c860d2 94212d34

+16
+6
arch/x86/hyperv/Makefile
··· 5 5 6 6 ifdef CONFIG_X86_64 7 7 obj-$(CONFIG_PARAVIRT_SPINLOCKS) += hv_spinlock.o 8 + 9 + ifdef CONFIG_MSHV_ROOT 10 + CFLAGS_REMOVE_hv_trampoline.o += -pg 11 + CFLAGS_hv_trampoline.o += -fno-stack-protector 12 + obj-$(CONFIG_CRASH_DUMP) += hv_crash.o hv_trampoline.o 13 + endif 8 14 endif
+1
arch/x86/hyperv/hv_init.c
··· 554 554 memunmap(src); 555 555 556 556 hv_remap_tsc_clocksource(); 557 + hv_root_crash_init(); 557 558 } else { 558 559 hypercall_msr.guest_physical_address = vmalloc_to_pfn(hv_hypercall_pg); 559 560 wrmsrq(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64);
+9
arch/x86/include/asm/mshyperv.h
··· 237 237 } 238 238 int hv_apicid_to_vp_index(u32 apic_id); 239 239 240 + #if IS_ENABLED(CONFIG_MSHV_ROOT) && IS_ENABLED(CONFIG_CRASH_DUMP) 241 + void hv_root_crash_init(void); 242 + void hv_crash_asm32(void); 243 + void hv_crash_asm64(void); 244 + void hv_crash_asm_end(void); 245 + #else /* CONFIG_MSHV_ROOT && CONFIG_CRASH_DUMP */ 246 + static inline void hv_root_crash_init(void) {} 247 + #endif /* CONFIG_MSHV_ROOT && CONFIG_CRASH_DUMP */ 248 + 240 249 #else /* CONFIG_HYPERV */ 241 250 static inline void hyperv_init(void) {} 242 251 static inline void hyperv_setup_mmu_ops(void) {}