All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Jan Beulich <jbeulich@novell.com>, Gang Wei <gang.wei@intel.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH 1/9] Add cpu idle pwr mgmt to xen
Date: Wed, 30 Apr 2008 09:54:15 +0100	[thread overview]
Message-ID: <C43DF247.20177%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <48183A3F.76E4.0078.0@novell.com>

On 30/4/08 08:22, "Jan Beulich" <jbeulich@novell.com> wrote:

>>>> "Wei, Gang" <gang.wei@intel.com> 30.04.08 05:27 >>>
>> Revising done according to Jan's comments. Resend.
> 
> Thanks. Unfortunately you now use a static (but not per-CPU) variable -
> while I understand that it is expected that the call is done just once, I
> don't think this is a good thing to do.

Why is the variable even non-local? Is it just to make the xlat_malloc*()
interfaces simpler? It's a false simplification if so, and I think you'd be
better making the variable an explicit parameter to those functions.

Also I agree with Jan regarding non-ISO C usage of loop-header variable
declarations (don't do it) and also you should check copy_from_guest*()
return values and return -EFAULT where appropriate. His comment regarding
explicit padding or use of uint32_t in your public bitfield also sounds good
to me.

 -- Keir

  reply	other threads:[~2008-04-30  8:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-25  5:07 [PATCH 1/9] Add cpu idle pwr mgmt to xen Wei, Gang
2008-04-25 13:00 ` Keir Fraser
2008-04-25 13:29   ` Wei, Gang
2008-04-26  9:55   ` Wei, Gang
2008-04-28  9:24     ` Jan Beulich
2008-04-30  3:27       ` Wei, Gang
2008-04-30  7:22         ` Jan Beulich
2008-04-30  8:54           ` Keir Fraser [this message]
2008-04-30  9:08             ` Wei, Gang
2008-04-30  9:12             ` Tian, Kevin
2008-04-30  9:18               ` Tian, Kevin
2008-04-30  9:35               ` Jan Beulich
2008-04-30  9:42                 ` Tian, Kevin
2008-04-30 10:00                   ` Keir Fraser
2008-04-30 10:25                     ` Jan Beulich
2008-04-30 12:27                       ` Keir Fraser
2008-04-30 10:25                   ` Jan Beulich
2008-05-05  6:34                     ` Tian, Kevin
2008-04-30 16:36           ` Wei, Gang
2008-05-01  0:48           ` Wei, Gang

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=C43DF247.20177%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=gang.wei@intel.com \
    --cc=jbeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /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.