From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakob Sandgren Subject: Problem with PCI device assignment (KVM-79, 2.6.28) Date: Sun, 7 Dec 2008 22:59:01 +0100 Message-ID: <20081207215901.GA7537@southpole.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: kvm@vger.kernel.org Return-path: Received: from mail.southpole.se ([193.12.106.18]:51718 "EHLO mail.southpole.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbYLGWTv (ORCPT ); Sun, 7 Dec 2008 17:19:51 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.southpole.se (Postfix) with SMTP id 8A19C4ED199 for ; Sun, 7 Dec 2008 22:59:01 +0100 (CET) Received: from idefix.southpole.se (ssh.southpole.se [193.12.106.19]) by mail.southpole.se (Postfix) with SMTP id 73B474ED0F8 for ; Sun, 7 Dec 2008 22:59:01 +0100 (CET) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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. Backgroud and additional information: This is on an Ubuntu Intrepid with an AMD Phenom(tm) 9350e CPU. KVM-79 has been compiled and 2.6.28 is installed from Ubuntu:s repository. I'm trying to assign my DVB-T (Nova 500) card to my guest. It's basically a PCI card with an USB controller chip (two 1.1 ports and one 2.0 port) that is connected to the actuall DVB-T chip. Since the DVB-T chip is connected to USB-2.0 and since there is no USB 2.0 (EHCI) support in KVM, I'm trying to use pci device assignment instead. I have disabled any other USB controllers/hubs in the system; root@cosmos:/var/log/libvirt/qemu# lspci |grep USB 06:07.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1Controller (rev 61) 06:07.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61) 06:07.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63) Starting kvm with; "/usr/bin/kvm -pcidevice host=06:07.1,dma=none ... args ..." works and the device shows up in the guest (some errors in guest, but it starts and the device sees an USB controller) However starting kvm with; "/usr/bin/kvm -pcidevice host=06:07.2,dma=none ... args ..." gives the following errors; create_userspace_phys_mem: Invalid argument assigned_dev_iomem_map: Error: create new mapping failed I have tried above both with and without ",dma=none". I'm confused since it seem to work with some devices, but not with others. Any suggestions? /Jakob -- Jakob Sandgren South Pole AB