Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 590B5C43461 for ; Thu, 10 Sep 2020 10:59:20 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E967620BED for ; Thu, 10 Sep 2020 10:59:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E967620BED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=invisiblethingslab.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kGKIB-0000MB-Jf; Thu, 10 Sep 2020 10:59:03 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kGKIA-0000M6-Ui for xen-devel@lists.xenproject.org; Thu, 10 Sep 2020 10:59:02 +0000 X-Inumbo-ID: c370dc42-3474-48b9-9d09-4880487a06fc Received: from wout5-smtp.messagingengine.com (unknown [64.147.123.21]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id c370dc42-3474-48b9-9d09-4880487a06fc; Thu, 10 Sep 2020 10:59:01 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 3A40AA22; Thu, 10 Sep 2020 06:59:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 10 Sep 2020 06:59:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=3ZtNmo 56vjkcNNVYyA8fLARC8+VWNS2YZphb1u9cNi0=; b=lesAjiw/c0PPqlJkQl6Omt 5Vj0wiUkMmRYaL3CbZFCffnlfrEfFgfZN56f39VCqHzE7lANmkz8R0ap0PUHipQM 6S5PYHBUUZMyoGj1NbDJNHXAgXA2f8UJYR5WRyyPbvb3nVDEyTSfvDouVLRXpFM9 LUdlp3VqOvZQOs3jgKIdlZX8nGlL9DpsLXXYByCbJ7Yk4KKXeZaqeBke2d65xdc8 moCy/FUuMrKt/TZ1lPcmWdf4xHWimzrD21i8sjSh7Bm3srIJnW8m1B3L4CnRCsbA aygS1+z6ngmASj/ZUV/Y+mb8xV9Ks4MR800EWXHQskzrWmD3SoeCBtxaYmmWCSmA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehjedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforghrvghk ucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvh hishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucggtffrrghtthgvrhhnpeetveff iefghfekhffggeeffffhgeevieektedthfehveeiheeiiedtudegfeetffenucfkpheple durdeigedrudejtddrkeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepmhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsg drtghomh X-ME-Proxy: Received: from mail-itl (ip5b40aa59.dynamic.kabel-deutschland.de [91.64.170.89]) by mail.messagingengine.com (Postfix) with ESMTPA id 8614C3280060; Thu, 10 Sep 2020 06:58:58 -0400 (EDT) Date: Thu, 10 Sep 2020 12:58:54 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Roger Pau =?utf-8?B?TW9ubsOp?= Cc: Ian Jackson , Wei Liu , Anthony PERARD , xen-devel Subject: Re: libxl - b_info.{acpi,apic} behaves differently than b_info.u.hvm.{acpi,apic} Message-ID: <20200910105854.GA1626@mail-itl> References: <20200910035723.GY1626@mail-itl> <20200910085148.GU753@Air-de-Roger> <20200910102921.GZ1626@mail-itl> <20200910104104.GW753@Air-de-Roger> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eBor3w/3Tk4fTrOq" Content-Disposition: inline In-Reply-To: <20200910104104.GW753@Air-de-Roger> X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --eBor3w/3Tk4fTrOq Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: libxl - b_info.{acpi,apic} behaves differently than b_info.u.hvm.{acpi,apic} On Thu, Sep 10, 2020 at 12:41:04PM +0200, Roger Pau Monn=C3=A9 wrote: > Adding toolstack maintainers. >=20 > On Thu, Sep 10, 2020 at 12:29:21PM +0200, Marek Marczykowski-G=C3=B3recki= wrote: > > On Thu, Sep 10, 2020 at 10:51:48AM +0200, Roger Pau Monn=C3=A9 wrote: > > > On Thu, Sep 10, 2020 at 05:57:23AM +0200, Marek Marczykowski-G=C3=B3r= ecki wrote: > > > > Hi, > > > >=20 > > > > After updating from Xen 4.13 to Xen 4.14 I have troubles starting a= ny > > > > HVM: just after hvmloader saying "Invoking SeaBIOS" I get "(XEN) MM= IO > > > > emulation failed (1): d29v0 32bit @ 0008:fffeedf d -> " > > > >=20 > > > > I come to a situation where seemingly the same domU started via xl > > > > works, while when started via libvirt it crashes. This seems to be > > > > related to xl setting b_info.{acpi,apic}, while libvirt setting > > > > b_info.u.hvm.{acpi,apic}. Modifying libvirt to use the former fixes= the > > > > issue. > > >=20 > > > Could you print the values of the involved fields at the end of > > > libxl__domain_build_info_setdefault in both cases? > > >=20 > > > I'm not able to spot what changed between 4.13 and 4.14 that could > > > alter the behavior, but knowing the values at that point might make > > > it easier. > >=20 > > Sure, will do. > > It may be also something else: maybe it acpi/apic settings were broken > > before, but did not results in a domU crash this way. > > FWIW when looking into /var/lib/xen/*-libxl-json I clearly see > > difference between b_info.{acpi,apic} and b_info.u.hvm.{acpi,apic}. >=20 > I think libxl__domain_build_info_setdefault should check whether > b_info.u.hvm.{acpi,apic} is set and copy those into b_info.{acpi,apic} > if those are not set? Looking at libxl__domain_build_info_setdefault this is not the case. Instead there is libxl__acpi_defbool_val which looks at both. Oh, and there is no similar thing for apic -> b_info.u.hvm.apic is ignored! > Toolstack people is more likely to have an opinion here, or to help > debug the issue. --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --eBor3w/3Tk4fTrOq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl9aBu4ACgkQ24/THMrX 1yz16Af+MSOEvcZaVyh8iX/7VmD9lL6W0gJDR2rLLlh55fV7sgBrQTLrcKGWfuiq UDm8BOq4wPGxlQJZ1s+3PsgrAttGhAOtzxViIdhgQ/VgKvJ5ZD8o8ykO6YS0MFuI M4aV+GqxMs5HDx8n4oaiuEIRK78qoU2LdbVAnF5/ptLrgcsizpF/lqEUuuDB56Ul hQ63se4kAtK6o6eUnA/8wcVChwU49aHPyY1ey7t2MD0hySvWyJSJMNWf6A+o0VjW a26G9C+LtOVfJV3mHl/AK4lyjmk0is03wj4E3y57xOVLFShw/46NxWMagVbV2bRv opTSrZ9un8jSiiCpE2RtVkpEeUgIuw== =Lpql -----END PGP SIGNATURE----- --eBor3w/3Tk4fTrOq--