From owner-freebsd-current@FreeBSD.ORG Mon Jan 6 11:33:37 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9A7B8E4 for ; Mon, 6 Jan 2014 11:33:37 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1995F169D for ; Mon, 6 Jan 2014 11:33:36 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id c11so9649439lbj.37 for ; Mon, 06 Jan 2014 03:33:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=BHCU8QxWQB+7yKHp3kswSx7pa3p/IlbprJea1h0acGc=; b=BSVI0yhfGAi6wYR/B8AYOmZnb8NJEkVDt79YSvJBkyIZqTIF72lardIepeRJES+EJz rGUT7bPtkqJx8rn/vx3e4OIDe/6WXJneOgTbQbSxYqvgoGwbgOVesd0T7+5dh7LIRsiI PQRFZcVGWjs5Dl5nPJOp1TCvjYzehLMqCMqww6j4bRPuLpoI1eDyiA96XabTBlb4F5+Z uZcdqLDoPvQrSsTe9liirI8Tn9wrhwUkkXEYhuAJXYjfRXsGFSJMiIXmiPr5wpWFkAgD nei8l/lzkdSKgGdBT8gnxRqBbXkQVLI5i10WZ7+gfq6A85uIzB4cDY9YsUGKVUwwmv4q sMoQ== X-Gm-Message-State: ALoCoQmMhEZfzKcorvl34ASDupmYzZBmFwyETR+PDYUENibpBwf2WA2cUg5NXPzhF80zPGrZ6PdY X-Received: by 10.112.13.169 with SMTP id i9mr197869lbc.73.1389008009013; Mon, 06 Jan 2014 03:33:29 -0800 (PST) Received: from [192.168.42.157] ([195.69.14.50]) by mx.google.com with ESMTPSA id rb4sm42585872lbb.1.2014.01.06.03.33.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Jan 2014 03:33:27 -0800 (PST) Message-ID: <52CA9481.4090703@linaro.org> Date: Mon, 06 Jan 2014 11:33:21 +0000 From: Julien Grall User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= , freebsd-xen@freebsd.org, freebsd-current@freebsd.org, xen-devel@lists.xen.org, gibbs@freebsd.org, jhb@freebsd.org, kib@freebsd.org, julien.grall@citrix.com Subject: Re: [Xen-devel] [PATCH v9 15/19] xen: create a Xen nexus to use in PV/PVH References: <1388677433-49525-1-git-send-email-roger.pau@citrix.com> <1388677433-49525-16-git-send-email-roger.pau@citrix.com> <52C9D4CA.6070403@linaro.org> <52CA78DE.9060502@citrix.com> In-Reply-To: <52CA78DE.9060502@citrix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 06 Jan 2014 12:32:52 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jan 2014 11:33:37 -0000 On 01/06/2014 09:35 AM, Roger Pau Monné wrote: > On 05/01/14 22:55, Julien Grall wrote: >> >> >> On 01/02/2014 03:43 PM, Roger Pau Monne wrote: >>> Introduce a Xen specific nexus that is going to be in charge for >>> attaching Xen specific devices. >> >> Now that we have a xenpv bus, do we really need a specific nexus for Xen? >> We should be able to use the identify callback of xenpv to create the bus. >> >> The other part of this patch can be merged in the patch #14 "Introduce >> xenpv bus and a dummy pvcpu device". > > On x86 at least we need the Xen specific nexus, or we will fall back to > use the legacy nexus which is not what we really want. > Oh right, in any case can we use the identify callback of xenpv to add the bus? With this solution xenpv can add itself no matter FreeBSD use the generic nexus or the nexus Xen, of course with a check if we are running on Xen :). For instance, on ARM side I don't plan to have a specific Xen nexus. Cheers, -- Julien Grall