From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: qemu-kvm: require 4K aligned resource size for memory Date: Thu, 22 Oct 2009 14:37:39 -0200 Message-ID: <20091022163739.GA4353@amt.cnet> References: <20091020171508.GD13378@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Chris Wright , Avi Kivity , Dor Laor , kvm@vger.kernel.org To: "Michael S. Tsirkin" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:4507 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756721AbZJVQrX (ORCPT ); Thu, 22 Oct 2009 12:47:23 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9MGlS91017267 for ; Thu, 22 Oct 2009 12:47:28 -0400 Content-Disposition: inline In-Reply-To: <20091020171508.GD13378@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Oct 20, 2009 at 07:15:09PM +0200, Michael S. Tsirkin wrote: > KVM does not virtualize low address bits for memory accesses, so we must > require that PCI BAR size is a multiple of 4K for passthrough to work > (this also guarantees that address is 4K aligned). > > Users of recent linux kernels can force resource size up to 4K > using: > > commit 32a9a682bef2f6fce7026bd94d1ce20028b0e52d > Author: Yuji Shimada > Date: Mon Mar 16 17:13:39 2009 +0900 > PCI: allow assignment of memory resources with a specified alignment > > Signed-off-by: Michael S. Tsirkin Applied, thanks.