From: Ian Campbell Subject: Re: [PATCH V1 23/29] xen/arm: Add new platform specific callback device_is_blacklist Date: Mon, 9 Sep 2013 12:52:47 +0100 Message-ID: <1378727567.19967.81.camel@kazak.uk.xensource.com> References: <1377701263-3319-1-git-send-email-julien.grall@linaro.org> <1377701263-3319-24-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1377701263-3319-24-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: stefano.stabellini@eu.citrix.com, andre.przywara@linaro.org, patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-08-28 at 15:47 +0100, Julien Grall wrote: > Each platform code will list the device that must not pass-through to a guest. > Theses devices are used for: power management, timer,... > > When theses devices are given to DOM0, it can controls the hardware and then > break the whole platform. > > This callback is enough until we will start to care about power performance. > For this purpose, we may need to extend this interface to implement per-device > MMIO filtering to allow dom0 to continue to control devices which it owns which > happen to share e.g. a clock controller with Xen. > > Signed-off-by: Julien Grall > > --- > Changes in v2: > - Update commit message > --- > xen/arch/arm/domain_build.c | 2 +- > xen/arch/arm/platform.c | 10 ++++++++++ > xen/include/asm-arm/platform.h | 7 +++++++ > 3 files changed, 18 insertions(+), 1 deletion(-) > > diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c > index 3afe48f..1ac261e 100644 > --- a/xen/arch/arm/domain_build.c > +++ b/xen/arch/arm/domain_build.c > @@ -663,7 +663,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo, > DPRINT("handle %s\n", path); > > /* Skip theses nodes and the sub-nodes */ > - if ( dt_match_node(skip_matches, np ) ) > + if ( dt_match_node(skip_matches, np ) || platform_device_is_blacklist(np) ) Should be "blacklisted". Other than that: Acked-by: Ian Campbell