> -----Original Message----- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen > Hemminger > Sent: Friday, March 6, 2015 8:45 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/2] virtio: initialize iopl when device is > initialized > > The virtio driver needs to use in/out instructions therefore it must > initialize > using iopl(2) system call. The problem is that virtio initialization happens > very > early, and any application that uses daemon() or calls eal_init later in > another > context will fail. > > The fix is to move the iopl into rte_eal_init. >
Why need move virtio specific code into rte_eal_init? thanks Changchun