All of lore.kernel.org
 help / color / mirror / Atom feed
* Storage controller access to data
@ 2021-10-12 17:52 Nada Lachtar
  2021-10-15 11:48 ` Kevin Wolf
  0 siblings, 1 reply; 2+ messages in thread
From: Nada Lachtar @ 2021-10-12 17:52 UTC (permalink / raw)
  To: qemu-devel

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

Hello,

I’m working on a project that requires me to read the data being sent to storage and it to a file for analysis. To be more specific, I’m trying to analyze the data in the phase of being written to the storage disk, thus, I’m trying to read the data when it’s going through a storage controller on x86 device. I’ve been looking into the implementation of different storage controllers, but I need help to pinpoint where I can read such data.

I hope my question is clear. Thank you for your time and help,



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

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

* Re: Storage controller access to data
  2021-10-12 17:52 Storage controller access to data Nada Lachtar
@ 2021-10-15 11:48 ` Kevin Wolf
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2021-10-15 11:48 UTC (permalink / raw)
  To: Nada Lachtar; +Cc: qemu-devel, qemu-block

Am 12.10.2021 um 19:52 hat Nada Lachtar geschrieben:
> I’m working on a project that requires me to read the data being sent
> to storage and it to a file for analysis. To be more specific, I’m
> trying to analyze the data in the phase of being written to the
> storage disk, thus, I’m trying to read the data when it’s going
> through a storage controller on x86 device. I’ve been looking into the
> implementation of different storage controllers, but I need help to
> pinpoint where I can read such data.

Did you consider getting the data not from the frontend (i.e. the
implementation of the storage controller emulation), but from the
backend (i.e. the -blockdev configuration)?

For example, there is the blklogwrites block driver that creates a log
file that contains all the write requests that were made. Maybe this
provides already what you need.

If you need more flexibility than this, you could use an NBD connection
as the backend and have a custom NBD server that can process the data in
whatever way you need.

Kevin



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

end of thread, other threads:[~2021-10-15 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12 17:52 Storage controller access to data Nada Lachtar
2021-10-15 11:48 ` Kevin Wolf

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.