[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [HVM] Avoid accessing start_info from xenbus as far as possible, since
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Node ID 45f3c127069dbaac314d12178d061fd072f30632 # Parent b2f077bbca89b1ea942ac7566c51ee3e2bf422fe [HVM] Avoid accessing start_info from xenbus as far as possible, since HVM domains do things slightly differently. Signed-off-by: Steven Smith <ssmith@xxxxxxxxxxxxx> --- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff -r b2f077bbca89 -r 45f3c127069d linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Thu Aug 17 16:21:08 2006 +0100 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Thu Aug 17 16:22:08 2006 +0100 @@ -962,7 +962,7 @@ static int xsd_port_read(char *page, cha static int __init xenbus_probe_init(void) { - int err = 0, dom0; + int err = 0; unsigned long page = 0; DPRINTK(""); @@ -977,9 +977,7 @@ static int __init xenbus_probe_init(void /* * Domain0 doesn't have a store_evtchn or store_mfn yet. */ - dom0 = (xen_start_info->store_evtchn == 0); - - if (dom0) { + if (is_initial_xendomain()) { struct evtchn_alloc_unbound alloc_unbound; /* Allocate page. */ @@ -1037,7 +1035,7 @@ static int __init xenbus_probe_init(void device_register(&xenbus_frontend.dev); device_register(&xenbus_backend.dev); - if (!dom0) + if (!is_initial_xendomain()) xenbus_probe(NULL); return 0; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |