From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8NP1-0004KX-D2 for qemu-devel@nongnu.org; Thu, 15 Mar 2012 23:00:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8NOz-0007Ij-BH for qemu-devel@nongnu.org; Thu, 15 Mar 2012 23:00:26 -0400 Received: from [222.73.24.84] (port=51618 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8NOy-0007II-W0 for qemu-devel@nongnu.org; Thu, 15 Mar 2012 23:00:25 -0400 Message-ID: <4F62A7AF.9020706@cn.fujitsu.com> Date: Fri, 16 Mar 2012 10:38:39 +0800 From: Wen Congyang MIME-Version: 1.0 References: <4F61C2C5.6060700@cn.fujitsu.com> In-Reply-To: <4F61C2C5.6060700@cn.fujitsu.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] pci-assign can not work List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , kvm list , Jan Kiszka At 03/15/2012 06:21 PM, Wen Congyang Wrote: > Hi all > > When I use pci-assign, I meet the following error: > > Failed to assign irq for "hostdev0": Input/output error > Perhaps you are assigning a device that shares an IRQ with another device? > > Is it a bug or I miss something? Hi, Jan This problem is caused by your patch: commit 6919115a8715c34cd80baa08422d90496f11f5d7 Author: Jan Kiszka Date: Thu Mar 8 11:10:27 2012 +0100 pci_assign: Flip defaults of prefer_msi and share_intx INTx sharing is a bit more expensive than exclusive host interrupts, but this channel is not supposed to be used for high-performance scenarios anyway. Modern devices support MSI/MSI-X and do not depend on using INTx under critical workload, real old devices do not support INTx sharing anyway. For those in the middle, the user experience is much better if they just work even when IRQ sharing is required. If there is nothing to share, share_intx=off can still be applied as tuning parameter. With INTx sharing as default, the primary reason for prefer_msi=on is gone. Make it default off, specifically as it is known to cause troubles with devices that have incomplete/broken MSI support or otherwise stumble if host IRQ configuration does not match guest driver expectation. Acked-by: Alex Williamson Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti If I revert this commit. qemu can work. Thanks Wen Congyang > > I use libvirt to start the guest, and the user/group is root/root(not qemu/qemu). > > If I use the default qemu(provided in RHEL6.2), the guest can be started. > > Thanks > Wen Congyang > >