From: Ian Campbell Subject: Re: [PATCH for-4.5 v6 09/16] tools: Add limited support of VMware's hyper-call rpc Date: Mon, 22 Sep 2014 14:52:37 +0100 Message-ID: <1411393957.18331.111.camel@kazak.uk.xensource.com> References: <1411236447-7435-1-git-send-email-dslutz@verizon.com> <1411236447-7435-10-git-send-email-dslutz@verizon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411236447-7435-10-git-send-email-dslutz@verizon.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: 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 , Andrew Cooper , Boris Ostrovsky , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org 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. Ultimately that's up to the hypervisor maintainers though. Ian.