|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/3] x86/xsm: Use the exported bootstrap_map() function
... rather than obtaining it via function pointer.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
CC: Jan Beulich <JBeulich@xxxxxxxx>
CC: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
---
xen/arch/x86/setup.c | 2 +-
xen/include/xsm/xsm.h | 7 ++-----
xen/xsm/xsm_core.c | 9 ++++++---
xen/xsm/xsm_policy.c | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index 141f80f..5c5c643 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -1471,7 +1471,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)
bitmap_fill(module_map, mbi->mods_count);
__clear_bit(0, module_map); /* Dom0 kernel is always first */
- xsm_multiboot_init(module_map, mbi, bootstrap_map);
+ xsm_multiboot_init(module_map, mbi);
microcode_grab_module(module_map, mbi, bootstrap_map);
diff --git a/xen/include/xsm/xsm.h b/xen/include/xsm/xsm.h
index 1406f75..e3912bc 100644
--- a/xen/include/xsm/xsm.h
+++ b/xen/include/xsm/xsm.h
@@ -696,11 +696,9 @@ static inline int xsm_xen_version (xsm_default_t def,
uint32_t op)
#ifdef CONFIG_MULTIBOOT
extern int xsm_multiboot_init(unsigned long *module_map,
- const multiboot_info_t *mbi,
- void *(*bootstrap_map)(const module_t *));
+ const multiboot_info_t *mbi);
extern int xsm_multiboot_policy_init(unsigned long *module_map,
const multiboot_info_t *mbi,
- void *(*bootstrap_map)(const module_t *),
void **policy_buffer,
size_t *policy_size);
#endif
@@ -735,8 +733,7 @@ extern const unsigned int xsm_init_policy_size;
#ifdef CONFIG_MULTIBOOT
static inline int xsm_multiboot_init (unsigned long *module_map,
- const multiboot_info_t *mbi,
- void *(*bootstrap_map)(const module_t *))
+ const multiboot_info_t *mbi)
{
return 0;
}
diff --git a/xen/xsm/xsm_core.c b/xen/xsm/xsm_core.c
index 08994ee..949dfcf 100644
--- a/xen/xsm/xsm_core.c
+++ b/xen/xsm/xsm_core.c
@@ -19,6 +19,10 @@
#ifdef CONFIG_XSM
+#ifdef CONFIG_MULTIBOOT
+#include <asm/setup.h>
+#endif
+
#ifdef CONFIG_HAS_DEVICE_TREE
#include <asm/setup.h>
#endif
@@ -60,8 +64,7 @@ static int __init xsm_core_init(const void *policy_buffer,
size_t policy_size)
#ifdef CONFIG_MULTIBOOT
int __init xsm_multiboot_init(unsigned long *module_map,
- const multiboot_info_t *mbi,
- void *(*bootstrap_map)(const module_t *))
+ const multiboot_info_t *mbi)
{
int ret = 0;
void *policy_buffer = NULL;
@@ -71,7 +74,7 @@ int __init xsm_multiboot_init(unsigned long *module_map,
if ( XSM_MAGIC )
{
- ret = xsm_multiboot_policy_init(module_map, mbi, bootstrap_map,
+ ret = xsm_multiboot_policy_init(module_map, mbi,
&policy_buffer, &policy_size);
if ( ret )
{
diff --git a/xen/xsm/xsm_policy.c b/xen/xsm/xsm_policy.c
index 16e70f0..33ab377 100644
--- a/xen/xsm/xsm_policy.c
+++ b/xen/xsm/xsm_policy.c
@@ -21,6 +21,7 @@
#include <xsm/xsm.h>
#ifdef CONFIG_MULTIBOOT
#include <xen/multiboot.h>
+#include <asm/setup.h>
#endif
#include <xen/bitops.h>
#ifdef CONFIG_HAS_DEVICE_TREE
@@ -31,7 +32,6 @@
#ifdef CONFIG_MULTIBOOT
int __init xsm_multiboot_policy_init(unsigned long *module_map,
const multiboot_info_t *mbi,
- void *(*bootstrap_map)(const module_t *),
void **policy_buffer,
size_t *policy_size)
{
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |