From patchwork Sun Sep 29 18:06:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 1990639 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=C2eoglBU; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XGsdT1TnGz1xtM for ; Mon, 30 Sep 2024 04:08:25 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suyKc-0003Xd-44; Sun, 29 Sep 2024 14:07:42 -0400 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 1suyKV-0003WL-Jq for qemu-devel@nongnu.org; Sun, 29 Sep 2024 14:07:37 -0400 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1suyKS-0008U7-Ql for qemu-devel@nongnu.org; Sun, 29 Sep 2024 14:07:34 -0400 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id EE5E75C1188; Sun, 29 Sep 2024 18:07:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B88D7C4CEC5; Sun, 29 Sep 2024 18:07:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727633243; bh=WNDDcwiuv4gSzeEIfI1rj90jQNxFFr3Yoykr3N3sSso=; h=From:To:Cc:Subject:Date:From; b=C2eoglBU5IO8s2JENaFxUSpXW2yK8Cq8Rt1qzHur5raW87nBFXRCGMr302JjtSima 9nqNzTr/UfrHaonSIrGTEApFHDO55EMucEG2cEKgrehCS2wdOCB4wuSZHn2Fbos8rS YfbRlRhxtMwbhVmAJhNW1xqBpwNz5N5bfv3u8N7OjJu329nfBemYYP9C1RYulBuVkX 2+PAu093lo3Vgirrxp7lbQwptHiHVrBdFk+T2uFkVZ4gGuUfE/9BXBIzV879meYroQ hIsxEQTAXzW267KTpwzSr7BBK8UEUS4SQrBx7yd4KkQIwqGkEjZFedlxUZscqz1CL8 96MrdXnJg08EQ== From: Ard Biesheuvel To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, Ard Biesheuvel Subject: [PATCH v2 0/2] Fix PVH entrypoint parsing Date: Sun, 29 Sep 2024 20:06:56 +0200 Message-Id: <20240929180659.3598-1-ardb@kernel.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Received-SPF: pass client-ip=2604:1380:4641:c500::1; envelope-from=ardb@kernel.org; helo=dfw.source.kernel.org X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.095, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@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-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Fix the handling of the ELF note that describes the PVH entrypoint v2: fix broken ELF note handling on big endian hosts Ard Biesheuvel (2): hw/elf_ops: Implement missing endian swabbing for ELF notes hw/x86: Always treat the PVH entrypoint as a 32-bit LE field hw/i386/x86-common.c | 7 ++----- include/hw/elf_ops.h.inc | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 7 deletions(-)