From: Fabio Fantoni Subject: Re: Vdagent not working on xen linux hvm DomUs Date: Tue, 10 Dec 2013 15:38:02 +0100 Message-ID: <52A7274A.90906@m2r.biz> References: <52A1BA46.4050102@m2r.biz> <20131206115722.GA30613@zion.uk.xensource.com> <52A1C7EF.8030909@m2r.biz> <20131206125500.GB30613@zion.uk.xensource.com> <52A1CCC0.9030608@m2r.biz> <20131206131703.GC30613@zion.uk.xensource.com> <52A1D676.70308@m2r.biz> <20131206144030.GD30613@zion.uk.xensource.com> <52A1E3FA.6090809@m2r.biz> <20131206145546.GF30613@zion.uk.xensource.com> <20131206153937.GB4419@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20131206153937.GB4419@zion.uk.xensource.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spice-devel-bounces@lists.freedesktop.org Errors-To: spice-devel-bounces@lists.freedesktop.org To: Wei Liu Cc: spice-devel@lists.freedesktop.org, xen-devel List-Id: xen-devel@lists.xenproject.org Il 06/12/2013 16:39, Wei Liu ha scritto: > On Fri, Dec 06, 2013 at 02:55:46PM +0000, Wei Liu wrote: >> On Fri, Dec 06, 2013 at 03:49:30PM +0100, Fabio Fantoni wrote: >>> Il 06/12/2013 15:40, Wei Liu ha scritto: >>>> On Fri, Dec 06, 2013 at 02:51:50PM +0100, Fabio Fantoni wrote: >>>>> Il 06/12/2013 14:17, Wei Liu ha scritto: >>>>>> On Fri, Dec 06, 2013 at 02:10:24PM +0100, Fabio Fantoni wrote: >>>>>> [...] >>>>>>> I tried 2 cases with xen_emul_unplug=never: >>>>>>> - with xen platform disabled (xen_platform_pci=0 plus konrad patch) >>>>>>> and pci=nomsi >>>>>>> - with xen_platform_pci=1 and without pci kernel parameter >>>>>>> on both cases qemu crash with same error: >>>>>>> xen_ram_addr_from_mapcache, could not find 0x7fdecf624968 >>>>>>> >>>>>>> On your virtio net test you have added only 'model=virtio-net-pci' >>>>>>> on vif line of domU's xl cfg or you did other changes? >>>>>>> >>>>>> No, nothing more. But I'm using Xen's QEMU upstream, not vanilla QEMU. >>>>> I'm using xen's upstream qemu (master of >>>>> git://xenbits.xen.org/qemu-upstream-unstable.git) >>>>> >>>> Not only the branch is important but also the changeset. >>>> >>>> I'm using the hash specified in Config.mk >>> qemu of my tests about virtio: >>> git log >>> commit b97307ecaad98360f41ea36cd9674ef810c4f8cf >>> Author: Matthew Daley >>> Date: Thu Oct 10 14:10:48 2013 +0000 >>> >>> xen_disk: mark ioreq as mapped before unmapping in error case >>> >> There's lots of changesets between this one and the one I use so doing >> bisection is the only way to find out where the regression was >> introduced. >> > And, if you're really going to look into this I suggest you start with > virtio related changesets, then Xen mapcache changesets (I suspect > there's many changes to this code, but anyway it is worth looking at). > > Good luck. > > Wei. Thanks for your reply. Before starting bisection I tried with qemu 1.3.1 from qemu-upstream-4.3-testing.git No more crash with virtio net but it needs pci=nomsi to be working, same thing for vdagent, so seems that msi problem is with all virtio devices. Then the problems seem 2 different, on your build you have virtio devices working without setting pci=nomsi need to know the differences and find the cause. About the crash of qemu 1.6.1 with virtio net is confirmed that is a regression, is not critical because is not implement on libxl now but I'll do further research.