Skip to content

Commit 6bd3357

Browse files
author
Ingo Molnar
committed
Merge branches 'x86/hyperv', 'x86/kdump' and 'x86/misc' into x86/urgent, to pick up single-commit branches
Signed-off-by: Ingo Molnar <[email protected]>
4 parents 32ada3b + 538f127 + 8757dc9 + 8b7e20a commit 6bd3357

File tree

8 files changed

+46
-34
lines changed

8 files changed

+46
-34
lines changed

arch/x86/include/asm/hyperv-tlfs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,8 @@ union hv_synic_sint {
809809
u64 reserved1:8;
810810
u64 masked:1;
811811
u64 auto_eoi:1;
812-
u64 reserved2:46;
812+
u64 polling:1;
813+
u64 reserved2:45;
813814
} __packed;
814815
};
815816

arch/x86/kernel/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ obj-$(CONFIG_FUNCTION_TRACER) += ftrace_$(BITS).o
9494
obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
9595
obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o
9696
obj-$(CONFIG_X86_TSC) += trace_clock.o
97+
obj-$(CONFIG_CRASH_CORE) += crash_core_$(BITS).o
9798
obj-$(CONFIG_KEXEC_CORE) += machine_kexec_$(BITS).o
9899
obj-$(CONFIG_KEXEC_CORE) += relocate_kernel_$(BITS).o crash.o
99100
obj-$(CONFIG_KEXEC_FILE) += kexec-bzimage64.o

arch/x86/kernel/crash_core_32.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
3+
#include <linux/crash_core.h>
4+
5+
#include <asm/pgtable.h>
6+
#include <asm/setup.h>
7+
8+
void arch_crash_save_vmcoreinfo(void)
9+
{
10+
#ifdef CONFIG_NUMA
11+
VMCOREINFO_SYMBOL(node_data);
12+
VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
13+
#endif
14+
#ifdef CONFIG_X86_PAE
15+
VMCOREINFO_CONFIG(X86_PAE);
16+
#endif
17+
}

arch/x86/kernel/crash_core_64.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
3+
#include <linux/crash_core.h>
4+
5+
#include <asm/pgtable.h>
6+
#include <asm/setup.h>
7+
8+
void arch_crash_save_vmcoreinfo(void)
9+
{
10+
u64 sme_mask = sme_me_mask;
11+
12+
VMCOREINFO_NUMBER(phys_base);
13+
VMCOREINFO_SYMBOL(init_top_pgt);
14+
vmcoreinfo_append_str("NUMBER(pgtable_l5_enabled)=%d\n",
15+
pgtable_l5_enabled());
16+
17+
#ifdef CONFIG_NUMA
18+
VMCOREINFO_SYMBOL(node_data);
19+
VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
20+
#endif
21+
vmcoreinfo_append_str("KERNELOFFSET=%lx\n", kaslr_offset());
22+
VMCOREINFO_NUMBER(KERNEL_IMAGE_SIZE);
23+
VMCOREINFO_NUMBER(sme_mask);
24+
}

arch/x86/kernel/machine_kexec_32.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,3 @@ void machine_kexec(struct kimage *image)
250250

251251
__ftrace_enabled_restore(save_ftrace_enabled);
252252
}
253-
254-
void arch_crash_save_vmcoreinfo(void)
255-
{
256-
#ifdef CONFIG_NUMA
257-
VMCOREINFO_SYMBOL(node_data);
258-
VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
259-
#endif
260-
#ifdef CONFIG_X86_PAE
261-
VMCOREINFO_CONFIG(X86_PAE);
262-
#endif
263-
}
264-

arch/x86/kernel/machine_kexec_64.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -398,25 +398,6 @@ void machine_kexec(struct kimage *image)
398398
__ftrace_enabled_restore(save_ftrace_enabled);
399399
}
400400

401-
void arch_crash_save_vmcoreinfo(void)
402-
{
403-
u64 sme_mask = sme_me_mask;
404-
405-
VMCOREINFO_NUMBER(phys_base);
406-
VMCOREINFO_SYMBOL(init_top_pgt);
407-
vmcoreinfo_append_str("NUMBER(pgtable_l5_enabled)=%d\n",
408-
pgtable_l5_enabled());
409-
410-
#ifdef CONFIG_NUMA
411-
VMCOREINFO_SYMBOL(node_data);
412-
VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
413-
#endif
414-
vmcoreinfo_append_str("KERNELOFFSET=%lx\n",
415-
kaslr_offset());
416-
VMCOREINFO_NUMBER(KERNEL_IMAGE_SIZE);
417-
VMCOREINFO_NUMBER(sme_mask);
418-
}
419-
420401
/* arch-dependent functionality related to kexec file-based syscall */
421402

422403
#ifdef CONFIG_KEXEC_FILE

arch/x86/lib/x86-opcode-map.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ EndTable
929929

930930
GrpTable: Grp3_2
931931
0: TEST Ev,Iz
932-
1:
932+
1: TEST Ev,Iz
933933
2: NOT Ev
934934
3: NEG Ev
935935
4: MUL rAX,Ev

tools/arch/x86/lib/x86-opcode-map.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ EndTable
929929

930930
GrpTable: Grp3_2
931931
0: TEST Ev,Iz
932-
1:
932+
1: TEST Ev,Iz
933933
2: NOT Ev
934934
3: NEG Ev
935935
4: MUL rAX,Ev

0 commit comments

Comments
 (0)