From: "Tian, Kevin" Subject: RE: [PATCH 1/2] cpu steal time accounting Date: Tue, 21 Feb 2006 22:06:13 +0800 Message-ID: <571ACEFD467F7749BC50E0A98C17CDD802C06D27@pdsmsx403> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Return-path: Content-class: urn:content-classes:message List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rik van Riel Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >From: Rik van Riel [mailto:riel@redhat.com] >Sent: 2006=C4=EA2=D4=C221=C8=D5 20:56 > >On Tue, 21 Feb 2006, Tian, Kevin wrote: > >> Why do you need to add a new VCPUOP while doing same thing as >> DOM0_GETVCPUINFO? > >Because the dom0_ops only work for dom0 and reworking that >function to allow non-privileged domains to get info just >on themselves would end up being a way uglier patch. > See your point now. Since physical processor id is also exported in your = patch, will it cause a trend to allow non-privileged domain to query = more physical context information about domain itself? Like = GETDOMAININFO, GETVCPUCONTEXT, etc. For example, guest may use gap info = between max_pages and tot_pages to decide whether eagerly adding free = pages as caches. It can also consider that info as an indicator of some = type of tight resource contention. If it's the usage model, maybe we can = consider move them out of dom0_ prefix and make it common. Thanks, Kevin