From: "Jan Beulich" Subject: Re: [PATCH 2/2] x86/hvm: honor guest's option when updating secondary system time for guest Date: Fri, 25 Jul 2014 10:17:28 +0100 Message-ID: <53D23CC80200007800025ECC@mail.emea.novell.com> References: <1404775098-6083-1-git-send-email-feng.wu@intel.com> <1404775098-6083-3-git-send-email-feng.wu@intel.com> <53CFC4690200007800025159@mail.emea.novell.com> <53D222A70200007800025D05@mail.emea.novell.com> <53D225DB0200007800025D4E@mail.emea.novell.com> <53D232040200007800025E4A@mail.emea.novell.com> <53D21AB4.3060108@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53D21AB4.3060108@citrix.com> 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: Andrew Cooper Cc: "linux@eikelenboom.it" , "tim@xen.org" , "keir@xen.org" , Feng Wu , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 25.07.14 at 10:52, wrote: > Thinking about this some more, how can we possibly know whether writing > to the nominated page is even safe? At the point of update, there is no > knowledge about the current cr3 in use. That's a problem the kernel has to be bothered by, but not the hypervisor. > As far as I can see, the only safe actions Xen can take is refuse to > ever write to user mappings, and insist that any OS using this feature > provide a supervisor mapping to Xen (and guarantee it will never swap > the target of that mapping) and give user mappings of the same gpa to > any of its own userspace which wants access. This then avoids any > concerns wrt SMAP. No, user mappings can validly (and do) appear in the non-user mode parts of the page tables. Jan