OSDN Git Service

x86/pvh: extract only 4 bytes of start address for 32 bit kernels
authorDavid Edmondson <david.edmondson@oracle.com>
Tue, 2 Mar 2021 09:03:15 +0000 (09:03 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 6 Mar 2021 10:41:54 +0000 (11:41 +0100)
commite20e182ea0ab5c16557603f457fe0db445b63726
tree1e737415a5394665b6579fcc0c0c0eef6f2f9995
parent64d70277114b069579c96e6daf83922b9eacc383
x86/pvh: extract only 4 bytes of start address for 32 bit kernels

When loading the PVH start address from a 32 bit ELF note, extract
only the appropriate number of bytes.

Fixes: ab969087da65 ("pvh: Boot uncompressed kernel using direct boot ABI")
Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20210302090315.3031492-3-david.edmondson@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/x86.c