Interprocessor interrupt infrastructure. Dispatch cribbed from Alpha
and streamlined a bit. Low-level interrupt stub assumes a vectored
interrupt and pushes a full FMT0 trap frame rather than the minimal
clockframe (since at least one of the IPI handlers needs it).
IPI polling (which can be required when sending synchronous IPIs from
an interrupt handler) is achieved with a small ipi_poll() stub that
either returns immediately if cpuinfo.ci_ipis == 0, or creates the base
FMT0 exception frame and jumping to the main ipi_intrstub; when complete,
the RTE will return directly to the caller of ipi_poll().
Revert yesterday's changes to lfs_vflush(), lfs_writevnodes_selector() and
ulfs_inactive() since these cause ATF failures. PR kern/61000 may be
affected.
Beginnings of IPI infrastructure for m68k. cpu_need_resched()
and cpu_signotify() need MP hooks, so relocate those to m68k_machdep.c.
cpu_need_proftick() gets relocated, too, so we can make some assertions.
Implementations cribbed from Alpha.
Pull up following revision(s) (requested by hannken in ticket #1425):
sys/kern/vfs_wapbl.c: revision 1.118 (via patch)
The evaluation of resource shortage in wapbl_register_deallocation()
is incomplete as only "wl_dealloccnt" is checked. Replace this check with
the doflush check from wapbl_begin() testing for 75% instead 50% to
make sure the next wapbl_begin() will always flush.
It is still a mitigation, for a fix the file system must provide an
upper bound for every transaction to wapbl_begin().
PR kern/47146 user-triggerable crash in wapbl_register_deallocation (confi)
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Pull up following revision(s) (requested by hannken in ticket #586):
sys/kern/vfs_wapbl.c: revision 1.118
The evaluation of resource shortage in wapbl_register_deallocation()
is incomplete as only "wl_dealloccnt" is checked. Replace this check with
the doflush check from wapbl_begin() testing for 75% instead 50% to
make sure the next wapbl_begin() will always flush.
It is still a mitigation, for a fix the file system must provide an
upper bound for every transaction to wapbl_begin().
PR kern/47146 user-triggerable crash in wapbl_register_deallocation (confi)
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Pull up following revision(s) (requested by hannken in ticket #1424):
sys/ufs/ffs/ffs_snapshot.c: revision 1.158
Add UFS_WAPBL_UPDATE() after block allocations to group the
allocation and the inode update into the same transaction.
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Pull up following revision(s) (requested by hannken in ticket #585):
sys/ufs/ffs/ffs_snapshot.c: revision 1.158
Add UFS_WAPBL_UPDATE() after block allocations to group the
allocation and the inode update into the same transaction.
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Use ETHER_MACADDR_{IG,UL}
if_tap.c and if_vether.c are not modified. I don't know where f2:0b:a4
comes from.
I think it'll be good to create a new function which make random MAC address
and use it.