From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v3 4/4] x86/PV: enable the emulated PIT Date: Mon, 18 Jan 2016 16:33:45 +0000 Message-ID: <569D13E9.9000207@citrix.com> References: <5699358D02000078000C7800@prv-mh.provo.novell.com> <1452879951-76391-1-git-send-email-roger.pau@citrix.com> <569CA5CB02000078000C7C43@prv-mh.provo.novell.com> <569CB067.7070905@citrix.com> <569CC22402000078000C7D9C@prv-mh.provo.novell.com> <569CC143.9030703@citrix.com> <569CD53402000078000C7ED2@prv-mh.provo.novell.com> <569D0E85.7040504@citrix.com> <569D206F02000078000C8205@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aLCkW-0003dC-MY for xen-devel@lists.xenproject.org; Mon, 18 Jan 2016 16:33:48 +0000 In-Reply-To: <569D206F02000078000C8205@prv-mh.provo.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: Ian Jackson , xen-devel@lists.xenproject.org, Wei Liu , Ian Campbell , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On 18/01/16 16:27, Jan Beulich wrote: >>>> On 18.01.16 at 17:10, wrote: >> On 18/01/16 11:06, Jan Beulich wrote: >>>> Whatever (eventually) gets used to set these values will however be >>>> present in the xl configuration, which is at the very start of the >>>> stream, and is what is used to create the new domain. >>> Which makes me repeat the question: Is this an inherent property >>> or just "that's the way it is right now"? And then of course the >>> question arises whether setting those flags at domain creation time >>> is the right model. I.e. ... >>> >>>> We really don't want the libxc migrate code to be making the >>>> DOMCTL_createdomain hypercall itself; it opens up a whole new attack >>>> surface via cunningly-crafted save image. The best we can do is have a >>>> sanity check later on. >>> ... what about deriving the emulation flags from the various >>> pieces of state getting loaded, at least when there are matching >>> pairs (which namely is the case for PIT)? >> How would you suggest setting theses flags up in the plain domain build >> case then? > Via a specific (new) hypercall, along the lines of what > XEN_DOMCTL_arm_configure_domain was? This adds the existing problems we have between the createdomain and max_cpus hypercalls. We need to either specify all information in a single hypercall, or have a dedicated construction phase, during which most hypercalls are invalid to use. (IMO - All domain construction is a rats nest in need of redesigning from scratch.) ~Andrew