WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] Re: PATCH: vcpu hotplug

To: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Subject: [Xen-ia64-devel] Re: PATCH: vcpu hotplug
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Wed, 31 May 2006 20:37:07 -0600
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 31 May 2006 19:37:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200605311110.00098.Tristan.Gingold@xxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: OSLO R&D
References: <200605311110.00098.Tristan.Gingold@xxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 2006-05-31 at 11:10 +0200, Tristan Gingold wrote:
> @@ -281,6 +282,9 @@ int arch_domain_create(struct domain *d)
>         if ((d->arch.mm.pgd = pgd_alloc(&d->arch.mm)) == NULL)
>             goto fail_nomem;
>  
> +       d->shared_info->arch.flags = (d == dom0) ?
> +               (SIF_INITDOMAIN|SIF_PRIVILEGED) : 0;
> + 

Hi Tristan,

   This seems to be the chunk that's giving me problems...

start_kernel()
    dom0 = domain_create(0, 0);

    domain_create()
        arch_domain_create()
            d->shared_info->arch.flags = (d == dom0) ? ...

Oops, can't test == dom0 yet.  My dom0 was trying to boot w/ flags ==
0x0.  If I hard code the above test, I can at least boot dom0.  Thanks,

        Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>