Skip to content

Commit e458890

Browse files
committed
Merge tag 'rolling-lts/wsl/6.6.36.6' into linux-msft-wsl-6.6.y
Linux rolling-lts/wsl/6.6.36.6 Signed-off-by: Mitchell Levy <[email protected]>
2 parents 149cbd1 + 6cb123f commit e458890

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

MSFT-Merge/log

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ feature/arm64-hyperv-synthetic-clocks-timers/6.6 b63263237d73f1e1d76e2c2049e31
66
feature/dxgkrnl/6.6 423e5044c57566f8267bbb20cf7cf57d1aefb040
77
feature/hvlite_virtio_pmem/6.6 7d955beb0207d880fa1862b1ace8487057b5aa6c
88
fix/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
1011
product/wsl/security/6.6 c9cb753bbd093f0599408e24292aba20eed103f2

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VERSION = 6
33
PATCHLEVEL = 6
44
SUBLEVEL = 36
5-
EXTRAVERSION = .3
5+
EXTRAVERSION = .6
66
NAME = Hurr durr I'ma ninja sloth
77

88
# *DOCUMENTATION*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Instructions for building an x86_64 WSL2 kernel with an Ubuntu distribution are
2828
as follows:
2929

3030
1. 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

3333
2. Modify WSL2 kernel configs (optional):
3434
`$ make menuconfig KCONFIG_CONFIG=Microsoft/config-wsl`

arch/x86/include/asm/fpu/types.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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 */

arch/x86/kernel/fpu/xstate.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/

arch/x86/kernel/fpu/xstate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ static inline u64 xfeatures_mask_supervisor(void)
6464
static 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 */

0 commit comments

Comments
 (0)