From: "Jan Beulich" Subject: Re: passthroughed msix device Date: Tue, 26 Feb 2013 10:08:14 +0000 Message-ID: <512C979E02000078000C105F@nat28.tlf.novell.com> References: <512C78D2.8030903@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <512C78D2.8030903@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: DuanZhenzhong Cc: Konrad Rzeszutek Wilk , xen-devel , Joe Jin , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 26.02.13 at 09:56, DuanZhenzhong wrote: > pci_msix_writel: Can't update entry 0 since MSI-X is already enabled > (fee00000 -> fee02000) > pci_msix_writel: Can't update entry 0 since MSI-X is already enabled > (00004059 -> 00004071) If you look at the code issuing this message, the situation is pretty clear (and I think it as described already in the past, albeit I have no link at hand): qemu lacks proper emulation of the mask bit. pci_msix_write() looks at the physical one, yet when the guest sets the virtual mask bit, nothing is being done at all to make the hypervisor also mask the physical entry: if (offset == PCI_MSIX_ENTRY_VECTOR_CTRL) { if (msix->enabled && !(val & PCI_MSIX_ENTRY_CTRL_MASKBIT)) { xen_pt_msix_update_one(s, entry_nr); } } There's probably quite a bit of code to be written to make this work. Jan