Re: [PATCH] x86, msr: fix rdmsrl_safe_on_cpu()

2018-03-28 Thread Eric Dumazet
On 03/28/2018 03:08 AM, Borislav Petkov wrote: > I guess now that the rdmsr* side does this, you probably should convert > the wrmsr* side as well. Yes indeed, thanks for the reminder.

Re: [PATCH] x86, msr: fix rdmsrl_safe_on_cpu()

2018-03-28 Thread Eric Dumazet
On 03/28/2018 03:08 AM, Borislav Petkov wrote: > I guess now that the rdmsr* side does this, you probably should convert > the wrmsr* side as well. Yes indeed, thanks for the reminder.

Re: [PATCH] x86, msr: fix rdmsrl_safe_on_cpu()

2018-03-28 Thread Borislav Petkov
On Tue, Mar 27, 2018 at 08:22:33PM -0700, Eric Dumazet wrote: > When changing rdmsr_safe_on_cpu() to schedule, I missed that > __rdmsr_safe_on_cpu() was also used by rdmsrl_safe_on_cpu() > > Lets make rdmsrl_safe_on_cpu() a wrapper instead of copy/pasting > the code I added for the completion

Re: [PATCH] x86, msr: fix rdmsrl_safe_on_cpu()

2018-03-28 Thread Borislav Petkov
On Tue, Mar 27, 2018 at 08:22:33PM -0700, Eric Dumazet wrote: > When changing rdmsr_safe_on_cpu() to schedule, I missed that > __rdmsr_safe_on_cpu() was also used by rdmsrl_safe_on_cpu() > > Lets make rdmsrl_safe_on_cpu() a wrapper instead of copy/pasting > the code I added for the completion

[PATCH] x86, msr: fix rdmsrl_safe_on_cpu()

2018-03-27 Thread Eric Dumazet
When changing rdmsr_safe_on_cpu() to schedule, I missed that __rdmsr_safe_on_cpu() was also used by rdmsrl_safe_on_cpu() Lets make rdmsrl_safe_on_cpu() a wrapper instead of copy/pasting the code I added for the completion handling. Fixes: 07cde313b2d2 ("x86/msr: Allow rdmsr_safe_on_cpu() to

[PATCH] x86, msr: fix rdmsrl_safe_on_cpu()

2018-03-27 Thread Eric Dumazet
When changing rdmsr_safe_on_cpu() to schedule, I missed that __rdmsr_safe_on_cpu() was also used by rdmsrl_safe_on_cpu() Lets make rdmsrl_safe_on_cpu() a wrapper instead of copy/pasting the code I added for the completion handling. Fixes: 07cde313b2d2 ("x86/msr: Allow rdmsr_safe_on_cpu() to