qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Query regarding IO paths in QEMU
@ 2013-04-29 17:02 aayush gupta
  2013-05-01  9:30 ` Stefan Hajnoczi
  0 siblings, 1 reply; 4+ messages in thread
From: aayush gupta @ 2013-04-29 17:02 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]

Hi,

I am trying to understand the IO paths in QEMU (which I understand emulates
IO for KVM) to have a better idea of how it works and get a clear picture
of how I can trap all read/write requests being issued by the VM in the
QEMU block layer for a project that I am working on.

For example, lets say that we use QCOW2 image format for VMs. Looking into
the code, I was able to track the requests as follows:

bdrv_read() -> bdrv_rw_co() -> bdrv_rw_co_entry() -> bdrv_co_do_readv() ->
this calls into driver specific functions

qcow2_co_readv() -> bdrv_co_readv() [back into block.c] ->
bdrv_co_do_readv()

After this it looks like the driver specific function is called again. I am
pretty sure I am missing something here or my understanding is incorrect.

Can you please help me in understanding the complete IO path from the guest
VM into QEMU and from QEMU into the host? What are some of the other things
I should be careful about.

I am a complete novice in QEMU/KVM environment and would really appreciate
any help you can provide.

Thanks in advance,
Aayush

[-- Attachment #2: Type: text/html, Size: 1499 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-09  5:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-29 17:02 [Qemu-devel] Query regarding IO paths in QEMU aayush gupta
2013-05-01  9:30 ` Stefan Hajnoczi
2013-05-06 21:36   ` aayush gupta
2013-05-09  5:51     ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).