Re: [PATCH v6 1/2] x86/msr: Add write msr notrace

2016-10-30 Thread Wanpeng Li
2016-10-31 7:46 GMT+08:00 Borislav Petkov : > On Mon, Oct 31, 2016 at 07:30:33AM +0800, Wanpeng Li wrote: >> Other functions like native_write_msr() and native_write_msr_safe() >> etc are also not aligned, so your suggestion maybe result in >> inconsistent. > > So align them too, while you're at it

Re: [PATCH v6 1/2] x86/msr: Add write msr notrace

2016-10-30 Thread Borislav Petkov
On Mon, Oct 31, 2016 at 07:30:33AM +0800, Wanpeng Li wrote: > Other functions like native_write_msr() and native_write_msr_safe() > etc are also not aligned, so your suggestion maybe result in > inconsistent. So align them too, while you're at it. > > And because we know what those are, you can c

Re: [PATCH v6 1/2] x86/msr: Add write msr notrace

2016-10-30 Thread Wanpeng Li
2016-10-29 0:47 GMT+08:00 Borislav Petkov : [...] >> >> /* Can be uninlined because referenced by paravirt */ >> -notrace static inline void native_write_msr(unsigned int msr, >> +notrace static inline void __native_write_msr_notrace(unsigned int msr, >> u

Re: [PATCH v6 1/2] x86/msr: Add write msr notrace

2016-10-28 Thread Borislav Petkov
On Thu, Oct 27, 2016 at 12:38:41PM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > Add write msr notrace, it will be used by later patch. > > Suggested-by: Peter Zijlstra > Suggested-by: Paolo Bonzini > Cc: Ingo Molnar > Cc: Mike Galbraith > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: P

[PATCH v6 1/2] x86/msr: Add write msr notrace

2016-10-26 Thread Wanpeng Li
From: Wanpeng Li Add write msr notrace, it will be used by later patch. Suggested-by: Peter Zijlstra Suggested-by: Paolo Bonzini Cc: Ingo Molnar Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Paolo Bonzini Cc: Borislav Petkov Signed-off-by: Wanpeng Li --- arch/x86/includ