RE: [PATCH 1/2] x86/vmx: Calculate model-specific LBRs once at start of day

2023-01-11 Thread Tian, Kevin
> From: Andrew Cooper > Sent: Monday, January 9, 2023 8:08 PM > > There is no point repeating this calculation at runtime, especially as it is > in the fallback path of the WRSMR/RDMSR handlers. > > Move the infrastructure higher in vmx.c to avoid forward declarations, > renaming

Re: [PATCH 1/2] x86/vmx: Calculate model-specific LBRs once at start of day

2023-01-10 Thread Andrew Cooper
On 10/01/2023 4:26 pm, Jan Beulich wrote: > On 09.01.2023 13:08, Andrew Cooper wrote: >> There is no point repeating this calculation at runtime, especially as it is >> in the fallback path of the WRSMR/RDMSR handlers. >> >> Move the infrastructure higher in vmx.c to avoid forward declarations, >>

Re: [PATCH 1/2] x86/vmx: Calculate model-specific LBRs once at start of day

2023-01-10 Thread Jan Beulich
On 09.01.2023 13:08, Andrew Cooper wrote: > There is no point repeating this calculation at runtime, especially as it is > in the fallback path of the WRSMR/RDMSR handlers. > > Move the infrastructure higher in vmx.c to avoid forward declarations, > renaming last_branch_msr_get() to

[PATCH 1/2] x86/vmx: Calculate model-specific LBRs once at start of day

2023-01-09 Thread Andrew Cooper
There is no point repeating this calculation at runtime, especially as it is in the fallback path of the WRSMR/RDMSR handlers. Move the infrastructure higher in vmx.c to avoid forward declarations, renaming last_branch_msr_get() to get_model_specific_lbr() to highlight that these are