From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Subject: Re: Hypervisor error messages after xl block-detach with linux 3.18-rc5 Date: Tue, 25 Nov 2014 17:48:43 +0100 Message-ID: <5474B2EB.6090306@suse.com> References: <546EFAE3.80404@suse.com> <20141121135747.GB2886@laptop.dumpdata.com> <5473008C.4080604@suse.com> <1416823327.26329.25.camel@citrix.com> <5474AA00.8050500@suse.com> <1416932286.11944.12.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1416932286.11944.12.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 11/25/2014 05:18 PM, Ian Campbell wrote: > On Tue, 2014-11-25 at 17:10 +0100, Juergen Gross wrote: >> On 11/24/2014 11:02 AM, Ian Campbell wrote: >>> On Mon, 2014-11-24 at 10:55 +0100, Juergen Gross wrote: >>>> On 11/21/2014 02:57 PM, Konrad Rzeszutek Wilk wrote: >>>>> On Fri, Nov 21, 2014 at 09:42:11AM +0100, Juergen Gross wrote: >>>>>> Hi, >>>>>> >>>>>> while testing my "linear p2m list" patches I saw the following >>>>>> problem (even without my patches in place): >>>>>> >>>>>> In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the >>>>>> disk image of a guest by attaching it to dom0: >>>>>> >>>>>> xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w >>>>>> mount /dev/xvda2 /mnt >>>>>> ... >>>>>> umount /mnt >>>>>> xl block-detach 0 xvda >>>> >>>> Did some more testing: >>>> - Seems to occur only when attaching a block device to dom0 >>> >>> That means a qdisk backed situation then, I think. >>> >>> Is your qemu up to date? >>> >>> http://xenbits.xen.org/gitweb/?p=qemu-upstream-unstable.git;a=commit;h=abbbc2f09a53f8f9ee565356ab11a78af006e45e resulted in slightly different messages, but could be related? >> >> Tried it with xen-unstable and newest qemu. Now I have another problem: >> >> xl -vvv block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w >> libxl: debug: libxl.c:4178:libxl_device_disk_add: ao 0xbac0f0: create: >> how=(nil) callback=(nil) poller=0xbac1d0 >> libxl: error: libxl.c:1897:device_addrm_aocomplete: unable to add device >> libxl: debug: libxl_event.c:1739:libxl__ao_complete: ao 0xbac0f0: >> complete, rc=-16 >> libxl: debug: libxl.c:4178:libxl_device_disk_add: ao 0xbac0f0: >> inprogress: poller=0xbac1d0, flags=ic >> libxl: debug: libxl_event.c:1711:libxl__ao__destroy: ao 0xbac0f0: destroy >> libxl_device_disk_add failed. >> >> >> rc=-16 means ERROR_JSON_CONFIG_EMPTY. > > Have you updated your initscripts to run the xen-init-dom0 helper? This > replaced the manual xenstore-write stuff a little while back and added > some other init, including creating the necessary json description of > dom0. Bingo! Now it works. Thanks, Juergen