From: "Jan Beulich" Subject: Re: [PATCH RFC v2 1/4] x86/mm: Shadow and p2m changes for PV mem_access Date: Mon, 25 Aug 2014 14:01:20 +0100 Message-ID: <53FB4FC0020000780002D3BB@mail.emea.novell.com> References: <1404787805-4540-1-git-send-email-aravindp@cisco.com> <1404787805-4540-2-git-send-email-aravindp@cisco.com> <53D13457020000780002599B@mail.emea.novell.com> <97A500D504438F4ABC02EBA81613CC633188B795@xmb-aln-x02.cisco.com> <53D221270200007800025CEA@mail.emea.novell.com> <97A500D504438F4ABC02EBA81613CC633188BE3A@xmb-aln-x02.cisco.com> <53D60EA002000078000265FC@mail.emea.novell.com> <97A500D504438F4ABC02EBA81613CC633188EC46@xmb-aln-x02.cisco.com> <53D8B6AC0200007800027844@mail.emea.novell.com> <97A500D504438F4ABC02EBA81613CC633188EF44@xmb-aln-x02.cisco.com> <53DB52380200007800028448@mail.emea.novell.com> <97A500D504438F4ABC02EBA81613CC633188FBD7@xmb-aln-x02.cisco.com> <53DF4C6B0200007800028CA5@mail.emea.novell.com> <97A500D504438F4ABC02EBA81613CC63318A2DBD@xmb-rcd-x02.cisco.com> <53E096C902000078000294A2@mail.emea.novell.com> <97A500D504438F4ABC02EBA81613CC63318E00F6@xmb-aln-x02.cisco.com> <53F70E99.7030501@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XLttk-000599-Sk for xen-devel@lists.xenproject.org; Mon, 25 Aug 2014 13:01:24 +0000 In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Gianluca Guida Cc: Keir Fraser , Ian Campbell , Andrew Cooper , Ian Jackson , Tim Deegan , "Aravindh Puthiyaparambil (aravindp)" , "xen-devel@lists.xenproject.org" List-Id: xen-devel@lists.xenproject.org >>> On 25.08.14 at 14:45, wrote: > On Fri, Aug 22, 2014 at 10:34 AM, Andrew Cooper > wrote: > >> I am concerned with the addition of a the vcpu specifics to >> shadow_write_entries(). Most of the shadow code is already vcpu centric >> where it should be domain centric, and steps are being made to alleviate >> these problems. > > > The historical reason the code is set up this way, if you are referring to > the fact that every shadow operation is vcpu-specific while the interface > to it is domain specific, is due to the design choice of leaving the door > open to experiment with per-vcpu shadows. > That always looked like a nice feature, I am not sure anybody ever > implemented it. I would advocate -- for the sake of code consistency -- to > keep the current shadow internal interfaces per-vcpu in upcoming patches, > and change it when you propose your domain-centric patch, effectively > killing this probably never-exploited opportunity. Except that a number of places broke that possible route already, by using vCPU 0 in several places where only a domain gets passed in. Jan