All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nauzad Sadry <nauzad@gmail.com>
To: Mark Williamson <maw48@cl.cam.ac.uk>
Cc: xen-devel@lists.sourceforge.net
Subject: Re: suspend operation in XEND
Date: Thu, 20 Jan 2005 17:05:53 -0800	[thread overview]
Message-ID: <aa7b01ec050120170539b8a803@mail.gmail.com> (raw)
In-Reply-To: <200501210028.47139.maw48@cl.cam.ac.uk>

when the domainU is being suspended I see "shutdown_suspend_t" message
sent to the domain thru the event channel by XEND.

what does the domainU do on receiving this message ??

is the DISCONNECTED message sent by XEND as a part of suspend_domain
or as a part of destroy_domain??

Thanks,

Nauzad

On Fri, 21 Jan 2005 00:28:46 +0000, Mark Williamson <maw48@cl.cam.ac.uk> wrote:
> > So when does the event channel between the backend & front end drivers
> > break during suspend operation in XEND ??
> 
> The event channel itself will get destroyed when the domain is destroyed
> (after the domain's contents are saved).  From the guests PoV, no teardown of
> event channels or shared memory occurs before suspend - it all gets sorted
> out on resume.
> 
> > Also when is the NETIF_INTERFACE_STATUS_DISCONNECTED status sent to
> > the front-end driver? I see code in the front-end driver that
> > processes this status type which results in the front-driver going to
> > a suspend state (like unregistering IRQs etc)
> 
> Interfaces go through various states.  During normal operation, these look
> like the following:
> * DISCONNECTED -> CLOSED -> CONNECTED when an interface is attached to the
> domain
> * CONNECTED -> CLOSED -> DISCONNECTED when an interface is removed.  In this
> case, the interface is in the CLOSED state when the DISCONNECTED message
> arrives, so this is the final disconnect for the interface
> 
> If the interface is in the CONNECTED state and a DISCONNECTED message is
> received, it means that the connection with the backend has been broken for
> some reason (e.g. the domain migrated to a new host, the backend driver
> domain was rebooted, etc).  When this happens, Xend will send this message to
> the domain.
> 
> If the guest sees this then it must go through the DISCONNECTED -> CLOSED ->
> CONNECTED transition again, talking on the control interface to set up shared
> memory and bind event channels with the new backend.  At this point, it also
> frees resources associated with the old device channel that are no longer
> needed (e.g. old IRQs).
> 
> HTH,
> Mark
> 
> > On Thu, 20 Jan 2005 22:54:25 +0000, Mark Williamson <maw48@cl.cam.ac.uk>
> wrote:
> > > > During Save & Migration, XFRD sends "xfr.suspend" message to XEND.
> > > > This results in XEND suspending the domainU. A part of the suspension
> > > > should involve XEND sending DISCONNECT message to the front-end driver
> > > > in domainU
> > >
> > > I don't think you'll find it.  Migrations / suspensions are treated like
> > > a backend driver restart - at resume the frontend driver is notified that
> > > it needs to reconnect to the backend and is responsible for requeuing any
> > > pending requests.
> > >
> > > Instead of explicitly disconnecting the domain at suspend, the frontend
> > > driver just sorts everything out at resume.
> > >
> > > Cheers,
> > > Mark
> > >
> > > > I am trying to dig through the XEND python code & I am unable to find
> > > > this information. Can someone help ??
> > > >
> > > > Also can someone guide me through the set of functions that are called
> > > > by XEND as a part of suspend. What is the use of the the
> > > > domain_restart_schedule() ??
> > > >
> > > > Thanks
> > > >
> > > > Nauzad
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> > > > Tool for open source databases. Create drag-&-drop reports. Save time
> > > > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> > > > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > > > _______________________________________________
> > > > Xen-devel mailing list
> > > > Xen-devel@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/xen-devel
>


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

  reply	other threads:[~2005-01-21  1:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-20 22:51 suspend operation in XEND Nauzad Sadry
2005-01-20 22:54 ` Mark Williamson
2005-01-20 23:24   ` Nauzad Sadry
2005-01-21  0:28     ` Mark Williamson
2005-01-21  1:05       ` Nauzad Sadry [this message]
2005-01-21  1:21         ` Mark Williamson

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=aa7b01ec050120170539b8a803@mail.gmail.com \
    --to=nauzad@gmail.com \
    --cc=maw48@cl.cam.ac.uk \
    --cc=xen-devel@lists.sourceforge.net \
    /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.