1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/sys/xen
Attilio Rao 444b91868b Make the newbus subsystem Giant free by adding the new newbus sxlock.
The newbus lock is responsible for protecting newbus internIal structures,
device states and devclass flags. It is necessary to hold it when all
such datas are accessed. For the other operations, softc locking should
ensure enough protection to avoid races.

Newbus lock is automatically held when virtual operations on the device
and bus are invoked when loading the driver or when the suspend/resume
take place. For other 'spourious' operations trying to access/modify
the newbus topology, newbus lock needs to be automatically acquired and
dropped.

For the moment Giant is also acquired in some key point (modules subsystem)
in order to avoid problems before the 8.0 release as module handlers could
make assumptions about it. This Giant locking should go just after
the release happens.

Please keep in mind that the public interface can be expanded in order
to provide more support, if there are really necessities at some point
and also some bugs could arise as long as the patch needs a bit of
further testing.

Bump __FreeBSD_version in order to reflect the newbus lock introduction.

Reviewed by:    ed, hps, jhb, imp, mav, scottl
No answer by:   ariff, thompsa, yongari
Tested by:      pho,
                G. Trematerra <giovanni dot trematerra at gmail dot com>,
                Brandon Gooch <jamesbrandongooch at gmail dot com>
Sponsored by:   Yahoo! Incorporated
Approved by:	re (ksmith)
2009-08-02 14:28:40 +00:00
..
evtchn Catch up with r195249, "Improve the handling of cpuset with interrupts." 2009-07-21 16:54:11 +00:00
interface Merge in support for Xen HVM on amd64 architecture. 2009-03-11 15:30:12 +00:00
xenbus Make the newbus subsystem Giant free by adding the new newbus sxlock. 2009-08-02 14:28:40 +00:00
evtchn.h merge 186535, 186537, and 186538 from releng_7_xen 2008-12-29 06:31:03 +00:00
features.c Merge in support for Xen HVM on amd64 architecture. 2009-03-11 15:30:12 +00:00
features.h Merge in support for Xen HVM on amd64 architecture. 2009-03-11 15:30:12 +00:00
gnttab.c Merge in support for Xen HVM on amd64 architecture. 2009-03-11 15:30:12 +00:00
gnttab.h Merge in support for Xen HVM on amd64 architecture. 2009-03-11 15:30:12 +00:00
hypervisor.h Merge in support for Xen HVM on amd64 architecture. 2009-03-11 15:30:12 +00:00
reboot.c Fix the Xen build for i386 PV mode. 2009-04-01 17:06:28 +00:00
xen_intr.h Merge in support for Xen HVM on amd64 architecture. 2009-03-11 15:30:12 +00:00