Re: [Xen-devel] [PATCH] Fix a BUG_ON issue

2016-08-30 Thread Wu, Feng
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Tuesday, August 30, 2016 2:34 PM > To: Wu, Feng > Cc: xen-devel@lists.xen.org > Subject: RE: [PATCH] Fix a BUG_ON issue > > >>> On 30.08.16 at 01:19, wrote: > >> From: Jan Beulich [mailto:jbeul...@suse.com] > >

Re: [Xen-devel] [PATCH] Fix a BUG_ON issue

2016-08-29 Thread Jan Beulich
>>> On 30.08.16 at 01:19, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: Monday, August 29, 2016 7:51 PM >> >>> On 29.08.16 at 11:14, wrote: >> > --- a/xen/drivers/passthrough/io.c >> > +++ b/xen/drivers/passthrough/io.c >> > @@ -243,7 +243,7 @@ static struct vcpu *vector_hashing

Re: [Xen-devel] [PATCH] Fix a BUG_ON issue

2016-08-29 Thread Wu, Feng
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Monday, August 29, 2016 7:51 PM > To: Wu, Feng > Cc: xen-devel@lists.xen.org > Subject: Re: [PATCH] Fix a BUG_ON issue > > >>> On 29.08.16 at 11:14, wrote: > > --- a/xen/drivers/passthrough/io.c > > +++ b/xen/d

Re: [Xen-devel] [PATCH] Fix a BUG_ON issue

2016-08-29 Thread Jan Beulich
>>> On 29.08.16 at 11:14, wrote: > --- a/xen/drivers/passthrough/io.c > +++ b/xen/drivers/passthrough/io.c > @@ -243,7 +243,7 @@ static struct vcpu *vector_hashing_dest(const struct > domain *d, > for ( i = 0; i <= mod; i++ ) > { > idx = find_next_bit(dest_vcpu_bitm

[Xen-devel] [PATCH] Fix a BUG_ON issue

2016-08-29 Thread Feng Wu
The 'idx' can equal to the max number of vCPUs, fix it. Signed-off-by: Feng Wu --- xen/drivers/passthrough/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/io.c b/xen/drivers/passthrough/io.c index 9e6b46c..66577b6 100644 --- a/xen/drivers/passthro