From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan C. Bernauer" Subject: Re: Problem with PCI device assignment (KVM-79, 2.6.28) Date: Sun, 07 Dec 2008 23:42:32 +0100 Message-ID: <493C5158.5000406@t-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mailout06.t-online.de ([194.25.134.19]:59559 "EHLO mailout06.t-online.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750961AbYLGXAk (ORCPT ); Sun, 7 Dec 2008 18:00:40 -0500 Received: from [192.168.0.10] (dragonsphere.paranoid.net [192.168.0.10]) by codex (Postfix) with ESMTPA id 97B48800002 for ; Sun, 7 Dec 2008 23:42:33 +0100 (CET) Sender: kvm-owner@vger.kernel.org List-ID: Jakob Sandgren wrote: > > Hi, > > > > I get the following (fatal) error when trying to assign a pci device > > (USB 2.0 controller) to a guest: > > create_userspace_phys_mem: Invalid argument > > assigned_dev_iomem_map: Error: create new mapping failed > > > > Assigning another (USB 1.1) device works. > > > > Can you check what lspci -v says? I suspect the size of a memory region is not a multiple of 4096. Same thing happens for me for a network and a dvb card. As far as I know, the mapping code can only map whole pages. So the code has to expand the size to the nearest multiple. Best regards, Jan C. Bernauer