> -----Original Message----- > From: qemu-devel-bounces+feng.wu=intel....@nongnu.org > [mailto:qemu-devel-bounces+feng.wu=intel....@nongnu.org] On Behalf Of > Jan Beulich > Sent: Wednesday, August 12, 2015 2:59 PM > To: Wu, Feng > Cc: xen-de...@lists.xensource.com; qemu-devel@nongnu.org; > stefano.stabell...@eu.citrix.com > Subject: Re: [Qemu-devel] [Xen-devel] [PATCH v1] xenpt: Properly handle 64-bit > bar with more than 4G size > > >>> On 05.08.15 at 04:02, <feng...@intel.com> wrote: > > @@ -491,8 +474,9 @@ static int > xen_pt_bar_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, > > bar_ro_mask = XEN_PT_BAR_IO_RO_MASK | (r_size - 1); > > break; > > case XEN_PT_BAR_FLAG_UPPER: > > + r = &d->io_regions[index-1]; > > Perhaps worth an assert(index > 0)?
No problem, I will add it. BTW, do you have any other comments about this patch? If no, I am going to send out the new version with this changes. Thanks, Feng > > Jan >