[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v4 08/12] tools/xenstored: Remove stubdom special casing
On 25.07.25 04:28, Jason Andryuk wrote: posix.c and minios.c implement the same named functions serving slightly different purposes. For xenbus_map() posix.c maps the local /dev/xen/xsd_kva minios.c maps dom0 via grant and there is open coding for stub_domid in map_interface. Change xenbus_map() to map the local domain's interface. The default grant table mapping is performed otherwise. Signed-off-by: Jason Andryuk <jason.andryuk@xxxxxxx> --- tools/xenstored/domain.c | 5 ----- tools/xenstored/minios.c | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/xenstored/domain.c b/tools/xenstored/domain.c index e9e45ed8e8..ac4ac72f99 100644 --- a/tools/xenstored/domain.c +++ b/tools/xenstored/domain.c @@ -506,11 +506,6 @@ static void *map_interface(domid_t domid) if (domid == xenbus_master_domid()) return xenbus_map();-#ifdef __MINIOS__- if (domid == stub_domid) - return xenstore_buf; -#endif - return xengnttab_map_grant_ref(*xgt_handle, domid, GNTTAB_RESERVED_XENSTORE, PROT_READ|PROT_WRITE); diff --git a/tools/xenstored/minios.c b/tools/xenstored/minios.c index a229954cf4..34f655f20a 100644 --- a/tools/xenstored/minios.c +++ b/tools/xenstored/minios.c @@ -48,13 +48,11 @@ evtchn_port_t get_xenbus_evtchn(void)void *xenbus_map(void){ - return xengnttab_map_grant_ref(*xgt_handle, xenbus_master_domid(), - GNTTAB_RESERVED_XENSTORE, PROT_READ|PROT_WRITE); + return xenstore_buf; } I think this is correct only after patch 10. In a Xenstore-stubdom you will swap buffers of dom0 and the stubdom with this patch. Juergen Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature.asc
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |