From: "Jan Beulich" <jbeulich@novell.com>
To: Kevin Tian <kevin.tian@intel.com>
Cc: xen-devel@lists.xensource.com,
Keir Fraser <keir.fraser@eu.citrix.com>,
Gang Wei <gang.wei@intel.com>
Subject: RE: [PATCH 1/9] Add cpu idle pwr mgmt to xen
Date: Wed, 30 Apr 2008 10:35:23 +0100 [thread overview]
Message-ID: <4818597B.76E4.0078.0@novell.com> (raw)
In-Reply-To: <D470B4E54465E3469E2ABBC5AFAC390F024D9217@pdsmsx412.ccr.corp.intel.com>
>>> "Tian, Kevin" <kevin.tian@intel.com> 30.04.08 11:12 >>>
>One thing kicking me just now is, whether Linux address check
>style can be used here by temporarily increasing address limit
>in compat logic to bypass relative check in common code? I
>didn't see obvious benefit to reserve a guest virtual addr range
>and let each component to manage internal allocation themselves.
>Linux style seems simpler and compat logic can just use xmalloc
>to create native copy to reduce xlat complexity.
I intentionally did not go that route when I first wrote these translation
routines. For one, you wouldn't be able to partly copy things (as I
suggested as an improvement here), since the validity checks would
apply to all or nothing during an individual hypercall (and a bad 64-bit
field representing a pointer might then slip through). Secondly, the
static pre-allocation used currently also avoids spurious failures of
hypercalls (there may be deterministic failures if the combined set
of indirect hypercall arguments exceeds the pre-allocation size.
Jan
next prev parent reply other threads:[~2008-04-30 9:35 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
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 [this message]
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=4818597B.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=gang.wei@intel.com \
--cc=keir.fraser@eu.citrix.com \
--cc=kevin.tian@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.