From patchwork Wed Jul 4 13:18:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Ellerman X-Patchwork-Id: 1156031 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id D7B63DFF0F for ; Wed, 4 Jul 2012 13:20:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752165Ab2GDNUZ (ORCPT ); Wed, 4 Jul 2012 09:20:25 -0400 Received: from ozlabs.org ([203.10.76.45]:46674 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751953Ab2GDNUW (ORCPT ); Wed, 4 Jul 2012 09:20:22 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id A82882C0089; Wed, 4 Jul 2012 23:20:19 +1000 (EST) From: Michael Ellerman To: kvm@vger.kernel.org Cc: penberg@kernel.org, levinsasha928@gmail.com, asias.hejun@gmail.com, Subject: [PATCH 1/4] kvm tools: Define KVM_VIRTIO_MMIO_AREA for powerpc Date: Wed, 4 Jul 2012 23:18:55 +1000 Message-Id: <1341407938-23478-1-git-send-email-michael@ellerman.id.au> X-Mailer: git-send-email 1.7.9.5 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Commit 82ea06e "Introduce KVM_VIRTIO_MMIO_AREA" did just that, but only for x86. Causing the following commit 5c301a3 "Add virtio-mmio support" to break the build for powerpc. We follow what x86 did and place it 16MB past the PCI area, I have no idea if that is actually a good idea, or whether it works at all. Signed-off-by: Michael Ellerman --- I don't see any logic in pci_get_io_space_block() to stop it running into the VIRTIO area? But I haven't dug any further. --- tools/kvm/powerpc/include/kvm/kvm-arch.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/kvm/powerpc/include/kvm/kvm-arch.h b/tools/kvm/powerpc/include/kvm/kvm-arch.h index c7620b2..404e33e 100644 --- a/tools/kvm/powerpc/include/kvm/kvm-arch.h +++ b/tools/kvm/powerpc/include/kvm/kvm-arch.h @@ -39,6 +39,7 @@ * from. Note that this is a PCI bus address. */ #define KVM_PCI_MMIO_AREA 0x1000000 +#define KVM_VIRTIO_MMIO_AREA 0x2000000 struct spapr_phb;