All of lore.kernel.org
 help / color / mirror / Atom feed
* regarding devices in domU - bug or feature ....
@ 2005-12-05 16:16 Himanshu Raj
  0 siblings, 0 replies; only message in thread
From: Himanshu Raj @ 2005-12-05 16:16 UTC (permalink / raw)
  To: xen-devel

Hi Folks,

I am trying to develop device driver for a device as a module. There is a front
end in domU and a back end in dom0. At the domU creation time, a write in xenstore
corresponding to creation of BE device spurs my driver which creates appropriate
data structures etc for BE, totally regardless to the FE driver.
After domU finishes booting, I load the FE driver which talks to BE driver
and yada yada.

Problem comes when I unload the FE driver. It calls xenbus_unregister_driver,
which ends up calling xenbus_dev_remove. This sets the xenbus state for that 
device to XenbusStateClosed. My back end driver then thinks that FE device has
gone away and removes the BE device. Needless to say, further loads of FE driver
are useless. If I remove that piece of code (which acts on XenbusStateClosed),
then the BE device hangs around even after the domU has shut down.

IMHO, shouldn't there be a similar job of device *removal* done by xm shutdown
as it is done by xm create? Then proper device removal will only happen when
a guest shuts down, rather when its driver is unloaded. Or there is something
totally wrong with the way I understand this issue.

Best regards,
Himanshu

-- 
-------------------------------------------------------------------------
Himanshu Raj
PhD Student, GaTech (www.cc.gatech.edu/~rhim)
I prefer to receive attachments in an open, non-proprietary format.
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-05 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-05 16:16 regarding devices in domU - bug or feature Himanshu Raj

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.