From: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
To: kvm@vger.kernel.org
Cc: Alex Williamson <alex.williamson@redhat.com>
Subject: [PATCH] device-assignment, msi: PBA is long
Date: Thu, 17 Jun 2010 09:34:36 +0900 [thread overview]
Message-ID: <4C196D9C.5010903@jp.fujitsu.com> (raw)
Accidentally a pci_read_long() was replaced with assigned_dev_pci_read_byte()
by the commit:
commit a81a1f0a7410976be7dbc9a81524a8640f446ab5
Author: Alex Williamson <alex.williamson@redhat.com>
device-assignment: Don't use libpci
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
---
hw/device-assignment.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
--
1.7.0
next reply other threads:[~2010-06-17 0:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-17 0:34 Hidetoshi Seto [this message]
2010-06-17 2:12 ` [PATCH] device-assignment, msi: PBA is long Alex Williamson
2010-06-18 17:47 ` Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C196D9C.5010903@jp.fujitsu.com \
--to=seto.hidetoshi@jp.fujitsu.com \
--cc=alex.williamson@redhat.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox