Messages in this thread | | | Subject | Re: [Xen-devel] [PATCH 3/7] xen/hvm: Xen PV extension of HVM initialization | From | Ian Campbell <> | Date | Thu, 4 Mar 2010 10:18:45 +0000 |
| |
On Wed, 2010-03-03 at 17:41 +0000, Stefano Stabellini wrote: > On Wed, 3 Mar 2010, Jeremy Fitzhardinge wrote: > > On 03/03/2010 03:35 AM, Stefano Stabellini wrote: > > > Give a look at the fourth patch of the series I just posted: it > > > introduces a simple driver for the Xen PCI platform device to initialize > > > xenbus and gran table later on when running in a HVM domain, at the same > > > time leaving the PV case as it is. > > > > > > > Yes, I noticed that. Do the PV drivers cope with having the PCI > > probe/xenbus setup after their init functions have been called, or do > > you make sure the PCI probe happens early? > > > > Nope, they seem to cope fine so far.
xenbus_frontend_register is basically just driver_register so it should be safe to call even before the register_bus(xenbusfoo) call. Things shouldn't kick off until xen_probe() is called which either happens explicitly in xenbus_probe_init() or via probe_work which contains a xenstored_ready check.
Ian.
| |