From: Julien Grall <julien.grall@linaro.org>
To: Roger Pau Monne <roger.pau@citrix.com>,
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: [PATCH v9 14/19] xen: introduce xenpv bus and a dummy pvcpu device
Date: Sun, 05 Jan 2014 21:52:50 +0000 [thread overview]
Message-ID: <52C9D432.3040409@linaro.org> (raw)
In-Reply-To: <1388677433-49525-15-git-send-email-roger.pau@citrix.com>
On 01/02/2014 03:43 PM, Roger Pau Monne wrote:
> Since Xen PVH guests doesn't have ACPI, we need to create a dummy
> bus so top level Xen devices can attach to it (instead of
> attaching directly to the nexus) and a pvcpu device that will be used
> to fill the pcpu->pc_device field.
> ---
> sys/conf/files.amd64 | 1 +
> sys/conf/files.i386 | 1 +
> sys/x86/xen/xenpv.c | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++
I think it makes more sense to have 2 files: one for xenpv bus and one
for a dummy pvcpu device. It would allow us to move xenpv bus to common
code (sys/xen or sys/dev/xen).
[..]
> +
> +static int
> +xenpv_probe(device_t dev)
> +{
> +
> + device_set_desc(dev, "Xen PV bus");
> + device_quiet(dev);
> + return (0);
As I understand, 0 means I can "handle" the current device, in this case
if a device is probing, because it doesn't have yet a driver, we will
use xenpv and end up with 2 (or even more) xenpv buses.
As we only want to probe xenpv bus once, when the bus was added
manually, returning BUS_PROBE_NO_WILDCARD would suit better.
[..]
> +static int
> +xenpvcpu_probe(device_t dev)
> +{
> +
> + device_set_desc(dev, "Xen PV CPU");
> + return (0);
Same here: BUS_PROBE_NOWILDCARD.
--
Julien Grall
next prev parent reply other threads:[~2014-01-05 21:52 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1388677433-49525-1-git-send-email-roger.pau@citrix.com>
2014-01-02 15:43 ` [PATCH v9 01/19] xen: add PV/PVH kernel entry point Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 02/19] xen: add macro to detect if running as Dom0 Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 03/19] xen: add and enable Xen console for PVH guests Roger Pau Monne
2014-01-07 21:26 ` Julien Grall
2014-01-02 15:43 ` [PATCH v9 04/19] amd64: introduce hook for custom preload metadata parsers Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 05/19] xen: rework xen timer so it can be used early in boot process Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 06/19] xen: implement an early timer for Xen PVH Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 07/19] xen: implement hook to fetch e820 memory map Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 08/19] xen: use the same hypercall mechanism for XEN and XENHVM Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 09/19] xen: add a apic_enumerator for PVH Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 10/19] xen: add hook for AP bootstrap memory reservation Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 11/19] xen: changes to hvm code in order to support PVH guests Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 12/19] xen: add a hook to perform AP startup Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 13/19] xen: introduce flag to disable the local apic Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 14/19] xen: introduce xenpv bus and a dummy pvcpu device Roger Pau Monne
2014-01-05 21:52 ` Julien Grall [this message]
2014-01-06 9:46 ` Roger Pau Monné
[not found] ` <52CA7B8F.9060402@citrix.com>
2014-01-06 11:28 ` Julien Grall
[not found] ` <52CA9347.8040901@linaro.org>
2014-01-07 8:24 ` Roger Pau Monné
2014-01-02 15:43 ` [PATCH v9 15/19] xen: create a Xen nexus to use in PV/PVH Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 16/19] xen: add shutdown hook for PVH Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 17/19] xen: xenstore changes to support PVH Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 18/19] xen: changes to gnttab for PVH Roger Pau Monne
2014-01-02 15:43 ` [PATCH v9 19/19] isa: allow ISA bus to attach to xenpv device Roger Pau Monne
[not found] ` <1388677433-49525-20-git-send-email-roger.pau@citrix.com>
2014-01-03 0:22 ` Julian Elischer
[not found] ` <52C602B0.7060904@freebsd.org>
2014-01-03 11:33 ` Roger Pau Monné
[not found] ` <1388677433-49525-5-git-send-email-roger.pau@citrix.com>
2014-01-03 20:59 ` [PATCH v9 04/19] amd64: introduce hook for custom preload metadata parsers Konrad Rzeszutek Wilk
[not found] ` <20140103205949.GC2732@phenom.dumpdata.com>
2014-01-07 11:06 ` Roger Pau Monné
[not found] ` <1388677433-49525-16-git-send-email-roger.pau@citrix.com>
2014-01-05 21:55 ` [PATCH v9 15/19] xen: create a Xen nexus to use in PV/PVH Julien Grall
[not found] ` <52C9D4CA.6070403@linaro.org>
2014-01-06 9:35 ` Roger Pau Monné
[not found] ` <52CA78DE.9060502@citrix.com>
2014-01-06 11:33 ` Julien Grall
[not found] ` <52CA9481.4090703@linaro.org>
2014-01-07 8:29 ` Roger Pau Monné
[not found] ` <52CBBB05.6020104@citrix.com>
2014-01-07 14:27 ` Julien Grall
[not found] ` <52CC0EE8.6060205@linaro.org>
2014-01-09 16:30 ` Roger Pau Monné
[not found] ` <52CECEAA.107@citrix.com>
2014-01-09 18:50 ` Nathan Whitehorn
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=52C9D432.3040409@linaro.org \
--to=julien.grall@linaro.org \
--cc=freebsd-current@freebsd.org \
--cc=freebsd-xen@freebsd.org \
--cc=gibbs@freebsd.org \
--cc=jhb@freebsd.org \
--cc=julien.grall@citrix.com \
--cc=kib@freebsd.org \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xen.org \
/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.