[Fault-injection-developer] Re: [Pcihpd-discuss] CPCI hotswap peripheral board simulator
Status: Alpha
Brought to you by:
rustyl
From: Greg KH <gr...@kr...> - 2003-03-11 08:35:39
|
On Tue, Mar 11, 2003 at 04:22:40PM +0800, Stanley Wang wrote: > On Mon, 10 Mar 2003, Greg KH wrote: > > > On Fri, Mar 07, 2003 at 12:05:45PM +0800, Stanley Wang wrote: > > > I've completed a mock e100 CPCI peripheral board based on FITH > > > project(http://fault-injection.sourceforge.net/). It would intercept all > > > pci config access and could be used to test CPCI hotswap driver without real > > > hardware support. > > > > You say, "Could be used". Does that mean you have used it in such a > > manner? And does that mean that other pci hotplug drivers could be > > tested with a modification of this framework? > Certainly. I could use it to trigger an insertion/extraction event at any time. > You could also list this mock peripheral board by "lspci" after it was inserted. > I just implement the HotSwap part of the mock peripheral board, and you could > let it be any device you want. Ah, very nice. > This simulator is based on FITH. FITH provides ability to intercept and > inject faults into any PIO/MMIO access or IRQ handler. Hence we could emulate a > real device easily by intercept serval PIO/MMIO/IRQ. That's pretty cool. We could create up some virtual USB controllers, which control virtual USB devices, to really beat on the USB stack for example, right? Are there any groups writing these kinds of "fake device" drivers? thanks, greg k-h |