From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: [PATCH]: blktap2 : control function Date: Fri, 21 May 2010 23:27:27 +0300 Message-ID: <20100521202727.GY17817@reaktio.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: eXeC001er Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, May 21, 2010 at 08:51:12PM +0400, eXeC001er wrote: > Hi. > I tried to create small patch for=C2 blktap2 : control function: > This patch is horribly broken at least for me.. It looks really weird. You might want to re-send it in a proper format.. .. Or if it works for others just forget about this rant:) -- Pasi > diff -r 840f269d95fb tools/python/xen/xend/XendDomainInfo.py > --- a/tools/python/xen/xend/XendDomainInfo.py Wed May 19 22:59:52 = 2010 > +0100 > +++ b/tools/python/xen/xend/XendDomainInfo.py Fri May 21 20:17:15 = 2010 > +0400 > @@ -3292,6 +3292,7 @@ > =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 fn =3D BOOTLOADER_LOOPBA= CK_DEVICE > =C2 > =C2 =C2 =C2 =C2 =C2 =C2 =C2 try: > + =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 time.sleep(5) > =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 blcfg =3D bootloader(ble= xec, fn, self, False, > =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 = =C2 =C2 =C2 =C2 =C2 bootloader_args, > kernel, ramdisk, args) > =C2 =C2 =C2 =C2 =C2 =C2 =C2 finally: > @@ -3299,7 +3300,7 @@ > =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 [1]log.info("U= nmounting %s from %s." % > =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 = =C2 =C2 (fn, > BOOTLOADER_LOOPBACK_DEVICE)) > =C2 > - =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 dom0.destroyDevic= e('tap', > BOOTLOADER_LOOPBACK_DEVICE) > + =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 dom0.destroyDevic= e(devtype, > BOOTLOADER_LOOPBACK_DEVICE) > =C2 > =C2 =C2 =C2 =C2 =C2 =C2 =C2 if blcfg is None: > =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 =C2 msg =3D "Had a bootloade= r specified, but can't > find disk" > With this patch DomU boot from VHD disk without error. > But i can not fix other bug: > if after DomU (boot disk is blktap2-type) stopped i can not start=C2= it > again, because i get error "raise VmError("Device %s is already > connected." % dev_str)" in "DevController.py". > but i found workaround: > stop blktap2_mount: echo 1 >=C2 /sys/class/blktap2/blktapX/remove > remove records from xenstore:=C2 > xenstore-rm /vm/00000000-0000-0000-0000-000000000000 > xenstore-write /local/domain/0/vm "" > Now i can run my DomU again. >=20 > References >=20 > Visible links > 1. http://log.info/ > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel