Re: [Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-04-03 Thread Tian, Kevin
> From: Wu, Feng > Sent: Thursday, April 02, 2015 4:03 PM > > > > > -Original Message- > > From: Tian, Kevin > > Sent: Thursday, April 02, 2015 2:50 PM > > To: Wu, Feng; xen-devel@lists.xen.org > > Cc: jbeul...@suse.com; k...@xen.org; Zhang, Yang Z > > Subject: RE: [RFC v1 08/15] Update

Re: [Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-04-02 Thread Wu, Feng
> -Original Message- > From: Tian, Kevin > Sent: Thursday, April 02, 2015 2:50 PM > To: Wu, Feng; xen-devel@lists.xen.org > Cc: jbeul...@suse.com; k...@xen.org; Zhang, Yang Z > Subject: RE: [RFC v1 08/15] Update IRTE according to guest interrupt config > changes > > > From: Wu, Feng > >

Re: [Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-04-01 Thread Tian, Kevin
> From: Wu, Feng > Sent: Thursday, April 02, 2015 2:21 PM > > > > > -Original Message- > > From: Tian, Kevin > > Sent: Thursday, April 02, 2015 1:52 PM > > To: Wu, Feng; xen-devel@lists.xen.org > > Cc: jbeul...@suse.com; k...@xen.org; Zhang, Yang Z > > Subject: RE: [RFC v1 08/15] Update

Re: [Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-04-01 Thread Wu, Feng
> -Original Message- > From: Tian, Kevin > Sent: Thursday, April 02, 2015 1:52 PM > To: Wu, Feng; xen-devel@lists.xen.org > Cc: jbeul...@suse.com; k...@xen.org; Zhang, Yang Z > Subject: RE: [RFC v1 08/15] Update IRTE according to guest interrupt config > changes > > > From: Wu, Feng > >

Re: [Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-04-01 Thread Tian, Kevin
> From: Wu, Feng > Sent: Wednesday, March 25, 2015 8:32 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] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-03-27 Thread Andrew Cooper
On 27/03/15 05:49, Wu, Feng wrote: +/* + * Here we handle the following cases: + * - For lowest-priority interrupts, we find the destination vCPU from the + * guest vector using vector-hashing mechamisn and return true. This follows + * the hardware behavior, since modern Intel CPUs use vec

Re: [Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-03-26 Thread Wu, Feng
> -Original Message- > From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Friday, March 27, 2015 3:59 AM > To: Wu, Feng; xen-devel@lists.xen.org > Cc: Zhang, Yang Z; Tian, Kevin; k...@xen.org; jbeul...@suse.com > Subject: Re: [Xen-devel] [RFC v1 08/15] Upd

Re: [Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-03-26 Thread Wu, Feng
> -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Friday, March 27, 2015 3:47 AM > To: Wu, Feng > Cc: xen-devel@lists.xen.org; Zhang, Yang Z; Tian, Kevin; k...@xen.org; > jbeul...@suse.com > Subject: Re: [Xen-devel] [RFC

Re: [Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-03-26 Thread Andrew Cooper
On 25/03/15 12:31, 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. For l

Re: [Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-03-26 Thread Konrad Rzeszutek Wilk
On Wed, Mar 25, 2015 at 08:31:50PM +0800, Feng Wu wrote: > When guest changes its interrupt configuration (such as, vector, etc.) s/such as,/such as/ > for direct-assigned devices, we need to update the associated IRTE > with the new guest vector, so external interrupts from the assigned > devices

[Xen-devel] [RFC v1 08/15] Update IRTE according to guest interrupt config changes

2015-03-25 Thread Feng Wu
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. For lowest-priority interrupts, we use ve