> I don't think it's that easy as I just thought about another problem > with lifting the locking from the emulation function. It calls > kzalloc(..., GFP_KERNEL), at least in some cases, and that's not a > very good idea from atomic/irq context... Right. However, we could simply bail out early when we are in atomic context. Simply no DMA then...