This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] request of blkfront may disorder after migration without wai

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] request of blkfront may disorder after migration without waiting in suspend phase of migration
From: alice wan <wanjia19870902@xxxxxxxxx>
Date: Sun, 10 Jul 2011 12:36:06 +0800
Delivery-date: Sat, 09 Jul 2011 21:37:10 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=yzG0PaiDM3cRqsLqBcUt4Y1QPSzqowIyJ4eeRcKr2UI=; b=qEn9b+2dTv4nV+arbYmhGygxki3OZXXTKVZ8fYiaLFsDOklBhY7a2nefXKhb5v8Zfn HgO0zYNtM+g+0PG7dveDuGlkWA8KUhbGMEWvSIsAOe9ztZvIMIKOadIjlseBg+C/Su4q XvQyBQBfVuA5B5z8v0zTxJQfu5yjhET4VwOaM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi konrad,
I found the mainline linux 3.0-rc6 xen-blkfront driver doesn't implement suspend func. In my opinion, the blkfront should wait till responses of all the pending requests come back, then domu can be suspended, otherwise,  after the migration, vm of target host will request from target host, meanwhile, the blkback of source host maybe do the pending requests until they's done.
if migrate the vm with high io pressure,  the requests of this vm may disorder.
And i saw the gpl windows pv driver, blkfront will change its state and wait for blkback closing, after blkback closing, the pending requests definitely are done.
More, i did some test with migration,  while vm was running dd task,  xm migrate -l .  before it suspend, gdb tapdisk2.  after migration, new vm started. then quit gdb, the pending request were written back to disk after new requests.
above mentioned is just my opinion, i need your advice and confirmation or deny
any help is appreciated.
Xen-devel mailing list