Received: by 2002:a17:504:664e:b0:1be9:327d:8ee3 with SMTP id l14csp9847098njk; Thu, 2 Jan 2025 14:48:04 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVw1UulobvzqI4sF4WiXPxzej7XOtFIWe8Pc3ckdYTJbu09pjRpT9TwVuv1Y/X4wC+C6r8tWP89OzkbVg==@linaro.org X-Google-Smtp-Source: AGHT+IFSIKk4EjZu/iNH5dT3NHBsGHzWIR+WSqtDpzOLGkyC/uHvXJhO5G3AQ7pCZ6IFsHi3dnhw X-Received: by 2002:a05:6214:2b0e:b0:6d8:9677:fbe4 with SMTP id 6a1803df08f44-6dd2331f2f8mr910586236d6.9.1735858083824; Thu, 02 Jan 2025 14:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735858083; cv=none; d=google.com; s=arc-20240605; b=PFMyqrfjRpmCmZ3uDwNSv0LdYVYKpwQpzpNSsgOWDLnOmnfAntYKfoHFq8o8Rmadrn nPhdQf/B3PlCzty6oxY35HjVHxuPtJ41VRjDt45iDm8hapoI+oQVHlSu3RhDdm6rUqMS 1ZpxcDPwPOCBYY7xM5LvrKORKrBB5r3qBIAKXDTb9U79+RbzYefxHhEfVfAw8AK2jDlY 0VkJRyxV/7R/fRUgmT6i1KQ/kxaNyLtjJXkPmTCom5VmHZI+vu7edN57Wt662Rd4GWsx m96RoIjcL2qrPLFCmW93FmW3NuPa8b2iBYefynbErp5NA9x00vmqoAb/DoMwgjoxmv2R 2xcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:content-transfer-encoding :mime-version:message-id:date:subject:from:feedback-id :dkim-signature:dkim-signature; bh=aOY9g5jXdu9zzShoF+aNqJo7EJnPSCrSF3E04R/CtUA=; fh=3+jgFa+CdzwNtEqxLk9M7vUVk7YD6iYJtQDI8zvV7RU=; b=ddGeALUxnR39wbdbCNKkVbL/bBZNu7SVi5atU8nhF6Op23UI2cgJwfOiJ0OeZz+S9I itXUD+j8Aow/Nr78fWRssiPHex9cdRR8gA17MSJ8Pr7xzTmqL2wvOtWwzE/vc2iiDsaw jr2HCNe7fTKoR/dTVpPrQqmTqopARh+qxTKIoaLHcrppR0xVDHeVTBy4K3E8dLgujqiz kSNRk/KJVWX1dJyekWqchs5EMq0t+ncQL1yvFxJzSwZVKBc9F7JGn6wCtP+2WtTi3FnO 1j89vv5wKjMaU79+XEXUheDg7ehf/qNr0xYMSSQcj6fON8hGxv3Fyc4ltTVOd0TIzTXl NYFw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm3 header.b=VO323dKr; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=St1LqHmf; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-46a3eb99114si378744981cf.311.2025.01.02.14.48.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Jan 2025 14:48:03 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm3 header.b=VO323dKr; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=St1LqHmf; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTTye-0007UP-CP; Thu, 02 Jan 2025 17:47:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTTyY-0007OH-9J; Thu, 02 Jan 2025 17:47:38 -0500 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTTyW-00048d-4S; Thu, 02 Jan 2025 17:47:33 -0500 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 12502138021C; Thu, 2 Jan 2025 17:47:29 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Thu, 02 Jan 2025 17:47:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm3; t=1735858049; x=1735944449; bh=aO Y9g5jXdu9zzShoF+aNqJo7EJnPSCrSF3E04R/CtUA=; b=VO323dKrSdAoiLph0y mrjAI/plr/FUNS5hBB63iFzpPJXO2W+PuHzPGItEW8TNpmkNEujHIYR0kCHe5Fsy jxNHyyJLa/qVoqruHfevA15WTDVVNPxELr8E7XxDctwbyI3A/UB6FV8xRcfCJQPu PUB50KtoS1ypV1xAZ8HMbC2bC/tJ8ZEaqBFuB3jaIP6Aylov94zoR4JbybSsMoaQ CCkYTBViVaMvN/v3Z2xHRlATjTwOkLZm0Uiyh+q1LZ2RHfJwjyv5GFJVxHWFz/3i adP5JgdM0urKGEFgm2xLpm6ffpxbe+5oFyloNRoTJSJg12TtBEO9SPkJf/RZo+ht Wikg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1735858049; x=1735944449; bh=aOY9g5jXdu9zzShoF+aNqJo7EJnP SCrSF3E04R/CtUA=; b=St1LqHmfgWk/ADDSgSyQu7LwZA2cpfHRqBdS9+9wtR51 0BZzuTaicrPNbqu+qo4OD48j0R0zK1S50RUcB3QxEGo+wPnMPpNDbSX44Rds1syF utlQ99vBI1sK3GZ8eFS+e9FiA0ICwfQ/uJuWxNOUT7DTO0NrdrrK4sosJa+DJ2gQ 4AgfLNJFpT9MajWTHwSP0ng+yUypee40sgEvcADHqSrvPlsaKicAemSUJwpXOPpr +DAkGZhl2cyrceg4x5ZXfvlSfliDYkTsVJ06mkO/VXWHjHfHIqL0ocnpGrH38TY4 tArHIetZD5hu8waF6olFmSfq1jBDswsXwtvPw/1/cg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeffedgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecu hfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgoh grthdrtghomheqnecuggftrfgrthhtvghrnhepgfevffejteegjeeflefgkeetleekhfeu gfegvdeuueejkeejteekkedvfffffedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgr gihunhdrhigrnhhgsehflhihghhorghtrdgtohhmpdhnsggprhgtphhtthhopeejpdhmoh guvgepshhmthhpohhuthdprhgtphhtthhopehrihgthhgrrhgurdhhvghnuggvrhhsohhn sehlihhnrghrohdrohhrghdprhgtphhtthhopehgrghoshhonhhgsehlohhonhhgshhonh drtghnpdhrtghpthhtohepqhgvmhhuqdguvghvvghlsehnohhnghhnuhdrohhrghdprhgt phhtthhopehpvghtvghrrdhmrgihuggvlhhlsehlihhnrghrohdrohhrghdprhgtphhtth hopehmrghosghisghosehlohhonhhgshhonhdrtghnpdhrtghpthhtohepjhhirgiguhhn rdihrghnghesfhhlhihgohgrthdrtghomhdprhgtphhtthhopehqvghmuhdqrghrmhesnh honhhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Jan 2025 17:47:27 -0500 (EST) From: Jiaxun Yang Subject: [PATCH v3 0/2] hw/loongarch/boot: Support Linux raw boot image Date: Thu, 02 Jan 2025 22:47:20 +0000 Message-Id: <20250102-la-direct-kernel-boot-v3-0-40dbc45d633a@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAHgXd2cC/3XNywqDMBCF4VeRrDvF3Lx01fcoXcQ4aqg1JQmhI r57o1BoFy7/A/PNQjw6g55csoU4jMYbO6Xgp4zoQU09gmlTE5YzQRljMCpojUMd4IFuwhEaawN oWVesECXNsSTp9uWwM+/dvd1TD8YH6+b9TaTb+hX5gRgpUFBlXdeyrRoq8dqNc29VOGv7JJsZ2 a8jjhyWHI4V54WWQhf5v7Ou6wdc+4/NBAEAAA== X-Change-ID: 20241222-la-direct-kernel-boot-c598264710e7 To: qemu-devel@nongnu.org Cc: Song Gao , Bibo Mao , Richard Henderson , Peter Maydell , qemu-arm@nongnu.org, Jiaxun Yang X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=973; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=CMfSb3UmwYSdpeH/UrrBYQfSLrMR6+LctM7LDapLWpo=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhvRy8fq5bVrvrJ42L79qGf2epS19xuLOKbXT39x6WLBoW qan5KyIjlIWBjEuBlkxRZYQAaW+DY0XF1x/kPUHZg4rE8gQBi5OAZjI3M+MDPsE7BaZFCZVdBrF hZ9d9nFXnu65bpc815Jvlg/v/tvxm4Hhv9OeFc9tExq6w38+eDx53Rrf9et+7Pq9l1k5ZNJ8y4C 0r2wA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Received-SPF: pass client-ip=103.168.172.144; envelope-from=jiaxun.yang@flygoat.com; helo=fout-a1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: /wOP/DtUVgKi Signed-off-by: Jiaxun Yang --- Changes in v3: - Added PATCH 1 (Richard) - Link to v2: https://lore.kernel.org/r/20241224-la-direct-kernel-boot-v2-1-3e8336c54c60@flygoat.com Changes in v2: - Use extract API for getting bit fields (philmd) - Mimic arm's load_aarch64_image to handle vmlinuz.efi - Link to v1: https://lore.kernel.org/r/20241223-la-direct-kernel-boot-v1-1-a79995d8b15e@flygoat.com --- Jiaxun Yang (2): hw/core/loader: Use ssize_t for efi zboot unpacker hw/loongarch/boot: Support Linux raw boot image hw/arm/boot.c | 2 +- hw/core/loader.c | 4 ++-- hw/loongarch/boot.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++ include/hw/loader.h | 2 +- 4 files changed, 73 insertions(+), 4 deletions(-) --- base-commit: c69612063e1844b76ac01e3a781b979548c3585c change-id: 20241222-la-direct-kernel-boot-c598264710e7 Best regards, -- Jiaxun Yang