efi: use directmap to access runtime services table
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Fri, 25 Oct 2019 15:50:31 +0000 (17:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Oct 2019 15:50:31 +0000 (17:50 +0200)
commitdfcccc663157c638d9778fa3ada9859f968fb240
treed99826c6370c8f629d5cb42b44d4d20705469f18
parent49450415d6ba646c34d62605457cff36bc4b52ed
efi: use directmap to access runtime services table

Do not require switching page tables to access (static) information in
the runtime services table itself, use directmap for this. This allows
exiting early from XEN_EFI_query_capsule_capabilities,
XEN_EFI_update_capsule and XEN_EFI_query_variable_info (in case of not
supported call) without all the impact of page table switch.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/common/efi/boot.c
xen/common/efi/runtime.c