From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by mx.groups.io with SMTP id smtpd.web11.20303.1629700410923268624 for ; Sun, 22 Aug 2021 23:33:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@google.com header.s=20161025 header.b=FD8ChiDT; spf=pass (domain: flex--chengchieh.bounces.google.com, ip: 209.85.219.201, mailfrom: 3ouejyqokbvg274d6278476ee6b4.2ec34l4b43as.6hekfi.8e@flex--chengchieh.bounces.google.com) Received: by mail-yb1-f201.google.com with SMTP id i32-20020a25b2200000b02904ed415d9d84so15650931ybj.0 for ; Sun, 22 Aug 2021 23:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=jBKRsbxCbfid7UMECLxOE3CKV2GX/WQJIDQqp8TFbJU=; b=FD8ChiDTlzZtPGtbZ/W15A+i0lOgkIjKMKq2tZFFSww9qDbnvW8mH/3O1I3wcfcmvW Yq/LP6pH2cvKHaOcYnIn6OFlrdBZGVM+jxEIXyMPuAtV3P8NbKyb1pI7BtoM32PyPMl7 5MZN7vHloF3yh7IT2GzQ4SIkcpz8fDjy6KCYt7/Tx4zcbuy7ahEP46KSQrALNo4lAmqP 0qKBv/tqGoSbk64kUJub//1NJ0kMa0b3FIwMAayv2lVIQxM5k24/yS4fHgsMmHM3sj3v 8M/QI7VYjynX4EMb8RGW+sADrOSxLVFQzCocGO90SBCyTRJYhZDVk4DjZg+FpUV2om6f S0BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=jBKRsbxCbfid7UMECLxOE3CKV2GX/WQJIDQqp8TFbJU=; b=rUg7o6QLfrlduobVRwTL17iYy6b4+do9MwB2y357Ty4+JYZsp47al9kYenLXpxBwVN R03uks2Xwp6DMod3DZ2TtiOGfTsgunT2+xbVFtD8d9TpzVq/8Ca9odA/td+44PPhKyBW EV1u6GISMzUl+2HfrWvqDSg2oEsa6Ejg/zBSI2zM7FgP9LtnWqxhNGEcjyj5K/Xsksii 3sjsOZS/kUEMWIxN4U+ldkkV+ge4TrkeOo+Xi+Qj1zojkltXZ2VyBCoPPwYae7xSRlPo 8j3fhBI88V+gLCSdAsJ/zsxnW5aHwYT5dLqwGPXhG/H4wnxAQ4Fa41xauUXYCK8bYw83 AxTg== X-Gm-Message-State: AOAM530bzZkpd2c+W0WV0CZEvb+QSOkcgZnSatJSERPg7gbOVbn6SWLV Gjy231Gq87c1Jla4mgVAOkYuV+1qUWerCm56MSzDD3CrgjRMav9SSJwGVXIphU2Jvguzq6pJ2HO G/eQDpdpl4nUJofuuLPPoLodyAknfJs3tdvNLQn4j+bMtb4XXf13nN7nIfQ/v8JQdJ0y0NQ== X-Google-Smtp-Source: ABdhPJyMwIyerebSzDrPAT68qLbCNP+nGORbc52rqosyShHsr7IcFm5ZT45EpZ3xZxIc01D11moRaNOxaDxCwabi X-Received: from ratho96.c.googlers.com ([fda3:e722:ac3:cc00:3:22c1:c0a8:aae]) (user=chengchieh job=sendgmr) by 2002:a25:c305:: with SMTP id t5mr41621902ybf.410.1629700409931; Sun, 22 Aug 2021 23:33:29 -0700 (PDT) Date: Mon, 23 Aug 2021 06:33:08 +0000 Message-Id: <20210823063312.2323801-1-chengchieh@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.rc2.250.ged5fa647cd-goog Subject: [PATCH v3 0/4] UefiPayloadPkg: LinuxBoot Support in UefiPayload From: Cheng-Chieh Huang To: devel@edk2.groups.io Cc: Cheng-Chieh Huang Content-Type: text/plain; charset="UTF-8" These are necessary patches to Support LinuxBoot in UefiPayload. With these paches, we can boot to ESXi and Windows from a linux in QEMU. Third parse: address formating comments. LinuxBoot README: https://github.com/linuxboot/edk2/blob/uefipayload/UefiPayloadPkg/README.md v3 PR to tianocore: https://github.com/tianocore/edk2/pull/1873 Cheng-Chieh Huang (4): UefiPayloadPkg: Add LINUXBOOT payload target UefiPayloadPkg: Use legacy timer in Linuxboot payload UefiPayloadPkg: Update maximum logic processor to 256 UefiPayloadPkg: Reserve Payload config in runtime services data UefiPayloadPkg/UefiPayloadPkg.dsc | 24 ++- UefiPayloadPkg/UefiPayloadPkg.fdf | 5 + .../Library/LbParseLib/LbParseLib.inf | 39 ++++ UefiPayloadPkg/Library/LbParseLib/Linuxboot.h | 47 +++++ .../Library/LbParseLib/LbParseLib.c | 187 ++++++++++++++++++ .../PciHostBridgeLib/PciHostBridgeSupport.c | 6 +- .../UefiPayloadEntry/UefiPayloadEntry.c | 4 + 7 files changed, 304 insertions(+), 8 deletions(-) create mode 100644 UefiPayloadPkg/Library/LbParseLib/LbParseLib.inf create mode 100644 UefiPayloadPkg/Library/LbParseLib/Linuxboot.h create mode 100644 UefiPayloadPkg/Library/LbParseLib/LbParseLib.c -- 2.33.0.rc2.250.ged5fa647cd-goog