From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [RFC PATCH 11/13] cpufreq: add xen-cpufreq driver Date: Fri, 10 Oct 2014 16:19:13 +0100 Message-ID: <1412954353.27111.50.camel@citrix.com> References: <1412691566-7320-1-git-send-email-oleksandr.dmytryshyn@globallogic.com> <1412691566-7320-12-git-send-email-oleksandr.dmytryshyn@globallogic.com> <54341887020000780003CFE1@mail.emea.novell.com> <5437C559020000780003D9BB@mail.emea.novell.com> <5437C72D020000780003D9D3@mail.emea.novell.com> <1412935158.27111.6.camel@citrix.com> <5437F25A020000780003DB8D@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5437F25A020000780003DB8D@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Tim Deegan , Oleksandr Dmytryshyn , xen-devel@lists.xen.org, Stefano.Stabellini@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2014-10-10 at 13:51 +0100, Jan Beulich wrote: > >>> On 10.10.14 at 11:59, wrote: > > A simple i2c driver (without all the generic framework/bus > > infrastructure which Linux has) is pretty simple. > > > > I think the biggest complexity would come from i2c busses with both > > cpufreq and other devices on them and managing the potentially shared > > accesses. > > And the recently added XENPF_resource_op would seem a pretty > good candidate for this (except that it requires the Dom0 kernel > code to stop accessing hardware directly, and instead go through > this hypercall). We'd need to introduce a dtb binding for a "pv i2c host controller" which we would use to replace the actual one for dom0. That might be doable I think, so long as we take care to preserve the relationships with other nodes which might reference it. Ian.