From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Fedin Subject: [PATCH v3 0/3] KVM: arm/arm64: Allow to use KVM without in-kernel irqchip Date: Wed, 05 Aug 2015 13:53:56 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 2EDB65A0D4 for ; Wed, 5 Aug 2015 06:41:24 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Op6mI5e42zRZ for ; Wed, 5 Aug 2015 06:41:22 -0400 (EDT) Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com [210.118.77.13]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 54C775A0CA for ; Wed, 5 Aug 2015 06:41:22 -0400 (EDT) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NSL00KPEVM7LN10@mailout3.w1.samsung.com> for kvmarm@lists.cs.columbia.edu; Wed, 05 Aug 2015 11:54:07 +0100 (BST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: Marc Zyngier List-Id: kvmarm@lists.cs.columbia.edu This patch set brings back functionality which was broken in v4.0. Unfortunately because of restrictions of such a hardware is is impossible to take advantage of virtual architected timer, therefore guest, running in such restricted mode, has to use some memory-mapped timer. But it is still better than nothing. v2 => v3: - Improved commit messages, added references to commits where the respective functionality was broken - Explicitly specify that the solution currently affects only vGIC and has nothing to do with timer. - Fixed code style according to previous notes - Removed ARM64 save/restore patch introduced in v2 because it was already obsolete for linux-next - Modify KVM_CAP_IRQFD handling in correct place v1 => v2: - Do not use defensive approach in patch 0001. Use correct conditions in callers instead - Added ARM64-specific code, without which attempt to run a VM ends in a HYP crash because of unset vGIC save/restore function pointers Pavel Fedin (3): Fix NULL pointer dereference if KVM is used without in-kernel irqchip Detect vGIC presence at runtime Make KVM_CAP_IRQFD dependent on KVM_CAP_IRQCHIP arch/arm/kvm/arm.c | 19 ++++++++++++++++--- virt/kvm/kvm_main.c | 5 +++-- 2 files changed, 19 insertions(+), 5 deletions(-) -- 2.4.4