From: "Jan Beulich" Subject: Re: [PATCH v5 3/9] ioreq-server: centralize access to ioreq structures Date: Tue, 06 May 2014 15:21:31 +0100 Message-ID: <53690C0B020000780000F78D@mail.emea.novell.com> References: <1398946120-33169-1-git-send-email-paul.durrant@citrix.com> <1398946120-33169-4-git-send-email-paul.durrant@citrix.com> <5368F323020000780000F598@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD03354F6@AMSPEX01CL01.citrite.net> <9AAE0902D5BC7E449B7C8E4E778ABCD0335950@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD0335950@AMSPEX01CL01.citrite.net> 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: Paul Durrant Cc: "Keir (Xen.org)" , Kevin Tian , EddieDong , Jun Nakajima , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 06.05.14 at 16:13, wrote: >> > From: Jan Beulich [mailto:JBeulich@suse.com] >> > >>> On 01.05.14 at 14:08, wrote: >> > > --- a/xen/arch/x86/hvm/hvm.c >> > > +++ b/xen/arch/x86/hvm/hvm.c >> > > @@ -363,6 +363,26 @@ void hvm_migrate_pirqs(struct vcpu *v) >> > > spin_unlock(&d->event_lock); >> > > } >> > > >> > > +static ioreq_t *get_ioreq(struct vcpu *v) >> > >> > const struct vcpu *? Or was it that this conflicts with a subsequent >> > patch? >> > >> >> I guess that could be done, although it wasn't const before it was moved. >> > > Attempting this causes issues when using vcpu_runnable() in a subsequent > patch, so I won't do it. Just make vcpu_runnable()'s parameter const too then - it easily can be. Jan