From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH for-4.5 v6 05/16] tools: Add vmware_port support Date: Mon, 22 Sep 2014 17:34:45 +0100 Message-ID: <54204FA5.7020104@citrix.com> References: <1411236447-7435-1-git-send-email-dslutz@verizon.com> <1411236447-7435-6-git-send-email-dslutz@verizon.com> <1411393315.18331.104.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411393315.18331.104.camel@kazak.uk.xensource.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: Ian Campbell , Don Slutz Cc: Tim Deegan , Kevin Tian , Keir Fraser , Jun Nakajima , Stefano Stabellini , George Dunlap , Ian Jackson , Eddie Dong , xen-devel@lists.xen.org, Aravind Gopalakrishnan , Jan Beulich , Boris Ostrovsky , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org On 22/09/14 14:41, Ian Campbell wrote: > On Sat, 2014-09-20 at 14:07 -0400, Don Slutz wrote: >> This new libxl_domain_create_info field is used to set >> XEN_DOMCTL_CDF_vmware_port for the xc_domain_create() routine. > Does this really need to be a CDF, rather than a domctl/hvm param? I have made the argument that many things which are currently HVM Params should be CDF, as they absolutely should be set and immutable for the entire lifetime of the domain. >>From recollection, we have had several XSAs in the past which are directly attributable to the toolstack or guest being able to play with an (insufficiently locked down) HVM param after boot. Using a CDF avoids potential issues along these lines. > > The latter would allow moving to buildinfo.u.hvm, which would be nicer > from the libxl PoV, I think. > Whatever the decision regarding CDF/hvmparam/other is, getting it right in the hypervisor is a much higher priority than being nice in libxl. It is unfortunate that libxl exposes the internal implementation details of createinfo vs buildinfo in its API. With hindsight, it was a poor design decision. ~Andrew