linux-mips
[Top] [All Lists]

[PATCH 0/2] KVM/MIPS32: Fixes for Linux 3.10

To: kvm@vger.kernel.org
Subject: [PATCH 0/2] KVM/MIPS32: Fixes for Linux 3.10
From: Sanjay Lal <sanjayl@kymasys.com>
Date: Mon, 13 May 2013 13:21:38 -0700
Cc: linux-mips@linux-mips.org, gleb@redhat.com, mtosatti@redhat.com, ralf@linux-mips.org, Sanjay Lal <sanjayl@kymasys.com>
In-reply-to: <n>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <n>
Sender: linux-mips-bounce@linux-mips.org
The following patch set fixes a couple of issues with KVM/MIPS32 in Linux 3.10.

- As suggested by Gleb, wrap calls to gfn_to_pfn() with srcu_read_lock/unlock().
- kvm_mips_map_page() now returns an error code to it's callers, instead of 
calling panic()
  if it cannot find a mapping for a particular gfn.
- Follow the latest convention and move the kvm.h API file under uapi/...

--
Sanjay Lal (2):
  KVM/MIPS32: Move include/asm/kvm.h => include/uapi/asm/kvm.h since it
    is a user visible API.
  KVM/MIPS32: Wrap calls to gfn_to_pfn() with srcu_read_lock/unlock()

 arch/mips/include/asm/kvm.h      | 55 ----------------------------------------
 arch/mips/include/uapi/asm/kvm.h | 55 ++++++++++++++++++++++++++++++++++++++++
 arch/mips/kvm/kvm_tlb.c          | 38 ++++++++++++++++++++-------
 3 files changed, 84 insertions(+), 64 deletions(-)
 delete mode 100644 arch/mips/include/asm/kvm.h
 create mode 100644 arch/mips/include/uapi/asm/kvm.h

-- 
1.7.11.3


<Prev in Thread] Current Thread [Next in Thread>