From: "Jan Beulich" Subject: Re: Re: [PATCH] xen: Pack some hvmop memory structures better Date: Mon, 07 Feb 2011 09:22:38 +0000 Message-ID: <4D4FC7EE02000078000307D2@vpn.id2.novell.com> References: <4D4C2834.9070204@redhat.com> <20110204163014.GB482@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20110204163014.GB482@whitby.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: George Dunlap , Paolo Bonzini , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 04.02.11 at 17:30, Tim Deegan wrote: > At 16:24 +0000 on 04 Feb (1296836660), Paolo Bonzini wrote: >> Am I missing something glaring, or this is breaking the ABI between=20 >> hypervisor and kernels? >=20 > It only breaks the ABI between xen and tools, which are supposed always > to be version-matched. I'm not sure that it's particularly worthwhile According to x86's do_hvm_op() I would say a HVM guest can issue HVMOP_set_mem_type for itself. Is that perhaps a mistake? Similarly, HVMOP_[gs]et_mem_access bail on current->domain->domain_id =3D=3D a.domid, but rcu_lock_target_domain_by_id() happily accepts DOMID_SELF without any further checks. At least for the "set" variant this very much looks like a mistake to me. > though - at first glance it's saving about ten bytes of argument space. > Unless these operations are happening in large batches? Jan