On 30/11/16 21:11, morgenlette madeBy wrote: > Hello > > I am studnet studying QEMU. > > I have a question open in QEMU. > > In function handle_aiocb_rw_linear() in block/raw-posix.c, > > i tried to open my device driver(mydev). > > this driver was confirmed safe operation by test program. > > But in qemu, this driver was not opened returning -1. > > errno is 1. 1 means 'Operation not permitted' > > QEMU is not supporting open()???
Your test program either: - tries opening file with different flags than the code you added to QEMU or - you did run your test program as a root and you are running QEMU as user or - the driver behaves different when opened second time. -- Alexey