public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KVM Block Device Driver
@ 2013-08-13 20:13 Spensky, Chad - 0559 - MITLL
  2013-08-14  2:40 ` Fam Zheng
  0 siblings, 1 reply; 16+ messages in thread
From: Spensky, Chad - 0559 - MITLL @ 2013-08-13 20:13 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Hi All,

  I'm working with some disk introspection on KVM, and we trying to create
a shadow image of the disk.  We've hooked the functions in block.c, in
particular bdrv_aio_writev.  However we are seeing writes go through,
pausing the VM, and the comparing our shadow image with the actual VM
image, and they aren't 100% synced up.  The first 1-2 sectors appear to be
always be correct, however, after that, there are sometimes some
discrepancies.  I believe we have exhausted most obvious bugs (malloc
bugs, incorrect size calculations etc.).  Has anyone had any experience
with this or have any insights?

Our methodology is as follows:
 1. Boot the VM.
 2. Pause VM.
 3. Copy the disk to our shadow image.
 4. Perform very few reads/writes.
 5. Pause VM.
 6. Compare shadow copy with active vm disk.

 And this is where we are seeing discrepancies.  Any help is much
appreciated!  We are running on Ubuntu 12.04 with a modified Debian build.

 - Chad

-- 
Chad S. Spensky

MIT Lincoln Laboratory
Group 59 (Cyber Systems Assessment)
Ph: (781) 981-4173




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

end of thread, other threads:[~2013-08-18 14:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-13 20:13 KVM Block Device Driver Spensky, Chad - 0559 - MITLL
2013-08-14  2:40 ` Fam Zheng
2013-08-14 10:05   ` Stefan Hajnoczi
2013-08-14 11:29     ` Spensky, Chad - 0559 - MITLL
2013-08-14 12:16       ` Fam Zheng
2013-08-14 12:19         ` Spensky, Chad - 0559 - MITLL
2013-08-14 12:35           ` Fam Zheng
2013-08-14 14:07       ` Stefan Hajnoczi
2013-08-14 14:40         ` Wolfgang Richter
2013-08-14 14:43           ` Spensky, Chad - 0559 - MITLL
2013-08-14 15:02             ` Wolfgang Richter
2013-08-14 15:49               ` Wolfgang Richter
2013-08-14 18:44                 ` Spensky, Chad - 0559 - MITLL
2013-08-14 19:42                   ` Wolfgang Richter
2013-08-18 14:04                   ` Paolo Bonzini
2013-08-18 14:48                     ` Wolfgang Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox