qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kaushik Bhandankar <kaushikb@cc.gatech.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Pending Disk I/O requests during live VM migration
Date: Thu, 04 Oct 2007 12:01:40 -0400	[thread overview]
Message-ID: <47050E64.5070901@cc.gatech.edu> (raw)

Hello

I am trying to implement functionality in fully-virtualized xen wherein 
the responses to the pending disk I/O requests during live VM migration 
get trasnsferred to the new VMM form the old VMM. Specifically, I am 
looking at IDE disk (tools/ioemu/hw/ide.c)

Basically, ide.c:pci_ide_save() saves the state of the IDE disk in a 
QEMUFile and this file is sent over the network (can somebody point me 
to the code where this happens ??)) so that the new VMM (where the VM 
has migrated) invokes ide.c:pci_ide_load() to retrieve the IDE Disk 
contents form the file. As of now, the pending disk I/O requests do not 
get saved in this file so these pending disk I/O requests are not 
available when executing pci_ide_load().

I am still trying to figure out where the pending Disk I/O requests get 
stored in the VMM so that during live VM migration, these requests can 
be put in the QEMUFile (As mentioned above) so that they can be reissued 
by the new VMM. Much better would be to send the responses to these 
pending disk I/O requests from the old to new VMM. Can somebody help me 
out with this as I am newbie here....??

register_savevm() in ioemu/vl.c is simply used to register the save & 
load handlers......... register_savevm() is called in 
ioemu/hw/ide.c:pci_piix_ide_init() to register pci_ide_save() and 
pci_ide_load() as the save & load handlers for IDE disks....... 
qemu_savevm() in ioemu/vl.c walks the list of the registered save 
handlers whereas qemu_loadvm() in vl.c expects a load handler to have 
been registered for the corresponding save handlers for each chunk of 
the save file.

Any help in locating the code would be greatly appreciated.

-Kaushik

             reply	other threads:[~2007-10-04 16:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-04 16:01 Kaushik Bhandankar [this message]
2007-10-04 16:30 ` [Qemu-devel] Pending Disk I/O requests during live VM migration Blue Swirl
2007-10-04 16:43   ` Kaushik Bhandankar
2007-10-04 17:05     ` Blue Swirl
2007-10-11 22:00       ` Kaushik Bhandankar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47050E64.5070901@cc.gatech.edu \
    --to=kaushikb@cc.gatech.edu \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).