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

Re: [Xen-devel] [PATCH 2] Add user PM control interface

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>, Jinsong Liu <jinsong.liu@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2] Add user PM control interface
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 10 Dec 2008 10:32:32 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 10 Dec 2008 02:32:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C5654492.2004B%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclarqB7GATvmtiw1kS126s8vr2d8QAA/s9a
Thread-topic: [Xen-devel] [PATCH 2] Add user PM control interface
User-agent: Microsoft-Entourage/12.14.0.081024
On 10/12/2008 10:04, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx> wrote:

> The only reason for dom0 kernel not to use domctl/sysctl is that the
> structures may be subject to change. So if you do, then the dom0 kernel in
> that case becomes part of the 'matched set' with Xen itself and the tools.
> As a distributor of 'whole system' software, you may not actually care about
> this limitation (since you can track dependencies and easily cause all
> packages to be upgraded)?
> 
> Adding some domctl/sysctl usage in the Linux kernel would actually be fine
> by me, except that I do think it should be conditional on a Kconfig option
> that makes the above additional constraint very clear to the user.
> 
> And actually, I don't think we've broken sysctl/domctl compatibility, or
> changed their ABI version numbers, at all recently.

Thinking some more, this doesn't work well unless we start guaranteeing
source compatibility at least... Perhaps it's time now to make stronger
guarantees about the domctl and sysctl interfaces.

Really in this case it depends: is support for Linux pm tools going to be
practically useful, especially in the general cases such as #dom0-cpus !=
#physical-cpus? It does seem a bit dubious to me.

 -- Keir



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