Revision 18bc7bd523e0fc5be8d76bf84bde733a97a8c375 authored by Andy Lutomirski on 10 August 2016, 09:29:14 UTC, committed by Ingo Molnar on 11 August 2016, 09:15:00 UTC
The initialization process for trampoline_cr4_features and
mmu_cr4_features was confusing.  The intent is for mmu_cr4_features
and *trampoline_cr4_features to stay in sync, but
trampoline_cr4_features is NULL until setup_real_mode() runs.  The
old code synchronized *trampoline_cr4_features *twice*, once in
setup_real_mode() and once in setup_arch().  It also initialized
mmu_cr4_features in setup_real_mode(), which causes the actual value
of mmu_cr4_features to potentially depend on when setup_real_mode()
is called.

With this patch, mmu_cr4_features is initialized directly in
setup_arch(), and *trampoline_cr4_features is synchronized to
mmu_cr4_features when the trampoline is set up.

After this patch, it should be safe to defer setup_real_mode().

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mario Limonciello <mario_limonciello@dell.com>
Cc: Matt Fleming <mfleming@suse.de>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/d48a263f9912389b957dd495a7127b009259ffe0.1470821230.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 007b756
History
File Mode Size
bridge
i2c
ttm
ati_pcigart.h -rw-r--r-- 692 bytes
drmP.h -rw-r--r-- 32.3 KB
drm_agpsupport.h -rw-r--r-- 3.8 KB
drm_atomic.h -rw-r--r-- 8.3 KB
drm_atomic_helper.h -rw-r--r-- 10.2 KB
drm_auth.h -rw-r--r-- 2.2 KB
drm_cache.h -rw-r--r-- 1.7 KB
drm_core.h -rw-r--r-- 1.4 KB
drm_crtc.h -rw-r--r-- 107.6 KB
drm_crtc_helper.h -rw-r--r-- 3.4 KB
drm_displayid.h -rw-r--r-- 2.8 KB
drm_dp_aux_dev.h -rw-r--r-- 1.8 KB
drm_dp_dual_mode_helper.h -rw-r--r-- 3.5 KB
drm_dp_helper.h -rw-r--r-- 29.1 KB
drm_dp_mst_helper.h -rw-r--r-- 15.9 KB
drm_edid.h -rw-r--r-- 12.8 KB
drm_encoder_slave.h -rw-r--r-- 6.4 KB
drm_fb_cma_helper.h -rw-r--r-- 1.8 KB
drm_fb_helper.h -rw-r--r-- 13.7 KB
drm_fixed.h -rw-r--r-- 4.7 KB
drm_flip_work.h -rw-r--r-- 3.0 KB
drm_fourcc.h -rw-r--r-- 1.8 KB
drm_gem.h -rw-r--r-- 7.9 KB
drm_gem_cma_helper.h -rw-r--r-- 2.2 KB
drm_global.h -rw-r--r-- 2.0 KB
drm_hashtab.h -rw-r--r-- 3.1 KB
drm_irq.h -rw-r--r-- 6.6 KB
drm_legacy.h -rw-r--r-- 6.8 KB
drm_mem_util.h -rw-r--r-- 2.4 KB
drm_mipi_dsi.h -rw-r--r-- 9.9 KB
drm_mm.h -rw-r--r-- 9.9 KB
drm_modes.h -rw-r--r-- 16.7 KB
drm_modeset_helper_vtables.h -rw-r--r-- 37.7 KB
drm_modeset_lock.h -rw-r--r-- 4.3 KB
drm_of.h -rw-r--r-- 1.6 KB
drm_os_linux.h -rw-r--r-- 2.2 KB
drm_panel.h -rw-r--r-- 6.9 KB
drm_pciids.h -rw-r--r-- 66.4 KB
drm_plane_helper.h -rw-r--r-- 3.0 KB
drm_rect.h -rw-r--r-- 5.0 KB
drm_simple_kms_helper.h -rw-r--r-- 2.9 KB
drm_sysfs.h -rw-r--r-- 300 bytes
drm_vma_manager.h -rw-r--r-- 7.7 KB
gma_drm.h -rw-r--r-- 1.0 KB
i915_component.h -rw-r--r-- 4.1 KB
i915_drm.h -rw-r--r-- 3.5 KB
i915_pciids.h -rw-r--r-- 12.5 KB
intel-gtt.h -rw-r--r-- 941 bytes

back to top