ia64/xen-unstable

changeset 11187:45f3c127069d

[HVM] Avoid accessing start_info from xenbus as far as possible, since
HVM domains do things slightly differently.
Signed-off-by: Steven Smith <ssmith@xensource.com>
author kfraser@localhost.localdomain
date Thu Aug 17 16:22:08 2006 +0100 (2006-08-17)
parents b2f077bbca89
children 0882db2677b0 487fe5006064
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Thu Aug 17 16:21:08 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Thu Aug 17 16:22:08 2006 +0100
     1.3 @@ -962,7 +962,7 @@ static int xsd_port_read(char *page, cha
     1.4  
     1.5  static int __init xenbus_probe_init(void)
     1.6  {
     1.7 -	int err = 0, dom0;
     1.8 +	int err = 0;
     1.9  	unsigned long page = 0;
    1.10  
    1.11  	DPRINTK("");
    1.12 @@ -977,9 +977,7 @@ static int __init xenbus_probe_init(void
    1.13  	/*
    1.14  	 * Domain0 doesn't have a store_evtchn or store_mfn yet.
    1.15  	 */
    1.16 -	dom0 = (xen_start_info->store_evtchn == 0);
    1.17 -
    1.18 -	if (dom0) {
    1.19 +	if (is_initial_xendomain()) {
    1.20  		struct evtchn_alloc_unbound alloc_unbound;
    1.21  
    1.22  		/* Allocate page. */
    1.23 @@ -1037,7 +1035,7 @@ static int __init xenbus_probe_init(void
    1.24  	device_register(&xenbus_frontend.dev);
    1.25  	device_register(&xenbus_backend.dev);
    1.26  
    1.27 -	if (!dom0)
    1.28 +	if (!is_initial_xendomain())
    1.29  		xenbus_probe(NULL);
    1.30  
    1.31  	return 0;