OSDN Git Service

xen/store: do not store local values in xen_start_info
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 9 May 2018 10:21:28 +0000 (11:21 +0100)
committerJuergen Gross <jgross@suse.com>
Thu, 17 May 2018 06:39:13 +0000 (08:39 +0200)
There's no need to store the xenstore page or event channel in
xen_start_info if they are locally initialized.

This also fixes PVH local xenstore initialization due to the lack of
xen_start_info in that case.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xenbus/xenbus_probe.c

index ec9eb4f..f208883 100644 (file)
@@ -710,7 +710,7 @@ static int __init xenstored_local_init(void)
        if (!page)
                goto out_err;
 
-       xen_store_gfn = xen_start_info->store_mfn = virt_to_gfn((void *)page);
+       xen_store_gfn = virt_to_gfn((void *)page);
 
        /* Next allocate a local port which xenstored can bind to */
        alloc_unbound.dom        = DOMID_SELF;
@@ -722,8 +722,7 @@ static int __init xenstored_local_init(void)
                goto out_err;
 
        BUG_ON(err);
-       xen_store_evtchn = xen_start_info->store_evtchn =
-               alloc_unbound.port;
+       xen_store_evtchn = alloc_unbound.port;
 
        return 0;