* [XL] How hotplug scripts are called?
@ 2013-05-07 5:56 Choonho Son
2013-05-07 8:11 ` Roger Pau Monné
0 siblings, 1 reply; 2+ messages in thread
From: Choonho Son @ 2013-05-07 5:56 UTC (permalink / raw)
To: xen-devel@lists.xen.org
[-- Attachment #1.1: Type: text/plain, Size: 598 bytes --]
Hi All,
I have question how domain is built, so I looked at xl.c.
If we run "xl create vm.cfg",
main_create( ) function is called like;
create_domain()
`---- libxl_domain_create_new( )
`---- do_domain_create( )
`---- initiate_domain_create( )
`---- lixl__domain_make( )
`---- xc_domain_create( )
following these functions, we can make one domain.
but my question is how hotplug script like vif-bridge is called? It seems
like that "main_networkattach( )" is called somewhere.
Thanks,
Choonho Son
[-- Attachment #1.2: Type: text/html, Size: 992 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [XL] How hotplug scripts are called?
2013-05-07 5:56 [XL] How hotplug scripts are called? Choonho Son
@ 2013-05-07 8:11 ` Roger Pau Monné
0 siblings, 0 replies; 2+ messages in thread
From: Roger Pau Monné @ 2013-05-07 8:11 UTC (permalink / raw)
To: Choonho Son; +Cc: xen-devel@lists.xen.org
On 07/05/13 07:56, Choonho Son wrote:
> Hi All,
>
> I have question how domain is built, so I looked at xl.c.
>
> If we run "xl create vm.cfg",
> main_create( ) function is called like;
>
> create_domain()
> `---- libxl_domain_create_new( )
> `---- do_domain_create( )
> `---- initiate_domain_create( )
> `---- lixl__domain_make( )
> `---- xc_domain_create( )
>
> following these functions, we can make one domain.
>
> but my question is how hotplug script like vif-bridge is called? It
> seems like that "main_networkattach( )" is called somewhere.
Scripts are called from libxl__device_{disk/nic}_add, in the call to
libxl__wait_device_connection libxl waits for the device backend to
reach state 2 and then it executes hotplug scripts.
The function device_hotplug in libxl_device.c takes care of most of the
work, aided by OS specific helpers (see libxl_linux.c and libxl_netbsd.c
for the OS specific implementation).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-07 8:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07 5:56 [XL] How hotplug scripts are called? Choonho Son
2013-05-07 8:11 ` Roger Pau Monné
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.