Blame SOURCES/kvm-dump-Rename-write_elf_loads-to-write_elf_phdr_loads.patch

62547e
From 04d4947a22fe3192384ff486d0a979d799ded98e Mon Sep 17 00:00:00 2001
62547e
From: Janosch Frank <frankja@linux.ibm.com>
62547e
Date: Thu, 11 Aug 2022 12:10:55 +0000
62547e
Subject: [PATCH 23/42] dump: Rename write_elf_loads to write_elf_phdr_loads
62547e
MIME-Version: 1.0
62547e
Content-Type: text/plain; charset=UTF-8
62547e
Content-Transfer-Encoding: 8bit
62547e
62547e
RH-Author: Cédric Le Goater <clg@redhat.com>
62547e
RH-MergeRequest: 226: s390: Enhanced Interpretation for PCI Functions and Secure Execution guest dump
62547e
RH-Bugzilla: 1664378 2043909
62547e
RH-Acked-by: Thomas Huth <thuth@redhat.com>
62547e
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
62547e
RH-Acked-by: Jon Maloy <jmaloy@redhat.com>
62547e
RH-Commit: [23/41] 18e3ef70b97c525b7c43cf12143204bdb1060e4f
62547e
62547e
Let's make it a bit clearer that we write the program headers of the
62547e
PT_LOAD type.
62547e
62547e
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
62547e
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
62547e
Reviewed-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
62547e
Reviewed-by: Steffen Eiden <seiden@ibm.linux.com>
62547e
Message-Id: <20220811121111.9878-3-frankja@linux.ibm.com>
62547e
(cherry picked from commit afae6056ea79e2d89fd90867de3a01732eae724f)
62547e
Signed-off-by: Cédric Le Goater <clg@redhat.com>
62547e
---
62547e
 dump/dump.c | 6 +++---
62547e
 1 file changed, 3 insertions(+), 3 deletions(-)
62547e
62547e
diff --git a/dump/dump.c b/dump/dump.c
62547e
index a451abc590..fa787f379f 100644
62547e
--- a/dump/dump.c
62547e
+++ b/dump/dump.c
62547e
@@ -491,7 +491,7 @@ static void get_offset_range(hwaddr phys_addr,
62547e
     }
62547e
 }
62547e
 
62547e
-static void write_elf_loads(DumpState *s, Error **errp)
62547e
+static void write_elf_phdr_loads(DumpState *s, Error **errp)
62547e
 {
62547e
     ERRP_GUARD();
62547e
     hwaddr offset, filesz;
62547e
@@ -574,8 +574,8 @@ static void dump_begin(DumpState *s, Error **errp)
62547e
         return;
62547e
     }
62547e
 
62547e
-    /* write all PT_LOAD to vmcore */
62547e
-    write_elf_loads(s, errp);
62547e
+    /* write all PT_LOADs to vmcore */
62547e
+    write_elf_phdr_loads(s, errp);
62547e
     if (*errp) {
62547e
         return;
62547e
     }
62547e
-- 
62547e
2.37.3
62547e