From patchwork Mon May 14 10:00:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 912808 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=kvm-ppc-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.ru Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40kx5y4LGvz9s15 for ; Mon, 14 May 2018 20:00:38 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751219AbeENKAg (ORCPT ); Mon, 14 May 2018 06:00:36 -0400 Received: from 107-173-13-209-host.colocrossing.com ([107.173.13.209]:48113 "EHLO ozlabs.ru" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750750AbeENKAg (ORCPT ); Mon, 14 May 2018 06:00:36 -0400 Received: from vpl1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id 2F70BAE80052; Mon, 14 May 2018 05:59:35 -0400 (EDT) From: Alexey Kardashevskiy To: David Gibson Cc: Alexey Kardashevskiy , kvm-ppc@vger.kernel.org, Paul Mackerras Subject: [PATCH kernel v2 0/3] KVM: PPC: Allow backing bigger guest IOMMU pages with smaller physical Date: Mon, 14 May 2018 20:00:26 +1000 Message-Id: <20180514100029.32910-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.11.0 Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org This is to allow the guest to use big host IOMMU pages even when the exact page size (i.e. 16MB) is not supported by the host (i.e.P9). Now in 3 patches. Please comment. Thanks. Alexey Kardashevskiy (3): KVM: PPC: Use correct page shift in H_STUFF_TCE KVM: PPC: Allow backing bigger guest IOMMU pages with smaller physical pages KVM: PPC: Check KVM_CREATE_SPAPR_TCE_64 parameters arch/powerpc/kvm/book3s_64_vio.c | 69 ++++++++++++++++++++++++++++--------- arch/powerpc/kvm/book3s_64_vio_hv.c | 52 ++++++++++++++++++++++++---- 2 files changed, 98 insertions(+), 23 deletions(-)