Skip to content

Commit

Permalink
Merge tag 'rolling-lts/wsl/6.6.36.6' into linux-msft-wsl-6.6.y
Browse files Browse the repository at this point in the history
Linux rolling-lts/wsl/6.6.36.6

Signed-off-by: Mitchell Levy <[email protected]>
  • Loading branch information
chessturo committed Sep 3, 2024
2 parents 149cbd1 + 6cb123f commit e458890
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion MSFT-Merge/log
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ feature/arm64-hyperv-synthetic-clocks-timers/6.6 b63263237d73f1e1d76e2c2049e31
feature/dxgkrnl/6.6 423e5044c57566f8267bbb20cf7cf57d1aefb040
feature/hvlite_virtio_pmem/6.6 7d955beb0207d880fa1862b1ace8487057b5aa6c
fix/hv_utils_clock/6.6 a34090e9209d3d3db3d97aa567bb323ebc7620a4
product/wsl/readme/6.6 e8bb7797885b28a31b42891d1002ddc17ec926ef
fix/xsaves-lbr/v6.6 ea0740024a0f0c7c6b8844492e3fa9eeb1289a83
product/wsl/readme/6.6 9e964c9ff297f4c6eca78a5bb67fccc56384e100
product/wsl/security/6.6 c9cb753bbd093f0599408e24292aba20eed103f2
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
VERSION = 6
PATCHLEVEL = 6
SUBLEVEL = 36
EXTRAVERSION = .3
EXTRAVERSION = .6
NAME = Hurr durr I'ma ninja sloth

# *DOCUMENTATION*
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Instructions for building an x86_64 WSL2 kernel with an Ubuntu distribution are
as follows:

1. Install the build dependencies:
`$ sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev`
`$ sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev cpio`

2. Modify WSL2 kernel configs (optional):
`$ make menuconfig KCONFIG_CONFIG=Microsoft/config-wsl`
Expand Down
7 changes: 7 additions & 0 deletions arch/x86/include/asm/fpu/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,13 @@ struct fpu_state_config {
* even without XSAVE support, i.e. legacy features FP + SSE
*/
u64 legacy_features;
/*
* @independent_features:
*
* Features that are supported by XSAVES, but not managed as part of
* the FPU core, such as LBR
*/
u64 independent_features;
};

/* FPU state configuration information */
Expand Down
3 changes: 3 additions & 0 deletions arch/x86/kernel/fpu/xstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,9 @@ void __init fpu__init_system_xstate(unsigned int legacy_size)
goto out_disable;
}

fpu_kernel_cfg.independent_features = fpu_kernel_cfg.max_features &
XFEATURE_MASK_INDEPENDENT;

/*
* Clear XSAVE features that are disabled in the normal CPUID.
*/
Expand Down
4 changes: 2 additions & 2 deletions arch/x86/kernel/fpu/xstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ static inline u64 xfeatures_mask_supervisor(void)
static inline u64 xfeatures_mask_independent(void)
{
if (!cpu_feature_enabled(X86_FEATURE_ARCH_LBR))
return XFEATURE_MASK_INDEPENDENT & ~XFEATURE_MASK_LBR;
return fpu_kernel_cfg.independent_features & ~XFEATURE_MASK_LBR;

return XFEATURE_MASK_INDEPENDENT;
return fpu_kernel_cfg.independent_features;
}

/* XSAVE/XRSTOR wrapper functions */
Expand Down

0 comments on commit e458890

Please sign in to comment.