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] How to get dom0 configuration when running in domU?

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: Re: [Xen-users] How to get dom0 configuration when running in domU?
From: Hannes Kuehnemund <hannes.kuehnemund@xxxxxxx>
Date: Tue, 22 May 2007 18:07:41 +0200
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 22 May 2007 09:06:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B018E1D60@xxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <907625E08839C4409CE5768403633E0B018E1D60@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.0 (X11/20070326)
Petersson, Mats wrote:
-----Original Message-----
Hi,

is there any chance to get the dom0 configuration information (which is available in dom0 by 'xm list --long Domain-0' or 'xm vcpu-list' in general) being in a domU?

The background is, only having access to domU I'd like to know the mapping of my virtual CPU's. How can I figure out if my 4 virtual CPU's aren't assigned to one single physical CPU. This information is needed for sizing matters.

This information SHOULDN'T be available to the guest for security
reasons - guest shouldn't even be able to tell that it's not a physical
machine [although this is probably not to hard to do with "uname -a" or
by measuring the timing of certain operations]. I'm not sure if you can
trick around and for example read CPUID to find the APICID of the
VCPU's, for example [probably not, because that would break SMP in
guest, I think].
Some possible option(s) for checking this are:
1. use some sort of network protocol to get back to Dom0 (or a client
supported by Dom0). Most trivial is "ssh <dom0> xm ...".

2. Try to determine it by running variable loads on the guest - such as
run one thread, then two threads, then three, then four (etc).  If you
have fewer physical CPU's than VCPU's, then there will be a proportional
slow-down per thread when you get above the number of physical CPU's.
[That is, of course, if you don't have any other competing tasks on the
same physical CPU(s), but then on the other hand, if you have four
physical CPU's, but share them with another guest, that would amount to
the same thing as not having a "full" set of CPUs in the first place,
right?].

Thanks for your comments so far. I agree, that this information shouldn't be available by DEFAULT. But if I want this information, and I have control over dom0, there must be a way to get it. I agree, that a domU should not get any information if this feature is not enabled in dom0 (which should be the default)!

Of course one can install some remote management software in every domU which queries a configured dom0, but after a migration this will not work, as the dom0 the domU is running on changed.

This feature is already available on zOS and VMWare (through the VMWare SDK), thus it should also be available on Xen.

But taken from your answer, this feature is sadly not yet available. Anyway, does anyone know where to ask for new features of Xen?

--
Mats

Thanks,
  Hannes

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

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