All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wayne Gong <wayne.gong@oracle.com>
To: xen-devel@lists.xensource.com
Subject: Why I cannot reconnect blk backend
Date: Wed, 19 Nov 2008 17:41:05 +0800	[thread overview]
Message-ID: <4923DF31.5010703@oracle.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 978 bytes --]

Hi,

I am implementing save/restore feature for windows pv driver. After 
system resumed, my frontend blk driver cannot connect backend. Here is 
my work flow:

1, Set frontend state to XenbusStateClosing, then set state to 
XenbusStateClosed. At the end, set frontend state to XenbusStateInitiazing.
2, Release blk device relevant memory.
3, Shutdown xenbus and release relevant memory.
4, Call hypercall to let system suspend.
......
(resume)
5. Reinit xenbus.
6. Get grant table, init share ring, allocate event channel for blk device.
7. Set frontend state to XenbusStateConnected. <-- got issue here.

When set frontend state to connect, my backend state watcher tell me 
that backend state changed to closing and then closed.

I am not very family with blk backend driver, so I want to know which 
scenarios cause blk backend state change to closing/closed. Any info I 
gave to xenstore is wrong?

I use xen 3.1.3, win2k3. I can provide me info if you need.

Thanks
Wayne

[-- Attachment #1.2: Type: text/html, Size: 1319 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

             reply	other threads:[~2008-11-19  9:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-19  9:41 Wayne Gong [this message]
2008-11-19  9:57 ` Why I cannot reconnect blk backend James Harper
2008-11-19 14:26   ` Wayne Gong
2008-11-19 14:34   ` Wayne Gong
2008-11-19 22:27     ` James Harper
2008-11-20  5:56       ` Wayne Gong
2008-11-20 10:25         ` James Harper
2008-11-20 11:27           ` Wayne Gong

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=4923DF31.5010703@oracle.com \
    --to=wayne.gong@oracle.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.