From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_WEB,SPF_PASS,SUBJ_ALL_CAPS autolearn=no version=3.2.5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=agRMgbWAdl5aj2Z/Z86zArujnnaSV7OiQNb0aHh2bGY=; b=kDccYwWRH/xBDLZ0YORnpUyG27M7BpwBLGIe0D66KYbrD2omiNtBMDevCJ15uZSYen ZL7zmw3PGkDEhdsqxrWB7DJRG7pa2IT53lvFdtd3hBsc8SWdQkdMCjjL4iAuJ1bqGSQ4 5r2jyNqTThMl+vAlPXRBarOa0dcC5XF5DIMqjEkQ37V/KSuA4z2pC4EaRpfeTB8qfx2p qpWajRK2fYdfE4XvCAZhNX2J8O3WGWhVMYhV0BtqKf83gGLEXa5nOQU2JDa/uNE1Pu75 NjrCS7+V0X0pfM+ib/FTa25oCVuQ4HoxVxblM/0uh5xaB+7NjVVpWOXspJFRAnabQDs5 HWog== X-Received: by 10.152.2.225 with SMTP id 1mr1153218lax.37.1394716017303; Thu, 13 Mar 2014 06:06:57 -0700 (PDT) Message-ID: <5321ACED.8080307@gmail.com> Date: Thu, 13 Mar 2014 20:04:45 +0700 From: =?UTF-8?B?0JLQsNGB0Y7QuiDQnNCw0LrRgdC40Lw=?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: sysadmins@lists.altlinux.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: [Sysadmins] =?utf-8?b?0J/RgNC+0LHRgNC+0YEgUENJLdGD0YHRgtGA0L4=?= =?utf-8?b?0LnRgtCy0LAg0LIgS1ZNLdCz0L7RgdGC0Y8=?= X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux sysadmins' discussion List-Id: ALT Linux sysadmins' discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2014 13:07:04 -0000 Archived-At: List-Archive: Привет всем! Реально-ли пропбросить PCI устройство в KVM-гостя без IOMMU? Судя по интернету в этом направлении все не однозначно. Поднял asterisk в домене, хотел ему отдать USB устройство и воткнуть туда 3g модемы, а тут такая засада. Кто использовал такую связку отзовитесь, пожалуйста! Неужели придется выносить это дело на отдельную машину или еще хуже в хост? ------------------------------------------------------- Пробовал следующее! Предварительно поправил qemu.conf: relaxed_acs_check = 1 И отвязал устройство от хоста: echo 0000:00:1a.0 > /sys/bus/pci/drivers/ehci-pci/unbind lspci ---- 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) ---- lspci -vn 00:1a.0 0c03: 8086:1c2d (rev 05) (prog-if 20 [EHCI]) Subsystem: 1458:5006 Flags: bus master, medium devsel, latency 0, IRQ 18 Memory at fbffe000 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port: BAR=1 offset=00a0 Capabilities: [98] PCI Advanced Features Kernel driver in use: ehci-pci Кусок из конфига гостя:
Логи гостя при попытке запуска: qemu-kvm: -device pci-assign,host=00:1a.0,id=hostdev0,configfd=23,bus=pci.0,addr=0x6: PCI region 0 at address 0xfbffe000 has size 0x400, which is not a multi qemu-kvm: -device pci-assign,host=00:1a.0,id=hostdev0,configfd=23,bus=pci.0,addr=0x6: No IOMMU found. Unable to assign device "hostdev0" qemu-kvm: -device pci-assign,host=00:1a.0,id=hostdev0,configfd=23,bus=pci.0,addr=0x6: Device 'kvm-pci-assign' could not be initialized