diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2018-05-09 06:21:28 -0400 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2018-05-17 02:39:13 -0400 |
commit | 515e6541f54e90513fe4cd91f69d737a891f1c79 (patch) | |
tree | e43ef88bf20019effb644b3c1a8705f1631fd949 /drivers/xen | |
parent | 24a94b3c1268635d64333ce58e7cc31ee5932125 (diff) |
xen/store: do not store local values in xen_start_info
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>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index ec9eb4fba59c..f2088838f690 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c | |||
@@ -710,7 +710,7 @@ static int __init xenstored_local_init(void) | |||
710 | if (!page) | 710 | if (!page) |
711 | goto out_err; | 711 | goto out_err; |
712 | 712 | ||
713 | xen_store_gfn = xen_start_info->store_mfn = virt_to_gfn((void *)page); | 713 | xen_store_gfn = virt_to_gfn((void *)page); |
714 | 714 | ||
715 | /* Next allocate a local port which xenstored can bind to */ | 715 | /* Next allocate a local port which xenstored can bind to */ |
716 | alloc_unbound.dom = DOMID_SELF; | 716 | alloc_unbound.dom = DOMID_SELF; |
@@ -722,8 +722,7 @@ static int __init xenstored_local_init(void) | |||
722 | goto out_err; | 722 | goto out_err; |
723 | 723 | ||
724 | BUG_ON(err); | 724 | BUG_ON(err); |
725 | xen_store_evtchn = xen_start_info->store_evtchn = | 725 | xen_store_evtchn = alloc_unbound.port; |
726 | alloc_unbound.port; | ||
727 | 726 | ||
728 | return 0; | 727 | return 0; |
729 | 728 | ||