From: Ian Campbell Subject: Re: [PATCH for-4.5 v6 09/16] tools: Add limited support of VMware's hyper-call rpc Date: Tue, 23 Sep 2014 13:35:20 +0100 Message-ID: <1411475720.1781.18.camel@kazak.uk.xensource.com> References: <1411236447-7435-1-git-send-email-dslutz@verizon.com> <1411236447-7435-10-git-send-email-dslutz@verizon.com> <1411393957.18331.111.camel@kazak.uk.xensource.com> <5420957C.9080402@terremark.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5420957C.9080402@terremark.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: Don Slutz Cc: Kevin Tian , Keir Fraser , Eddie Dong , Stefano Stabellini , George Dunlap , Ian Jackson , Tim Deegan , xen-devel@lists.xen.org, Jan Beulich , Aravind Gopalakrishnan , Jun Nakajima , Andrew Cooper , Boris Ostrovsky , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org On Mon, 2014-09-22 at 17:32 -0400, Don Slutz wrote: > On 09/22/14 09:52, Ian Campbell wrote: > > On Sat, 2014-09-20 at 14:07 -0400, Don Slutz wrote: > >> This guestinfo support is provided via libxc. libxl support has > >> not be written. > >> > >> Note: VMware RPC support is only available on HVM domU. > >> > >> This interface is an extension of __HYPERVISOR_HVM_op. It was > >> picked because xc_get_hvm_param() also uses it and VMware guest > >> info is a lot like a hvm param. > >> > >> The HVMOP_get_vmport_guest_info is used by two libxc functions, > >> xc_get_vmport_guest_info and xc_fetch_all_vmport_guest_info. > >> xc_fetch_all_vmport_guest_info is designed to be used to fetch all > >> currently set guestinfo values. > >> > >> Signed-off-by: Don Slutz > > These look to be correct implementations of accessors for the hypercalls > > as defined, although apart from my query about whether this belongs in > > Xen at all I do have concerns about an hvm param argument struct of >4K. > > AIUI more normal would be to have two GUEST_HANDLE* fields and to copy > > in/out explicitly. > > All my tests show this working. I am not aware of a >4K issue with > a GUEST_HANDLE*. Is this more a case of the 1st use? It's a couple of orders of magnitude bigger than any existing things, I think. It's not a problem per-se but I wanted to be sure that it had been properly considered. Ian