Skip to content

Commit bb548be

Browse files
committed
Merge tag 'x86-build-2020-06-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 build updates from Ingo Molnar: "Misc dependency fixes, plus a documentation update about memory protection keys support" * tag 'x86-build-2020-06-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/Kconfig: Update config and kernel doc for MPK feature on AMD x86/boot: Discard .discard.unreachable for arch/x86/boot/compressed/vmlinux x86/boot/build: Add phony targets in arch/x86/boot/Makefile to PHONY x86/boot/build: Make 'make bzlilo' not depend on vmlinux or $(obj)/bzImage x86/boot/build: Add cpustr.h to targets and remove clean-files
2 parents ae1a411 + 38f3e77 commit bb548be

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

Documentation/core-api/protection-keys.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ Memory Protection Keys
55
======================
66

77
Memory Protection Keys for Userspace (PKU aka PKEYs) is a feature
8-
which is found on Intel's Skylake "Scalable Processor" Server CPUs.
9-
It will be avalable in future non-server parts.
8+
which is found on Intel's Skylake (and later) "Scalable Processor"
9+
Server CPUs. It will be available in future non-server Intel parts
10+
and future AMD processors.
1011

1112
For anyone wishing to test or use this feature, it is available in
1213
Amazon's EC2 C5 instances and is known to work there using an Ubuntu

arch/x86/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,10 +1888,10 @@ config X86_UMIP
18881888
results are dummy.
18891889

18901890
config X86_INTEL_MEMORY_PROTECTION_KEYS
1891-
prompt "Intel Memory Protection Keys"
1891+
prompt "Memory Protection Keys"
18921892
def_bool y
18931893
# Note: only available in 64-bit mode
1894-
depends on CPU_SUP_INTEL && X86_64
1894+
depends on X86_64 && (CPU_SUP_INTEL || CPU_SUP_AMD)
18951895
select ARCH_USES_HIGH_VMA_FLAGS
18961896
select ARCH_HAS_PKEYS
18971897
---help---

arch/x86/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ drivers-$(CONFIG_FB) += arch/x86/video/
246246

247247
boot := arch/x86/boot
248248

249-
BOOT_TARGETS = bzlilo bzdisk fdimage fdimage144 fdimage288 isoimage
249+
BOOT_TARGETS = bzdisk fdimage fdimage144 fdimage288 isoimage
250250

251251
PHONY += bzImage $(BOOT_TARGETS)
252252

@@ -267,8 +267,8 @@ endif
267267
$(BOOT_TARGETS): vmlinux
268268
$(Q)$(MAKE) $(build)=$(boot) $@
269269

270-
PHONY += install
271-
install:
270+
PHONY += install bzlilo
271+
install bzlilo:
272272
$(Q)$(MAKE) $(build)=$(boot) $@
273273

274274
PHONY += vdso_install

arch/x86/boot/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ $(obj)/cpu.o: $(obj)/cpustr.h
5757

5858
quiet_cmd_cpustr = CPUSTR $@
5959
cmd_cpustr = $(obj)/mkcpustr > $@
60-
targets += cpustr.h
6160
$(obj)/cpustr.h: $(obj)/mkcpustr FORCE
6261
$(call if_changed,cpustr)
6362
endif
64-
clean-files += cpustr.h
63+
targets += cpustr.h
6564

6665
# ---------------------------------------------------------------------------
6766

@@ -129,6 +128,8 @@ quiet_cmd_genimage = GENIMAGE $3
129128
cmd_genimage = sh $(srctree)/$(src)/genimage.sh $2 $3 $(obj)/bzImage \
130129
$(obj)/mtools.conf '$(image_cmdline)' $(FDINITRD)
131130

131+
PHONY += bzdisk fdimage fdimage144 fdimage288 isoimage bzlilo install
132+
132133
# This requires write access to /dev/fd0
133134
bzdisk: $(obj)/bzImage $(obj)/mtools.conf
134135
$(call cmd,genimage,bzdisk,/dev/fd0)
@@ -146,7 +147,7 @@ isoimage: $(obj)/bzImage
146147
$(call cmd,genimage,isoimage,$(obj)/image.iso)
147148
@$(kecho) 'Kernel: $(obj)/image.iso is ready'
148149

149-
bzlilo: $(obj)/bzImage
150+
bzlilo:
150151
if [ -f $(INSTALL_PATH)/vmlinuz ]; then mv $(INSTALL_PATH)/vmlinuz $(INSTALL_PATH)/vmlinuz.old; fi
151152
if [ -f $(INSTALL_PATH)/System.map ]; then mv $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi
152153
cat $(obj)/bzImage > $(INSTALL_PATH)/vmlinuz

arch/x86/boot/compressed/vmlinux.lds.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,6 @@ SECTIONS
7474
#endif
7575
. = ALIGN(PAGE_SIZE); /* keep ZO size page aligned */
7676
_end = .;
77+
78+
DISCARDS
7779
}

0 commit comments

Comments
 (0)