From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham 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 E404BC282C2 for ; Wed, 13 Feb 2019 08:12:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B4E94222BB for ; Wed, 13 Feb 2019 08:12:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390548AbfBMIMj (ORCPT ); Wed, 13 Feb 2019 03:12:39 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:45590 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730382AbfBMIMi (ORCPT ); Wed, 13 Feb 2019 03:12:38 -0500 X-IronPort-AV: E=Sophos;i="5.58,365,1544457600"; d="scan'208";a="54234134" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 13 Feb 2019 16:12:34 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 0DB444C4A88F; Wed, 13 Feb 2019 16:12:33 +0800 (CST) Received: from localhost.localdomain (10.167.225.56) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 13 Feb 2019 16:12:41 +0800 Date: Wed, 13 Feb 2019 16:12:21 +0800 From: Chao Fan To: Ard Biesheuvel CC: Boris Petkov , Guenter Roeck , Thomas Gleixner , Linux Kernel Mailing List , "Kirill A. Shutemov" , Ingo Molnar , "Lendacky, Thomas" , Masahiro Yamada , , Juergen Gross , Ingo Molnar , Kees Cook , the arch/x86 maintainers , "H. Peter Anvin" , , Matt Fleming Subject: Re: [tip:x86/boot] x86/boot: Early parse RSDP and save it in boot_params Message-ID: <20190213081221.GB1624@localhost.localdomain> References: <20190211101011.GA5333@localhost.localdomain> <20190211102426.GA19618@zn.tnic> <20190211104254.GB19618@zn.tnic> <20190211112009.GE19618@zn.tnic> <20190213015429.GA12592@localhost.localdomain> <20190213075825.GA1624@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [10.167.225.56] X-yoursite-MailScanner-ID: 0DB444C4A88F.AC433 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: fanc.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 09:01:27AM +0100, Ard Biesheuvel wrote: >On Wed, 13 Feb 2019 at 08:59, Chao Fan wrote: >> >> On Wed, Feb 13, 2019 at 08:36:12AM +0100, Boris Petkov wrote: >> >On February 13, 2019 2:54:29 AM GMT+01:00, Chao Fan wrote: >> >>Yes, your PATCH really works well. I tried both efi32 OVMF and efi64 >> >>OVMF, all boot. >> > >> >What about the real hardware you are normally testing on? Boots there too? >> >> I testet it in a real EFI machine, it booted, but from command: >> > cat /sys/firmware/efi/fw_platform_size >> 64 >> >> We can see it's a 64-bit EFI firmware, and there is no 32-bit EFI firmware available. >> > >Did you try booting 32-bit OVMF from 64-bit QEMU? Yes, I tried the 32-bit OVMF and rootfs from Guenter. Used as suggested by Boris: qemu-system-x86_64 -kernel /home/cfan/code/tip/arch/x86/boot/bzImage -M q35 -cpu SandyBridge \ -no-reboot -snapshot -smp 1 \ -bios OVMF-pure-efi-32.fd \ -net nic,model=rtl8139,macaddr=12:34:56:78:12:34 \ -usb -device usb-storage,drive=d0 \ -m 1G \ -drive file=rootfs.squashfs,if=none,id=d0,format=raw \ --append 'earlycon=uart8250,io,0x3f8,9600n8 root=/dev/sda rootwait panic=-1 earlyprintk=ttyS0,115200,keep console=ttyS0,115200' \ -monitor pty \ -serial stdio Since I used to watch the log, so I just change the "serial file:log" to "serial stdio". Thanks, Chao Fan > >