From patchwork Thu Jun 17 00:34:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hidetoshi Seto X-Patchwork-Id: 106582 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5H0bEbo002662 for ; Thu, 17 Jun 2010 00:37:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755624Ab0FQAhL (ORCPT ); Wed, 16 Jun 2010 20:37:11 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:35436 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754787Ab0FQAhK (ORCPT ); Wed, 16 Jun 2010 20:37:10 -0400 Received: from m1.gw.fujitsu.co.jp ([10.0.50.71]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o5H0b8AK005152 for (envelope-from seto.hidetoshi@jp.fujitsu.com); Thu, 17 Jun 2010 09:37:09 +0900 Received: from smail (m1 [127.0.0.1]) by outgoing.m1.gw.fujitsu.co.jp (Postfix) with ESMTP id BBA4F45DE51 for ; Thu, 17 Jun 2010 09:37:08 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (s1.gw.fujitsu.co.jp [10.0.50.91]) by m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 812D245DE50 for ; Thu, 17 Jun 2010 09:37:08 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id 5083C1DB804E for ; Thu, 17 Jun 2010 09:37:08 +0900 (JST) Received: from m107.s.css.fujitsu.com (m107.s.css.fujitsu.com [10.249.87.107]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id C7EB5E08002 for ; Thu, 17 Jun 2010 09:37:07 +0900 (JST) Received: from m107.css.fujitsu.com (m107 [127.0.0.1]) by m107.s.css.fujitsu.com (Postfix) with ESMTP id 97C95670004; Thu, 17 Jun 2010 09:37:07 +0900 (JST) Received: from [127.0.0.1] (unknown [10.124.100.141]) by m107.s.css.fujitsu.com (Postfix) with ESMTP id 3B60C670001; Thu, 17 Jun 2010 09:37:07 +0900 (JST) X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Received: from FMVDA2A041[10.124.100.141] by FMVDA2A041 (FujitsuOutboundMailChecker v1.3.1/9992[10.124.100.141]); Thu, 17 Jun 2010 09:36:59 +0900 (JST) Message-ID: <4C196D9C.5010903@jp.fujitsu.com> Date: Thu, 17 Jun 2010 09:34:36 +0900 From: Hidetoshi Seto User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: kvm@vger.kernel.org CC: Alex Williamson Subject: [PATCH] device-assignment, msi: PBA is long Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 17 Jun 2010 00:37:15 +0000 (UTC) diff --git a/hw/device-assignment.c b/hw/device-assignment.c index e254203..e237bd3 100644 --- a/hw/device-assignment.c +++ b/hw/device-assignment.c @@ -1263,7 +1263,7 @@ static int assigned_device_pci_cap_init(PCIDevice *pci_dev) pci_dev->cap.length + PCI_MSIX_TABLE) = msix_table_entry; *(uint32_t *)(pci_dev->config + pci_dev->cap.start + pci_dev->cap.length + PCI_MSIX_PBA) = - assigned_dev_pci_read_byte(pci_dev, pos + PCI_MSIX_PBA); + assigned_dev_pci_read_long(pci_dev, pos + PCI_MSIX_PBA); bar_nr = msix_table_entry & PCI_MSIX_BIR; msix_table_entry &= ~PCI_MSIX_BIR; dev->msix_table_addr = pci_region[bar_nr].base_addr + msix_table_entry;