RE: [v3 23/26] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted

2015-03-02 Thread Wu, Feng
> j...@8bytes.org; alex.william...@redhat.com; jiang@linux.intel.com; > eric.au...@linaro.org; linux-ker...@vger.kernel.org; > iommu@lists.linux-foundation.org; k...@vger.kernel.org > Subject: Re: [v3 23/26] KVM: Update Posted-Interrupts Descriptor when vCPU > is preempted >

Re: [v3 23/26] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted

2015-02-23 Thread Marcelo Tosatti
On Fri, Dec 12, 2014 at 11:14:57PM +0800, Feng Wu wrote: > This patch updates the Posted-Interrupts Descriptor when vCPU > is preempted. > > sched out: > - Set 'SN' to suppress furture non-urgent interrupts posted for > the vCPU. What wakes the vcpu in the case of a non-urgent interrupt, then? I

RE: [v3 23/26] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted

2014-12-18 Thread Wu, Feng
ernel.org; > linux-ker...@vger.kernel.org; k...@vger.kernel.org > Subject: Re: [v3 23/26] KVM: Update Posted-Interrupts Descriptor when vCPU > is preempted > > > > On 18/12/2014 04:15, Wu, Feng wrote: > > Thanks for your comments, Paolo! > > > > If we use u64

RE: [v3 23/26] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted

2014-12-17 Thread Wu, Feng
.@infradead.org; j...@8bytes.org; Alex > Williamson; jiang.liu-VuQAYsv1563Yd54FQh9/c...@public.gmane.org > Cc: iommu@lists.linux-foundation.org; linux-ker...@vger.kernel.org; KVM list; > Eric Auger > Subject: Re: [v3 23/26] KVM: Update Posted-Interrupts Descriptor when vCPU > is preempt

Re: [v3 23/26] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted

2014-12-17 Thread Paolo Bonzini
On 12/12/2014 16:14, Feng Wu wrote: > + if (irq_remapping_cap(IRQ_POSTING_CAP)) { > + struct pi_desc *pi_desc = vcpu_to_pi_desc(vcpu); > + struct pi_desc old, new; > + unsigned int dest; > + > + memset(&old, 0, sizeof(old)); > + mems

[v3 23/26] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted

2014-12-12 Thread Feng Wu
This patch updates the Posted-Interrupts Descriptor when vCPU is preempted. sched out: - Set 'SN' to suppress furture non-urgent interrupts posted for the vCPU. sched in: - Clear 'SN' - Change NDST if vCPU is scheduled to a different CPU - Set 'NV' to POSTED_INTR_VECTOR Signed-off-by: Feng Wu -