From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nadav Har'El" Subject: [PATCH 0/2] nVMX injection corrections Date: Thu, 22 Sep 2011 13:52:25 +0300 Message-ID: <1316688715-nyh@il.ibm.com> Cc: Dave Allan , Federico Simoncelli , Abel Gordon To: Avi Kivity , kvm@vger.kernel.org Return-path: Received: from mtagate3.uk.ibm.com ([194.196.100.163]:52874 "EHLO mtagate3.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752880Ab1IVKw3 (ORCPT ); Thu, 22 Sep 2011 06:52:29 -0400 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p8MAqSF3009420 for ; Thu, 22 Sep 2011 10:52:28 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8MAqRsQ2601092 for ; Thu, 22 Sep 2011 11:52:27 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8MHqV6j015744 for ; Thu, 22 Sep 2011 11:52:31 -0600 Sender: kvm-owner@vger.kernel.org List-ID: The following two patches solve two injection-related nested VMX issues: 1. When we must run L2 next (namely on L1's VMLAUNCH/VMRESUME), injection into L1 was delayed for an unknown amount of time - until L2 exits. We now force (using a self IPI) an exit immediately after entry to L2, so that the injection into L1 happens promptly. 2. "unexpected, valid vectoring info" warnings appeared in L1. These are fixed by correcting the emulation of concurrent L0->L1 and L1->L2 injections: We cannot inject into L1 until the injection into L2 has been processed. Patch statistics: ----------------- arch/x86/kvm/vmx.c | 18 +++++++++++------- arch/x86/kvm/x86.c | 6 ++++++ include/linux/kvm_host.h | 1 + 3 files changed, 18 insertions(+), 7 deletions(-) -- Nadav Har'El IBM Haifa Research Lab