Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kZUV3-00070N-K2 for mharc-grub-devel@gnu.org; Mon, 02 Nov 2020 02:43:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZUV1-000702-IT for grub-devel@gnu.org; Mon, 02 Nov 2020 02:43:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:52210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZUUy-0001wh-Bf for grub-devel@gnu.org; Mon, 02 Nov 2020 02:43:30 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1604303005; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uknSn1WyStcs637NqwZKMRg783WjxAoAW/oy/MLN9t8=; b=FuLVZq8ERFX1Pn6ZAhyWCBkqvn1D8sG0m6QOyRrgTucAuMyWZYcxW5adFyXwJMJRr3o6du VOFzQVDzHrCwfIALk/F3ZCAHA3CJ+lR4xgK6ROb4T8ZU2i+8uAFIUX+f4iJh3xLkbl6eyD 8g7KlYswagGC84zSZVz/UB8jvxbFrBw= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 217A2B236; Mon, 2 Nov 2020 07:43:25 +0000 (UTC) Subject: Re: Grub xen_pvh platform does not seem to support uncompressed kernels To: The development of GNU GRUB , Andy Smith Cc: xen-users References: <20201102062258.GN16003@bitfolk.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <5b764199-29de-70ef-ea68-971737caaa70@suse.com> Date: Mon, 2 Nov 2020 08:43:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201102062258.GN16003@bitfolk.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=195.135.220.15; envelope-from=jgross@suse.com; helo=mx2.suse.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/02 00:21:37 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2020 07:43:31 -0000 On 02.11.20 07:22, Andy Smith wrote: > Hi, > > [ xen-users in CC as I know a few there are using a decompressed > kernel workaround for LZ4 and might be hit by this too ] > > I'm currently evaluating switching from booting Xen guests with grub > Xen PV (grub-mkimage -O x86_64-xen) to Xen PVH (grub-mkimage -O > i386-xen_pvh). I've noticed that a decompressed guest kernel refuses > to boot under PVH with the following error: > > Loading Linux 5.4.0-52-generic ... > error: invalid magic number. > > That same kernel boots with PV. > > If I use the LZ4-compressed version of that kernel as supplied by > the distribution (Ubuntu 20.04), it works PVH. I therefore can only > conclude that PVH grub doesn't like kernels with no compression. Is > that expected? Can you boot the decompressed kernel on bare metal or in an HVM domain using grub? I'm asking because PVH grub is using the standard i386 kernel loading functions, so I wouldn't expect any differences here compared to bare metal. It might still be that PVH grub is missing some code due to wrong configure parameters, of course. Juergen