From patchwork Fri Dec 31 17:00:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin O'Connor X-Patchwork-Id: 442361 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBVIORnq017492 for ; Fri, 31 Dec 2010 18:24:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753301Ab0LaRAY (ORCPT ); Fri, 31 Dec 2010 12:00:24 -0500 Received: from mail-qy0-f181.google.com ([209.85.216.181]:60203 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990Ab0LaRAY (ORCPT ); Fri, 31 Dec 2010 12:00:24 -0500 Received: by qyk12 with SMTP id 12so13397395qyk.19 for ; Fri, 31 Dec 2010 09:00:23 -0800 (PST) Received: by 10.224.6.135 with SMTP id 7mr16546828qaz.200.1293814823420; Fri, 31 Dec 2010 09:00:23 -0800 (PST) Received: from localhost (207-172-165-101.c3-0.avec-ubr1.nyr-avec.ny.cable.rcn.com [207.172.165.101]) by mx.google.com with ESMTPS id p13sm10109710qcu.41.2010.12.31.09.00.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 31 Dec 2010 09:00:21 -0800 (PST) Date: Fri, 31 Dec 2010 12:00:20 -0500 From: "Kevin O'Connor" To: Avi Kivity Cc: Alexander Graf , Erik Brakkee , Jan Kiszka , kvm@vger.kernel.org Subject: Re: USB Passthrough 1.1 performance problem... Message-ID: <20101231170020.GA31885@morn.localdomain> References: <4D04B645.3010100@brakkee.org> <4D0537A8.8000607@brakkee.org> <4D0549AA.2020007@web.de> <4D054D37.7040107@brakkee.org> <4D07409B.2080602@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4D07409B.2080602@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 31 Dec 2010 18:24:35 +0000 (UTC) --- a/src/pciinit.c +++ b/src/pciinit.c @@ -10,6 +10,7 @@ #include "biosvar.h" // GET_EBDA #include "pci_ids.h" // PCI_VENDOR_ID_INTEL #include "pci_regs.h" // PCI_COMMAND +#include "memmap.h" // PAGE_SIZE #include "dev-i440fx.h" #define PCI_ROM_SLOT 6 @@ -90,6 +91,8 @@ static int pci_bios_allocate_region(u16 bdf, int region_num) type = "prefmem"; msg = "decrease BUILD_PCIMEM_SIZE and recompile. size %x"; } else { + if (size < PAGE_SIZE) + size = PAGE_SIZE; r = &pci_bios_mem_region; type = "mem"; msg = "increase BUILD_PCIMEM_SIZE and recompile.";