Re: [Xen-devel] [v3 11/15] Update IRTE according to guest interrupt config changes

2015-07-10 Thread Jan Beulich
>>> On 24.06.15 at 07:18, wrote: > +static struct vcpu *pi_find_dest_vcpu(struct domain *d, uint8_t dest_id, Looks like there's nothing modifying d, i.e. should be const. But how can dest_id be uint8_t when we support x2APIC in the guest? > + uint8_t dest_mo

Re: [Xen-devel] [v3 11/15] Update IRTE according to guest interrupt config changes

2015-07-08 Thread Tian, Kevin
> From: Wu, Feng > Sent: Wednesday, July 08, 2015 7:52 PM > > > > > + * - For lowest-priority interrupts, we find the destination vCPU > > > > > from the > > > > > + * guest vector using vector-hashing mechanism and return true. > > > > > This > > > > follows > > > > > + * the hardware behavi

Re: [Xen-devel] [v3 11/15] Update IRTE according to guest interrupt config changes

2015-07-08 Thread Wu, Feng
> -Original Message- > From: Tian, Kevin > Sent: Wednesday, July 08, 2015 7:46 PM > To: Wu, Feng; xen-devel@lists.xen.org > Cc: k...@xen.org; jbeul...@suse.com; andrew.coop...@citrix.com; Zhang, > Yang Z; george.dun...@eu.citrix.com > Subject: RE: [v3 11/15] Update IRTE according to guest

Re: [Xen-devel] [v3 11/15] Update IRTE according to guest interrupt config changes

2015-07-08 Thread Tian, Kevin
> From: Wu, Feng > Sent: Wednesday, July 08, 2015 7:05 PM > > > > -Original Message- > > From: Wu, Feng > > Sent: Wednesday, July 08, 2015 6:32 PM > > To: Tian, Kevin; xen-devel@lists.xen.org > > Cc: k...@xen.org; jbeul...@suse.com; andrew.coop...@citrix.com; Zhang, > > Yang Z; george.dun

Re: [Xen-devel] [v3 11/15] Update IRTE according to guest interrupt config changes

2015-07-08 Thread Tian, Kevin
> From: Wu, Feng > Sent: Wednesday, July 08, 2015 6:32 PM > > > > > -Original Message- > > From: Tian, Kevin > > Sent: Wednesday, July 08, 2015 6:23 PM > > To: Wu, Feng; xen-devel@lists.xen.org > > Cc: k...@xen.org; jbeul...@suse.com; andrew.coop...@citrix.com; Zhang, > > Yang Z; george.

Re: [Xen-devel] [v3 11/15] Update IRTE according to guest interrupt config changes

2015-07-08 Thread Wu, Feng
> -Original Message- > From: Wu, Feng > Sent: Wednesday, July 08, 2015 6:32 PM > To: Tian, Kevin; xen-devel@lists.xen.org > Cc: k...@xen.org; jbeul...@suse.com; andrew.coop...@citrix.com; Zhang, > Yang Z; george.dun...@eu.citrix.com; Wu, Feng > Subject: RE: [v3 11/15] Update IRTE accordin

Re: [Xen-devel] [v3 11/15] Update IRTE according to guest interrupt config changes

2015-07-08 Thread Wu, Feng
> -Original Message- > From: Tian, Kevin > Sent: Wednesday, July 08, 2015 6:23 PM > To: Wu, Feng; xen-devel@lists.xen.org > Cc: k...@xen.org; jbeul...@suse.com; andrew.coop...@citrix.com; Zhang, > Yang Z; george.dun...@eu.citrix.com > Subject: RE: [v3 11/15] Update IRTE according to guest

Re: [Xen-devel] [v3 11/15] Update IRTE according to guest interrupt config changes

2015-07-08 Thread Tian, Kevin
> From: Wu, Feng > Sent: Wednesday, June 24, 2015 1:18 PM > > When guest changes its interrupt configuration (such as, vector, etc.) > for direct-assigned devices, we need to update the associated IRTE > with the new guest vector, so external interrupts from the assigned > devices can be injected

Re: [Xen-devel] [v3 11/15] Update IRTE according to guest interrupt config changes

2015-06-29 Thread Andrew Cooper
On 24/06/15 06:18, Feng Wu wrote: > When guest changes its interrupt configuration (such as, vector, etc.) > for direct-assigned devices, we need to update the associated IRTE > with the new guest vector, so external interrupts from the assigned > devices can be injected to guests without VM-Exit.