|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [mini-os master] xenbus: drop parameter from get_xenbus()
commit 57031ca91df010375f263638e035e57c81b75f1c
Author: Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Tue Jun 24 14:33:11 2025 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Jun 24 14:33:11 2025 +0200
xenbus: drop parameter from get_xenbus()
The parameter of get_xenbus() is used only when running in PV mode,
and it always has the same value.
Drop the parameter and use start_info_ptr directly in the PV variant
of get_xenbus().
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
---
arch/arm/setup.c | 2 +-
arch/x86/setup.c | 2 +-
include/xenbus.h | 4 ++--
xenbus.c | 13 +++++--------
4 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/arch/arm/setup.c b/arch/arm/setup.c
index 161d137..e918a06 100644
--- a/arch/arm/setup.c
+++ b/arch/arm/setup.c
@@ -41,7 +41,7 @@ void arch_init(void *dtb_pointer, uint32_t physical_offset)
HYPERVISOR_shared_info = map_shared_info();
get_console();
- get_xenbus(NULL);
+ get_xenbus();
gic_init();
diff --git a/arch/x86/setup.c b/arch/x86/setup.c
index 2b314aa..590f51a 100644
--- a/arch/x86/setup.c
+++ b/arch/x86/setup.c
@@ -194,7 +194,7 @@ arch_init(void *par)
/* WARN: don't do printk before here, it uses information from
shared_info. Use xprintk instead. */
get_console();
- get_xenbus(par);
+ get_xenbus();
get_cmdline(par);
/* Grab the shared_info pointer and put it in a safe place. */
diff --git a/include/xenbus.h b/include/xenbus.h
index 542ee45..21da05e 100644
--- a/include/xenbus.h
+++ b/include/xenbus.h
@@ -12,7 +12,7 @@ extern struct xenstore_domain_interface *xenstore_buf;
/* Initialize the XenBus system. */
void init_xenbus(void);
-void get_xenbus(void *p);
+void get_xenbus(void);
#else
#define xenbus_evtchn ~0
#define xenstore_buf NULL
@@ -20,7 +20,7 @@ void get_xenbus(void *p);
static inline void init_xenbus(void)
{
}
-static inline void get_xenbus(void *p)
+static inline void get_xenbus(void)
{
}
#endif
diff --git a/xenbus.c b/xenbus.c
index 43fdebd..8225ed4 100644
--- a/xenbus.c
+++ b/xenbus.c
@@ -74,15 +74,15 @@ uint32_t xenbus_evtchn;
EXPORT_SYMBOL(xenbus_evtchn);
#ifdef CONFIG_PARAVIRT
-void get_xenbus(void *p)
+void get_xenbus(void)
{
- start_info_t *si = p;
+ start_info_t *si = start_info_ptr;
xenbus_evtchn = si->store_evtchn;
xenstore_buf = mfn_to_virt(si->store_mfn);
}
#else
-void get_xenbus(void *p)
+void get_xenbus(void)
{
uint64_t v;
@@ -468,11 +468,8 @@ void resume_xenbus(int canceled)
struct write_req req[2];
struct xsd_sockmsg *rep;
-#ifdef CONFIG_PARAVIRT
- get_xenbus(start_info_ptr);
-#else
- get_xenbus(0);
-#endif
+ get_xenbus();
+
unmask_evtchn(xenbus_evtchn);
if ( !canceled )
--
generated by git-patchbot for /home/xen/git/mini-os.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |