Re: [PATCH] KVM/X86: Check input sreg values before loading vcpu

2018-03-08 Thread rkrc...@redhat.com
2018-02-27 06:57+, Tianyu Lan: > From: Lan Tianyu > > This patch is to check sreg value first and then load vcpu in order > to avoid redundant loading/putting vcpu. > > Signed-off-by: Lan Tianyu > --- Patch "KVM: x86: KVM_CAP_SYNC_REGS" made significant changes to the sregs setter, so the

Re: [PATCH v3 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-21 Thread rkrc...@redhat.com
2016-01-21 13:44+0800, Yang Zhang: > On 2016/1/21 13:41, Wu, Feng wrote: >>>From: Yang Zhang [mailto:yang.zhang...@gmail.com] >>>We may have different understanding on PI mode. My understanding is if >>>we set the IRTE to PI format, than the subsequent interrupt will be >>>handled in PI mode. multi

Re: [PATCH v3 2/4] KVM: x86: Use vector-hashing to deliver lowest-priority interrupts

2016-01-21 Thread rkrc...@redhat.com
2016-01-21 05:33+, Wu, Feng: >> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- >> ow...@vger.kernel.org] On Behalf Of Yang Zhang >> On 2016/1/20 9:42, Feng Wu wrote: >> > + /* >> > + * We may find a hardware disabled LAPIC here, if >> that >> >

Re: [PATCH v3 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-22 Thread rkrc...@redhat.com
2016-01-22 10:03+0800, Yang Zhang: > On 2016/1/22 0:35, rkrc...@redhat.com wrote: >>2016-01-21 13:44+0800, Yang Zhang: >>>On 2016/1/21 13:41, Wu, Feng wrote: >>>>>From: Yang Zhang [mailto:yang.zhang...@gmail.com] >>>>>We may have different understa

Re: [PATCH v3 2/4] KVM: x86: Use vector-hashing to deliver lowest-priority interrupts

2016-01-22 Thread rkrc...@redhat.com
2016-01-22 12:00+0800, Yang Zhang: > On 2016/1/22 1:21, rkrc...@redhat.com wrote: >>(I think there isn't a practical difference between *r=-1 and *r=0.) > > Currently, if *r == -1, the remote_irr may get set. But it seems wrong. I Yeah ... > need to have a double check

Re: [PATCH 0/6] KVM/x86: Add workaround to support ExtINT with AVIC

2019-04-04 Thread rkrc...@redhat.com
2019-03-22 11:57+, Suthikulpanit, Suravee: > This series is one of the prerequisites for supporting AMD AVIC with > in-kernel irqchip (kernel_irqchip=on). > > Since AVIC does not support ExtINT interrupt, which is required during > the booting phase of Windows and FreeBSD VMs (e.g. PIT -> PIC

Re: [PATCH 0/6] KVM/x86: Add workaround to support ExtINT with AVIC

2019-04-04 Thread rkrc...@redhat.com
2019-03-22 11:57+, Suthikulpanit, Suravee: > This series is one of the prerequisites for supporting AMD AVIC with > in-kernel irqchip (kernel_irqchip=on). > > Since AVIC does not support ExtINT interrupt, which is required during > the booting phase of Windows and FreeBSD VMs (e.g. PIT -> PIC

Re: [PATCH v5 9/9] Documentation: virtual: kvm: Support vcpu preempted check

2016-10-21 Thread rkrc...@redhat.com
2016-10-21 11:27+, David Laight: > From: Pan Xinhui >> Sent: 20 October 2016 22:28 >> Commit ("x86, kvm: support vcpu preempted check") add one field "__u8 >> preempted" into struct kvm_steal_time. This field tells if one vcpu is >> running or not. >> >> It is zero if 1) some old KVM deos not

Re: [PATCH v5 9/9] Documentation: virtual: kvm: Support vcpu preempted check

2016-10-24 Thread rkrc...@redhat.com
2016-10-24 16:42+0200, Paolo Bonzini: > On 21/10/2016 20:39, rkrc...@redhat.com wrote: >> 2016-10-21 11:27+, David Laight: >>> From: Pan Xinhui >>>> Sent: 20 October 2016 22:28 >>>> Commit ("x86, kvm: support vcpu preempted check") add one fi

Re: [PATCH v2 1/2] KVM: x86: Use vector-hashing to deliver lowest-priority interrupts

2015-12-22 Thread rkrc...@redhat.com
2015-12-22 07:19+, Wu, Feng: >> From: Yang Zhang [mailto:yang.zhang...@gmail.com] >> On 2015/12/22 14:59, Wu, Feng wrote: >> >> From: Yang Zhang [mailto:yang.zhang...@gmail.com] >> >> On 2015/12/16 9:37, Feng Wu wrote: >> >>> +for_each_set_bit(i, &bitmap, 16)

Re: [PATCH v2 1/2] KVM: x86: Use vector-hashing to deliver lowest-priority interrupts

2015-12-23 Thread rkrc...@redhat.com
2015-12-23 02:12+, Wu, Feng: >> From: rkrc...@redhat.com [mailto:rkrc...@redhat.com] >> 2015-12-22 07:19+, Wu, Feng: >> >> From: Yang Zhang [mailto:yang.zhang...@gmail.com] >> >> On 2015/12/22 14:59, Wu, Feng wrote: >> >> >> From: Yang

Re: [PATCH v2 2/2] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

2015-12-23 Thread rkrc...@redhat.com
2015-12-22 14:42+0800, Yang Zhang: > On 2015/12/22 12:36, Wu, Feng wrote: >>>From: Yang Zhang [mailto:yang.zhang...@gmail.com] >>>On 2015/12/21 9:55, Wu, Feng wrote: >From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- >On 2015/12/16 9:37, Feng Wu wrote: >>diff --git a/arch/x

Re: [PATCH v3 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-26 Thread rkrc...@redhat.com
2016-01-26 09:44+0800, Yang Zhang: > On 2016/1/25 21:59, rkrc...@redhat.com wrote: >>2016-01-25 09:49+0800, Yang Zhang: >>>On 2016/1/22 21:31, rkrc...@redhat.com wrote: >>>>2016-01-22 10:03+0800, Yang Zhang: >>>>>Not so complicated. We can r

Re: [PATCH v3 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-27 Thread rkrc...@redhat.com
2016-01-27 10:07+0800, Yang Zhang: > On 2016/1/27 2:22, rkrc...@redhat.com wrote: >>2016-01-26 09:44+0800, Yang Zhang: >>>On 2016/1/25 21:59, rkrc...@redhat.com wrote: >>>>>> Also, if wakeup vector were used for wakeup and multicast, we'd be >>>

Re: [PATCH v3 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-25 Thread rkrc...@redhat.com
2016-01-25 09:49+0800, Yang Zhang: > On 2016/1/22 21:31, rkrc...@redhat.com wrote: >>2016-01-22 10:03+0800, Yang Zhang: >>>Not so complicated. We can reuse the wake up vector and check whether the >>>interrupt is multicast when one of destination vcpu handles it. >