From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Slutz Subject: Re: [PATCH for-4.5 v6 05/16] tools: Add vmware_port support Date: Mon, 22 Sep 2014 17:22:18 -0400 Message-ID: <5420930A.2020300@terremark.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> <54204FA5.7020104@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54204FA5.7020104@citrix.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: Andrew Cooper , 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 09/22/14 12:34, Andrew Cooper wrote: > 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. It also allow setting up v->arch.hvm_vmx.exception_bitmap at the right time. domctl/hvm params are setup much latter in the life of a domain. >> 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. -Don Slutz > ~Andrew >