[PATCH v3 0/2] libelf: small fixes for PVH

Roger Pau Monne posted 2 patches 2 years, 11 months ago
Test gitlab-ci passed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20210520123012.89855-1-roger.pau@citrix.com
tools/fuzz/libelf/libelf-fuzzer.c   |  3 +-
tools/libs/guest/xg_dom_elfloader.c |  6 ++--
tools/libs/guest/xg_dom_hvmloader.c |  2 +-
xen/arch/x86/hvm/dom0_build.c       |  2 +-
xen/arch/x86/pv/dom0_build.c        |  2 +-
xen/common/libelf/libelf-dominfo.c  | 49 +++++++++++++++++------------
xen/include/xen/libelf.h            |  2 +-
7 files changed, 39 insertions(+), 27 deletions(-)
[PATCH v3 0/2] libelf: small fixes for PVH
Posted by Roger Pau Monne 2 years, 11 months ago
Hello,

A couple of small fixes for PVH loading. The first one is likely not
very relevant, since PVH couldn't be booted anyway with the data in the
__xen_guest section, so it's mostly a cleanup.

Second patch fixes the checks for PVH loading, as in that case physical
addresses must always be used to perform the bound calculations.

Thanks, Roger.

Roger Pau Monne (2):
  libelf: don't attempt to parse __xen_guest for PVH
  libelf: improve PVH elfnote parsing

 tools/fuzz/libelf/libelf-fuzzer.c   |  3 +-
 tools/libs/guest/xg_dom_elfloader.c |  6 ++--
 tools/libs/guest/xg_dom_hvmloader.c |  2 +-
 xen/arch/x86/hvm/dom0_build.c       |  2 +-
 xen/arch/x86/pv/dom0_build.c        |  2 +-
 xen/common/libelf/libelf-dominfo.c  | 49 +++++++++++++++++------------
 xen/include/xen/libelf.h            |  2 +-
 7 files changed, 39 insertions(+), 27 deletions(-)

-- 
2.31.1