From: "Jan Beulich" <jbeulich@novell.com>
To: 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 08:22:07 +0100 [thread overview]
Message-ID: <48183A3F.76E4.0078.0@novell.com> (raw)
In-Reply-To: <094BCE01AFBE9646AF220B0B3F367AAB03028932@pdsmsx413.ccr.corp.intel.com>
>>> "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.
Further, xen_processor_csd_t seems to not need translation, so you
could simply add a check for the type to xen/include/xlat.lst and copy
the handle rather than what it points to. This would reduce size
constraints on the xlat area and also simplify the code.
As another suggestion - could you use uint32_t for the bitfield
declarations, making it more obvious that the remaining bits in the
32-bit quantity are reserved? Alternatively, could you use an
explicit padding field after the flags member of struct
xen_processor_power?
Also, I think there's error checking missing on copy_from_guest*
throughout the patch. And I think I saw non-C89 constructs (loop
variables declared inside for() statements).
Jan
next prev parent reply other threads:[~2008-04-30 7:22 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 [this message]
2008-04-30 8:54 ` Keir Fraser
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=48183A3F.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=gang.wei@intel.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.