From: Christopher Head <chead@cs.ubc.ca>
To: Asim <linkasim@gmail.com>, xen-devel@lists.xensource.com
Subject: Re: Trigger code in domU from dom0
Date: Thu, 21 Aug 2008 21:13:08 -0700 [thread overview]
Message-ID: <48AE3CD4.4030006@cs.ubc.ca> (raw)
In-Reply-To: <7ef321c10808212014n1db69d6ej124a13431ab13bfb@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
As far as live migration, this should work perfectly as long as you want
your code to run **after** migration and not before. Live migration
differs from regular migration only in that the tools copy a pile of
memory pages without suspending the domain (meaning domU doesn't know
when this starts happening), then suspend the domain and copy the last
few pages. The event channel (or xenstore) mechanism used to trigger the
suspend is the same, though, meaning you can hook your code in and be
notified either between the mass copying and the copying of the last few
pages (before the hypercall), or after all migration is done (after the
hypercall).
I didn't see any documentation on the code, I just browsed the source.
For my purposes I'm not so much interested in IRQs, I'm more interested
in running before userspace gets a chance to run - so I'm not sure about
what you need for your project.
Chris
Asim wrote:
| Thanks a lot Chris for the response. I have some followup questions:-
|
| 1. Does this hold for "live" migration as well?
|
| 2. I want to run my code when all devices/irqs are available. The
| post_suspend looks like a good place to me. Did you get this
| information via mere source code browsing or there is a reference to
| it. It would be great for me to know where this is in migration stage
| in terms of dom0 - Is it after dom0 declared migration finished?
|
| 3. Thanks a lot for your help.
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: GnuPT 2.7.2
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkiuPNEACgkQiD2svb/jCb7DyACfTmUoolUKYDjSWK+6MWWMGRoQ
DAcAnR9D4LweqxryduJdpLRheROVqFEO
=8mEz
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2008-08-22 4:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 23:07 Trigger code in domU from dom0 Asim
2008-08-22 3:01 ` Christopher Head
[not found] ` <48AE2AA4.9000104@cs.ubc.ca>
[not found] ` <7ef321c10808212014n1db69d6ej124a13431ab13bfb@mail.gmail.com>
2008-08-22 4:13 ` Christopher Head [this message]
2008-08-22 22:02 ` Asim
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=48AE3CD4.4030006@cs.ubc.ca \
--to=chead@cs.ubc.ca \
--cc=linkasim@gmail.com \
--cc=xen-devel@lists.xensource.com \
/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 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.