mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-07 00:59:06 +00:00
xen/efi: Set nonblocking callbacks
[ Upstream commit df359f0d09
]
Other parts of the kernel expect these nonblocking EFI callbacks to
exist and crash when running under Xen. Since the implementations of
xen_efi_set_variable() and xen_efi_query_variable_info() do not take any
locks, use them for the nonblocking callbacks too.
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2f327a23a9
commit
cfb7eab6ca
2 changed files with 4 additions and 0 deletions
|
@ -31,7 +31,9 @@ void __init xen_efi_runtime_setup(void)
|
||||||
efi.get_variable = xen_efi_get_variable;
|
efi.get_variable = xen_efi_get_variable;
|
||||||
efi.get_next_variable = xen_efi_get_next_variable;
|
efi.get_next_variable = xen_efi_get_next_variable;
|
||||||
efi.set_variable = xen_efi_set_variable;
|
efi.set_variable = xen_efi_set_variable;
|
||||||
|
efi.set_variable_nonblocking = xen_efi_set_variable;
|
||||||
efi.query_variable_info = xen_efi_query_variable_info;
|
efi.query_variable_info = xen_efi_query_variable_info;
|
||||||
|
efi.query_variable_info_nonblocking = xen_efi_query_variable_info;
|
||||||
efi.update_capsule = xen_efi_update_capsule;
|
efi.update_capsule = xen_efi_update_capsule;
|
||||||
efi.query_capsule_caps = xen_efi_query_capsule_caps;
|
efi.query_capsule_caps = xen_efi_query_capsule_caps;
|
||||||
efi.get_next_high_mono_count = xen_efi_get_next_high_mono_count;
|
efi.get_next_high_mono_count = xen_efi_get_next_high_mono_count;
|
||||||
|
|
|
@ -77,7 +77,9 @@ static efi_system_table_t __init *xen_efi_probe(void)
|
||||||
efi.get_variable = xen_efi_get_variable;
|
efi.get_variable = xen_efi_get_variable;
|
||||||
efi.get_next_variable = xen_efi_get_next_variable;
|
efi.get_next_variable = xen_efi_get_next_variable;
|
||||||
efi.set_variable = xen_efi_set_variable;
|
efi.set_variable = xen_efi_set_variable;
|
||||||
|
efi.set_variable_nonblocking = xen_efi_set_variable;
|
||||||
efi.query_variable_info = xen_efi_query_variable_info;
|
efi.query_variable_info = xen_efi_query_variable_info;
|
||||||
|
efi.query_variable_info_nonblocking = xen_efi_query_variable_info;
|
||||||
efi.update_capsule = xen_efi_update_capsule;
|
efi.update_capsule = xen_efi_update_capsule;
|
||||||
efi.query_capsule_caps = xen_efi_query_capsule_caps;
|
efi.query_capsule_caps = xen_efi_query_capsule_caps;
|
||||||
efi.get_next_high_mono_count = xen_efi_get_next_high_mono_count;
|
efi.get_next_high_mono_count = xen_efi_get_next_high_mono_count;
|
||||||
|
|
Loading…
Reference in a new issue