Re: [PATCH 1/2] KVM: nVMX: Fix nested vmexit ack intr before load vmcs01

From: Davidlohr Bueso
Date: Mon Aug 04 2014 - 15:56:44 EST


On Fri, 2014-08-01 at 16:12 +0800, Wanpeng Li wrote:
> External interrupt will cause L1 vmexit w/ reason external interrupt when L2 is
> running. Then L1 will pick up the interrupt through vmcs12 if L1 set the ack
> interrupt bit. Commit 77b0f5d (KVM: nVMX: Ack and write vector info to intr_info
> if L1 asks us to)

So being that 77b0f5d is in 3.15, we need it for -stable.

> get intr that belongs to L1 before load vmcs01 which is wrong,
> especially this lead to the obvious L1 ack APICv behavior weired since APICv
> is for L1 instead of L2. This patch fix it by ack intr after load vmcs01.
>
> Signed-off-by: Wanpeng Li <wanpeng.li@xxxxxxxxxxxxxxx>

It strikes me that this fixes Felipe's issue:
http://paste.opensuse.org/view/raw/78752586




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/