cpu steal time accounting
Quoted 12 lines
From: Rik van Riel [mailto:[email protected]]
Sent: 2006年2月21日 20:56Quoted 2 lines · Kevin
Why do you need to add a new VCPUOP while doing same thing as
DOM0_GETVCPUINFO?Because the
dom0_opsonly 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