[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Question about open() in qemu
From: |
Alexey Kardashevskiy |
Subject: |
Re: [Qemu-devel] Question about open() in qemu |
Date: |
Thu, 1 Dec 2016 18:23:04 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] Question about open() in qemu,
Alexey Kardashevskiy <=