All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yi Sun <yi.y.sun@linux.intel.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: wei.liu2@citrix.com, he.chen@linux.intel.com,
	andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com,
	xen-devel@lists.xenproject.org, chao.p.peng@linux.intel.com
Subject: Re: [v2 1/3] x86: refactor psr implementation in hypervisor.
Date: Tue, 11 Oct 2016 10:14:52 +0800	[thread overview]
Message-ID: <20161011021452.GC30513@yi.y.sun> (raw)
In-Reply-To: <57FB60B70200007800115F7B@prv-mh.provo.novell.com>

On 16-10-10 01:34:47, Jan Beulich wrote:
> >>> On 09.10.16 at 08:43, <yi.y.sun@linux.intel.com> wrote:
> > On 16-09-30 17:18:33, Konrad Rzeszutek Wilk wrote:
> >> On Thu, Sep 22, 2016 at 10:15:20AM +0800, Yi Sun wrote:
> >> > Current psr.c is designed for supporting L3 CAT/CDP. It has many
> >> > limitations to add new feature. Considering to support more PSR
> >> > features, we need refactor PSR implementation to make it more
> >> > flexible and fulfill the principle, open for extension but closed
> >> > for modification.
> >> > 
> >> > The core of the refactoring is to abstract the common actions and
> >> > encapsulate them into "struct feat_ops". The detailed steps to add
> >> > a new feature are described at the head of psr.c.
> >> > 
> >> > Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
> >> > 
> >> > ---
> >> > Changed since v1:
> >> >  * sysctl.c
> >> >     - Interface change for abstraction requirement.
> >> >  * psr.c
> >> >     - Function and variables names are changed to express accurately.
> >> >     - Fix code style issues.
> >> >     - Fix imprecise comments.
> >> >     - Add one callback function, get_cos_num(), to fulfill the
> >> >       abstraction requirement.
> >> >     - Divide get_old_set_new() callback functions into two functions:
> >> >       get_old_val() and set_new_val() make it more primitive.
> >> >     - Change feat_info type from an array to union.
> >> >     - Adjust some functions to replace if to switch to make them
> >> >       clearer.
> >> >     - Replace custom list management to system.
> >> >     - Use 'const' to make codes more safe.
> >> >  * psr.h
> >> >     - Change 'enum mask_type' to 'enum psr_val_type' to express
> >> >       more accurate.
> >> >     - Change parameters of psr_get_info() to fulfill abstraction
> >> >       requirement.
> >> > ---
> >> >  xen/arch/x86/domctl.c     |   36 +-
> >> >  xen/arch/x86/psr.c        | 1105 +++++++++++++++++++++++++++++++++++----------
> >> 
> >> Whoa. 1K changes. This is a dense patch.
> >> 
> > Yes, a little big because it refactors psr.c. :-)
> 
> Please nevertheless strive to break it up some, to aid reviewing. I
> have to admit that I'm on the edge of NAK-ing such a hard to review
> change to code that is of no core interest (at least as long as all of
> this remains Atom-only).
> 
Very sorry for this. I will try my best to split this big patch to
some small patches in V3.

> Also to both of you: Please limit the quoting in your replies.

Got it. Thank you for guidance!

> 
> Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

      reply	other threads:[~2016-10-11  2:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22  2:15 [v2 1/3] x86: refactor psr implementation in hypervisor Yi Sun
2016-09-30 21:18 ` Konrad Rzeszutek Wilk
2016-10-09  6:43   ` Yi Sun
2016-10-10  7:34     ` Jan Beulich
2016-10-11  2:14       ` Yi Sun [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161011021452.GC30513@yi.y.sun \
    --to=yi.y.sun@linux.intel.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=chao.p.peng@linux.intel.com \
    --cc=he.chen@linux.intel.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.