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-users

Re: [Xen-users] CPUS, cores and threads inside domU

To: "Igor Chubin" <igor@xxxxxxx>
Subject: Re: [Xen-users] CPUS, cores and threads inside domU
From: "Antoine Benkemoun" <antoine.benkemoun@xxxxxx>
Date: Mon, 15 Sep 2008 11:50:48 +0200
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 15 Sep 2008 02:51:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=F76itDy3YEOWadIpB3M3ypvIKgMjWLPG8L4KGz7KHto=; b=qO5gmDegFQY25DiIVcxR34cEL/FZai+dv0gNh2fhGLSQ4XTm2H0hXBGMZym87YKaUu GDLYnHCZJBNcWOenZ6E8wOBcOMWgBuGvKcaZCdP5KmuG1xmibH53C/lujuVALG8cHRAG Uu6jX//prFbJuCu+A1D9d0td5TZOuDrT+Hvdc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=T+cCF0hc74r2XvfC00jXdqlw4gBFTccvJYDbyyzXcO3VSnBPlVl0Q7zuzy4phEqNG3 rmXznd2wZo99AloebuV6fuRvUnwFyXsH63GgvpKMztZ/i7qM+0ubpxS+Eci/SS09gpFE HjCXIBtslwZuNGMcJJR98A6wtBWQ3Fy3ILRGo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080915094735.GH17904@xxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20080913083804.GC17904@xxxxxxx> <fc1cbedb0809150011q64f9904fib596c7c8816452ea@xxxxxxxxxxxxxx> <20080915094735.GH17904@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Ah ok I understand better your question.

You can indeed assign it several vcpu's since at least version 3.1 which is what I am using. After, these cores will show up as independent CPUs in your VM's.

The config line to add is "vcpus=1"

Cheers,
Antoine

On Mon, Sep 15, 2008 at 11:47 AM, Igor Chubin <igor@xxxxxxx> wrote:
On Mo, Sep 15, 2008 at 09:11:55 +0200, antoine.benkemoun@xxxxxx wrote:
> hello,
>
> Xen domU's are separated and are not aware that they are running in
> Xen (not quite for PV as the kernel is modified). I doubt this is
> possible since it would pose security problems with clients getting
> access (even partial) to the hypervisor.
> You should be able to see what is allocated to your VM but no more...
> A solution may be to get the dom0 to give the information to the
> domU's using an external database.

Thank you for you answer, Antoine.


I'm sorry, I think that I had to formulate my question more
precisely.

I do not want give domU any information about real hardware.
I want to provide it with virtual cpus (it is possible, ant question
is not about this) and show this vcpus say as cores of one CPU
or as independent CPUS. AFAIU this become possible since Xen 3.3.


>
> Cheers,
> Antoine
>
> On 9/13/08, Igor Chubin <igor@xxxxxxx> wrote:
> >
> > Hello, all.
> >
> >
> > Please, say me, is it possible to show
> > distinct number of threads, cores and number
> > of the virtualized processor inside a guest
> > Xen domains (both PV and HVM)?
> >
> > And if it is possible, how I should achieve this?
> >
> > And I have a similar question about CPU flags.
> > How can I hide some CPU flags and do not show them
> > inside a guest Xen domain?
> >
> >
> > Thank you
> >
> >
> > --
> > WBR, i.m.chubin
> >
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> >
>
>
> --
> Antoine Benkemoun
> Tel : 03.51.53.57.00
> Port : 06.32.88.59.35

--
WBR, i.m.chubin




--
Antoine Benkemoun
Tel : 03.51.53.57.00
Port : 06.32.88.59.35
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users