OSDN Git Service

xen/pvh: correctly setup the PV EFI interface for dom0
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 23 Apr 2019 13:04:16 +0000 (15:04 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 25 Apr 2019 14:36:25 +0000 (10:36 -0400)
commit72813bfbf0276a97c82af038efb5f02dcdd9e310
treeb194c741f8f0a7af35f07e254f408f60032f024f
parentc9f804d64bb93c8dbf957df1d7e9de11380e522d
xen/pvh: correctly setup the PV EFI interface for dom0

This involves initializing the boot params EFI related fields and the
efi global variable.

Without this fix a PVH dom0 doesn't detect when booted from EFI, and
thus doesn't support accessing any of the EFI related data.

Reported-by: PGNet Dev <pgnet.dev@gmail.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: stable@vger.kernel.org # 4.19+
arch/x86/platform/pvh/enlighten.c
arch/x86/xen/efi.c
arch/x86/xen/enlighten_pv.c
arch/x86/xen/enlighten_pvh.c
arch/x86/xen/xen-ops.h