Re: [PATCH 3/3] pvclock: Add a new wrapper function to only get variable flags

2016-05-28 Thread Minfei Huang
On 05/27/16 at 06:06P, Paolo Bonzini wrote: > > > On 27/05/2016 17:40, Andy Lutomirski wrote: > > On Thu, May 26, 2016 at 11:17 PM, Minfei Huang wrote: > >> There is a generic function __pvclock_read_cycles to be used to get both > >> flags and cycles. For function pvclock_read_flags, it's usele

Re: [PATCH 3/3] pvclock: Add a new wrapper function to only get variable flags

2016-05-27 Thread Paolo Bonzini
On 27/05/2016 17:40, Andy Lutomirski wrote: > On Thu, May 26, 2016 at 11:17 PM, Minfei Huang wrote: >> There is a generic function __pvclock_read_cycles to be used to get both >> flags and cycles. For function pvclock_read_flags, it's useless to get >> cycles value. To make this function be more

Re: [PATCH 3/3] pvclock: Add a new wrapper function to only get variable flags

2016-05-27 Thread Andy Lutomirski
On Thu, May 26, 2016 at 11:17 PM, Minfei Huang wrote: > There is a generic function __pvclock_read_cycles to be used to get both > flags and cycles. For function pvclock_read_flags, it's useless to get > cycles value. To make this function be more effective, add a new wrapper > function to only ge

[PATCH 3/3] pvclock: Add a new wrapper function to only get variable flags

2016-05-26 Thread Minfei Huang
There is a generic function __pvclock_read_cycles to be used to get both flags and cycles. For function pvclock_read_flags, it's useless to get cycles value. To make this function be more effective, add a new wrapper function to only get variable flags. Signed-off-by: Minfei Huang --- arch/x86/i