File tree Expand file tree Collapse file tree 6 files changed +16
-5
lines changed Expand file tree Collapse file tree 6 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ feature/arm64-hyperv-synthetic-clocks-timers/6.6 b63263237d73f1e1d76e2c2049e31
66feature/dxgkrnl/6.6 423e5044c57566f8267bbb20cf7cf57d1aefb040
77feature/hvlite_virtio_pmem/6.6 7d955beb0207d880fa1862b1ace8487057b5aa6c
88fix/hv_utils_clock/6.6 a34090e9209d3d3db3d97aa567bb323ebc7620a4
9- product/wsl/readme/6.6 e8bb7797885b28a31b42891d1002ddc17ec926ef
9+ fix/xsaves-lbr/v6.6 ea0740024a0f0c7c6b8844492e3fa9eeb1289a83
10+ product/wsl/readme/6.6 9e964c9ff297f4c6eca78a5bb67fccc56384e100
1011product/wsl/security/6.6 c9cb753bbd093f0599408e24292aba20eed103f2
Original file line number Diff line number Diff line change 22VERSION = 6
33PATCHLEVEL = 6
44SUBLEVEL = 36
5- EXTRAVERSION = .3
5+ EXTRAVERSION = .6
66NAME = Hurr durr I'ma ninja sloth
77
88# *DOCUMENTATION*
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Instructions for building an x86_64 WSL2 kernel with an Ubuntu distribution are
2828as follows:
2929
30301 . Install the build dependencies:
31- ` $ sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev `
31+ ` $ sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev cpio `
3232
33332 . Modify WSL2 kernel configs (optional):
3434 ` $ make menuconfig KCONFIG_CONFIG=Microsoft/config-wsl `
Original file line number Diff line number Diff line change @@ -589,6 +589,13 @@ struct fpu_state_config {
589589 * even without XSAVE support, i.e. legacy features FP + SSE
590590 */
591591 u64 legacy_features ;
592+ /*
593+ * @independent_features:
594+ *
595+ * Features that are supported by XSAVES, but not managed as part of
596+ * the FPU core, such as LBR
597+ */
598+ u64 independent_features ;
592599};
593600
594601/* FPU state configuration information */
Original file line number Diff line number Diff line change @@ -788,6 +788,9 @@ void __init fpu__init_system_xstate(unsigned int legacy_size)
788788 goto out_disable ;
789789 }
790790
791+ fpu_kernel_cfg .independent_features = fpu_kernel_cfg .max_features &
792+ XFEATURE_MASK_INDEPENDENT ;
793+
791794 /*
792795 * Clear XSAVE features that are disabled in the normal CPUID.
793796 */
Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ static inline u64 xfeatures_mask_supervisor(void)
6464static inline u64 xfeatures_mask_independent (void )
6565{
6666 if (!cpu_feature_enabled (X86_FEATURE_ARCH_LBR ))
67- return XFEATURE_MASK_INDEPENDENT & ~XFEATURE_MASK_LBR ;
67+ return fpu_kernel_cfg . independent_features & ~XFEATURE_MASK_LBR ;
6868
69- return XFEATURE_MASK_INDEPENDENT ;
69+ return fpu_kernel_cfg . independent_features ;
7070}
7171
7272/* XSAVE/XRSTOR wrapper functions */
You can’t perform that action at this time.
0 commit comments