From: "Jan Beulich" Subject: Re: [PATCH v2 3/4] x86/pvh: Handle hypercalls for 32b PVH guests Date: Tue, 07 Jul 2015 10:20:17 +0100 Message-ID: <559BB5F1020000780008D3C0@mail.emea.novell.com> References: <1435609282-1383-1-git-send-email-boris.ostrovsky@oracle.com> <1435609282-1383-4-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1435609282-1383-4-git-send-email-boris.ostrovsky@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Boris Ostrovsky Cc: elena.ufimtseva@oracle.com, tim@xen.org, wei.liu2@citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, roger.pau@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 29.06.15 at 22:21, wrote: > @@ -4929,6 +4928,27 @@ static hvm_hypercall_t *const pvh_hypercall64_table[NR_hypercalls] = { > [ __HYPERVISOR_arch_1 ] = (hvm_hypercall_t *)paging_domctl_continuation > }; > > +extern void compat_mmuext_op(void); /* XXX: need proper declaration */ No XXX like this please. Just add a suitable declaration. And in fact adding it here (with correct arguments, and without the comment) would seem quite fine to me. > +static hvm_hypercall_t *const pvh_hypercall32_table[NR_hypercalls] = { > + HYPERCALL(platform_op), > + COMPAT_CALL(memory_op), > + HYPERCALL(xen_version), > + HYPERCALL(console_io), > + [ __HYPERVISOR_grant_table_op ] = > + (hvm_hypercall_t *)hvm_grant_table_op_compat32, > + COMPAT_CALL(vcpu_op), > + COMPAT_CALL(mmuext_op), > + HYPERCALL(xsm_op), > + COMPAT_CALL(sched_op), > + HYPERCALL(event_channel_op), > + [ __HYPERVISOR_physdev_op ] = (hvm_hypercall_t *)hvm_physdev_op_compat32, > + HYPERCALL(hvm_op), > + HYPERCALL(sysctl), > + HYPERCALL(domctl), > + [ __HYPERVISOR_arch_1 ] = (hvm_hypercall_t *)paging_domctl_continuation > +}; > + > + Just one blank line please. With these addressed Acked-by: Jan Beulich Jan