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

xen-devel

[Top] [All Lists]

Re: [xen-devel][PATCH] Battery Management qemu patch

To: "Kamala Narasimhan" <Kamala.Narasimhan@xxxxxxxxxx>
Subject: Re: [xen-devel][PATCH] Battery Management qemu patch
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: 2008年10月21日 10:27:24 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2008年10月21日 02:28:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <0519110A9448BC429B231AD118D7270805BFFA0F@xxxxxxxxxxxxxxxxxxxxxx>
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>
Newsgroups: chiark.mail.xen.devel
References: <0519110A9448BC429B231AD118D7270805BFFA0F@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Kamala Narasimhan writes ("[xen-devel][PATCH] Battery Management qemu patch"):
> Attached is the qemu side change for battery support within HVM guest.
> This will be followed by a xen power management daemon patch.
You have added some functions to xenstore.c, but these functions do
not encapsulate the xenstore interaction and structure for the power
management setup. But they're just plain xenstore accessors which
seem a bit pointless really. Instead you should move the knowledge
about the xenstore structure, to xenstore.c, and provide a structured
interface between the two components.
This will involve moving much of the contents of
get_battery_data_from_xenstore and also the relevant part of
battery_port_1_writeb. The point is to ensure that nothing outside
xenstore.c needs to know about the structure and semantics of xenstore
(including the paths, the value formats, and the temporal/causal
relationships between the keys and values). This will make it easier
when these changes have to go upstream.
Why have you selected CAPITAL LETTERS for your new xenstore path ?
Very little else in xenstore uses caps and I think it would probably
be better avoided here.
The patch contains a diff to the file `i386-dm/Makefile' but that is a
symlink to Makefile.target created by the configuration step (invoked
in our builds as xen-xetup). Makefile.target has the same diff. This
makes the patch slightly troublesome to apply.
Also, if you need to add object files please add them in
xen-hooks.mak, not directly in Makefile.target. That way I won't have
to deal with merge conflicts.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel][PATCH 1] X86: Adapt 32b guest os to 64b hypervisorplatform_hypercall compatibility , Jan Beulich
Next by Date: Re: [Xen-devel] Xenstore access permission to a specific domain , Ian Jackson
Previous by Thread: [xen-devel][PATCH] Battery Management qemu patch , Kamala Narasimhan
Next by Thread: RE: [xen-devel][PATCH] Battery Management qemu patch , Kamala Narasimhan
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /