[PATCH 2/5] x86/ibrs: Add new helper macros to save/restore MSR_IA32_SPEC_CTRL

2018-01-11 Thread Ashok Raj
Add some helper macros to save/restore MSR_IA32_SPEC_CTRL. Although we could use the spec_ctrl_unprotected_begin/end macros they seem be bit unreadable for some uses. spec_ctrl_get - read MSR_IA32_SPEC_CTRL to save spec_ctrl_set - write value restore MSR_IA32_SPEC_CTRL spec_ctrl_restriction_off

[PATCH 2/5] x86/ibrs: Add new helper macros to save/restore MSR_IA32_SPEC_CTRL

2018-01-11 Thread Ashok Raj
Add some helper macros to save/restore MSR_IA32_SPEC_CTRL. Although we could use the spec_ctrl_unprotected_begin/end macros they seem be bit unreadable for some uses. spec_ctrl_get - read MSR_IA32_SPEC_CTRL to save spec_ctrl_set - write value restore MSR_IA32_SPEC_CTRL spec_ctrl_restriction_off