* [Qemu-devel] Question about open() in qemu
@ 2016-11-30 10:11 morgenlette madeBy
2016-11-30 12:21 ` Fam Zheng
2016-12-01 7:23 ` Alexey Kardashevskiy
0 siblings, 2 replies; 3+ messages in thread
From: morgenlette madeBy @ 2016-11-30 10:11 UTC (permalink / raw)
To: qemu-devel
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()???
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Question about open() in qemu
2016-11-30 10:11 [Qemu-devel] Question about open() in qemu morgenlette madeBy
@ 2016-11-30 12:21 ` Fam Zheng
2016-12-01 7:23 ` Alexey Kardashevskiy
1 sibling, 0 replies; 3+ messages in thread
From: Fam Zheng @ 2016-11-30 12:21 UTC (permalink / raw)
To: morgenlette madeBy; +Cc: qemu-devel
On Wed, 11/30 19: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()???
Hi!
If you are asking a question about your modification to QEMU, could you include
the patch and describe the steps in detail? I cannot tell what you are trying to
achieve here.
Fam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Question about open() in qemu
2016-11-30 10:11 [Qemu-devel] Question about open() in qemu morgenlette madeBy
2016-11-30 12:21 ` Fam Zheng
@ 2016-12-01 7:23 ` Alexey Kardashevskiy
1 sibling, 0 replies; 3+ messages in thread
From: Alexey Kardashevskiy @ 2016-12-01 7:23 UTC (permalink / raw)
To: morgenlette madeBy, qemu-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-01 7:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-30 10:11 [Qemu-devel] Question about open() in qemu morgenlette madeBy
2016-11-30 12:21 ` Fam Zheng
2016-12-01 7:23 ` Alexey Kardashevskiy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.