From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haitao Shan Subject: Re: use of struct hvm_irq_dpci in pv guests Date: Thu, 21 Apr 2011 15:02:49 +0800 Message-ID: References: <4D94904302000078000395FA@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0074078274==" Return-path: In-Reply-To: <4D94904302000078000395FA@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0074078274== Content-Type: multipart/alternative; boundary=bcaec520e81b4acb0a04a16854d8 --bcaec520e81b4acb0a04a16854d8 Content-Type: text/plain; charset=ISO-8859-1 Hi, Jan, I think it should be protected by is_hvm_domain(). Anyway, I have saw your patches already in upstream Xen. Shan Haitao 2011/3/31 Jan Beulich > The per-domain pointer to this is stored in ->arch.hvm_domain.irq.dpci, > hence suggesting that this is a HVM only field. > do_domctl(XEN_DOMCTL_bind_pt_irq) and domain_get_irq_dpci() > access it however without considering HVM-ness. In the course of > splitting/shrinking struct domain, I'd therefore need to know whether > this field ought to become common, or whether all accessors of the > field need to get protected by is_hvm_domain(). > > Thanks, Jan > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > --bcaec520e81b4acb0a04a16854d8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, Jan,
=A0
I think it should be protected by is_= hvm_domain(). Anyway, I have saw your patches already in upstream Xen.
=A0
Shan Haitao

201= 1/3/31 Jan Beulich <JBeulich@novell.com>
The per-domain pointer to this is stored in -&= gt;arch.hvm_domain.irq.dpci,
hence suggesting that this is a HVM only field.
do_domctl(XEN_DOMCTL_bind_pt_irq) and domain_get_irq_dpci()
access it however without considering HVM-ness. In the course of
splitting/shrinking struct domain, I'd therefore need to know whether this field ought to become common, or whether all accessors of the
field need to get protected by is_hvm_domain().

Thanks, Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.= com
http://l= ists.xensource.com/xen-devel

--bcaec520e81b4acb0a04a16854d8-- --===============0074078274== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0074078274==--