Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2368342ybi; Thu, 4 Jul 2019 09:40:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqycMdiC66n0B2bFSX19/YVxrSFy0qpAvBM24x1n+PX8ClhPMPBy0rQEZtj9rla/vjNJ7i7R X-Received: by 2002:a17:90a:bd8c:: with SMTP id z12mr518936pjr.60.1562258433736; Thu, 04 Jul 2019 09:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562258433; cv=none; d=google.com; s=arc-20160816; b=uQBdeP1V8mdJppQ8A+K2yrwMoWvuTngXT1K6mmKW03Adsb8+Pzxt9LBhU2N/HqWGED JUinz9wx4UYu2pTrs7j/D5mm5mdlIoHgM8pmUAgRIiExpGwrjVP+E0VkubgghiGU8+4r SgoTItfzEdUcQqE6LMAL6xeoXMzR/mjVb4/2CvuTZHcDxilC5gYUPmjt6ToPbmaNSt33 iWXrLlDvehLhGsZJSiU+pMRGy8icH6hrjLID2e+etWA8yMafDUpByo5dKZFejJBiQsEG 0v9joTKSpOStwi9rfAUiEDCNa5t0bEs40OmkijNO0ah4j8kfdK72pq8ZxBX95Zbda0ud J8SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=5+6c9J5hsLXAS3y9QhZ2laqXZP49w96VU6nbreUKrFg=; b=RrXg67hpXSQOW2nkm5AV/VhSr5XoP1bVBunH8YY706CrdGXYL3bXoMZCalHf9q9Nw8 7Rn2RpHg1dD8amkb9cEAYoKXPEE33vTz4YGe5fktzXmDqv+YHii/EXplh94fRz7aYhUB D8T0y36dza8cZ7R6mDhjnChhd5qDb+c4M5AIhzc/Afg4YSBBp9VX4oReIurIRBy6pUqJ QlwDAx4iaxu09eQ8pw9Ywz6cbXJdHL2I+8JZI55SYGgEZeuYfPdVeOD+5IRRPPjmRTn9 fbaC5JBwFJgp5C/wu6dAF3HaGqSL+6ZZWfH9apIihCcsdabC55nlvnhYVOEb+WGaJA9x qt5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="K+/LnDb4"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g24si5849434pgj.197.2019.07.04.09.40.18; Thu, 04 Jul 2019 09:40:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="K+/LnDb4"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727267AbfGDQjT (ORCPT + 99 others); Thu, 4 Jul 2019 12:39:19 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:54846 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbfGDQjS (ORCPT ); Thu, 4 Jul 2019 12:39:18 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x64GXtXs024868; Thu, 4 Jul 2019 16:38:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=5+6c9J5hsLXAS3y9QhZ2laqXZP49w96VU6nbreUKrFg=; b=K+/LnDb4B4jkTz2kamodwT13+Opqq+Rwvb16SM+8S9GMvS7u/+iv5YPIPiYnTlzyZn+p lVTUEj9bY2ebxWc5IgAGNXcXekJ38PxBCsCfnEYuaOeWso8qK3Dp3VUVipqVaBrprN0w kmDtB8bPVqs9UDPJDv7m4f6Ftiw+fPqiZlU/hevAFQIxwamdn0Q1YSAZ53sorO/38oqL kiB7VgYSbnI3jpZJWax/5NrI3HGevLDETME80cjx7LgiuHziv2zmCmPPZePS+KDVk9nR IgRX4YKnBXUWlsjATsnTzgGBqjCjOYR4HHP+AaNRR9XPb7ETh2mw9I91oKxbUgZauZb3 Vg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 2te5tbymx7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jul 2019 16:38:45 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x64GX9gl098425; Thu, 4 Jul 2019 16:36:44 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2th5qm49at-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jul 2019 16:36:44 +0000 Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x64GaZkL023461; Thu, 4 Jul 2019 16:36:35 GMT Received: from tomti.i.net-space.pl (/10.175.209.195) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 04 Jul 2019 09:36:35 -0700 From: Daniel Kiper To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org Cc: bp@alien8.de, corbet@lwn.net, dpsmith@apertussolutions.com, eric.snowberg@oracle.com, hpa@zytor.com, kanth.ghatraju@oracle.com, konrad.wilk@oracle.com, mingo@redhat.com, ross.philipson@oracle.com, tglx@linutronix.de Subject: [PATCH v2 0/3] x86/boot: Introduce the kernel_info et consortes Date: Thu, 4 Jul 2019 18:36:09 +0200 Message-Id: <20190704163612.14311-1-daniel.kiper@oracle.com> X-Mailer: git-send-email 2.11.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9307 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=677 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907040210 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9307 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=721 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907040210 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Due to very limited space in the setup_header this patch series introduces new kernel_info struct which will be used to convey information from the kernel to the bootloader. This way the boot protocol can be extended regardless of the setup_header limitations. Additionally, the patch series introduces some convenience features like the setup_indirect struct and the kernel_info.setup_type_max field. Daniel Documentation/x86/boot.rst | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/x86/boot/Makefile | 2 +- arch/x86/boot/compressed/Makefile | 4 +-- arch/x86/boot/compressed/kernel_info.S | 16 ++++++++++ arch/x86/boot/header.S | 3 +- arch/x86/boot/tools/build.c | 5 +++ arch/x86/include/uapi/asm/bootparam.h | 15 ++++++++- 7 files changed, 173 insertions(+), 5 deletions(-) Daniel Kiper (3): x86/boot: Introduce the kernel_info x86/boot: Introduce the setup_indirect x86/boot: Introduce the kernel_info.setup_type_max