From: Jean Guyader <jean.guyader@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: Re: [PATCH] ioemu: fix pt_chk_bar_overload
Date: Wed, 16 Jul 2008 17:04:31 +0100 [thread overview]
Message-ID: <487E1C0F.3080001@eu.citrix.com> (raw)
In-Reply-To: <487E1B9F.8060305@eu.citrix.com>
[-- Attachment #1: Type: text/plain, Size: 146 bytes --]
Oops wrong patch, sorry about that ....
ioemu: fix the devices loop.
Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
--
Jean Guyader
[-- Attachment #2: ioemu_fix_pt_chk_bar_overload.patch --]
[-- Type: text/plain, Size: 748 bytes --]
diff -r 63317b6c3eab tools/ioemu/hw/pci.c
--- a/tools/ioemu/hw/pci.c Mon Jul 14 15:21:03 2008 +0100
+++ b/tools/ioemu/hw/pci.c Wed Jul 16 16:59:57 2008 +0100
@@ -644,15 +644,15 @@ PCIBus *pci_bridge_init(PCIBus *bus, int
int pt_chk_bar_overlap(PCIBus *bus, int devfn, uint32_t addr, uint32_t size)
{
- PCIDevice *devices = (PCIDevice *)bus->devices;
+ PCIDevice *devices;
PCIIORegion *r;
int ret = 0;
int i, j;
/* check Overlapped to Base Address */
- for (i=0; i<256; i++, devices++)
+ for (i=bus->devfn_min; i<256; i += 8)
{
- if ((devices == NULL) || (devices->devfn == devfn))
+ if ( !(devices = bus->devices[devfn]) )
continue;
for (j=0; j<PCI_NUM_REGIONS; j++)
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2008-07-16 16:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-16 16:02 [PATCH] ioemu: fix pt_chk_bar_overload Jean Guyader
2008-07-16 16:04 ` Jean Guyader [this message]
2008-07-17 7:05 ` [PATCH] ioemu: alternative patch fixing pt_chk_bar_overlap Yuji Shimada
2008-07-18 14:24 ` Ian Jackson
2008-07-18 14:27 ` Jean Guyader
2008-07-18 14:54 ` Ian Jackson
2008-07-22 8:14 ` Yuji Shimada
2008-07-22 10:55 ` Ian Jackson
2008-07-24 3:00 ` Yuji Shimada
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=487E1C0F.3080001@eu.citrix.com \
--to=jean.guyader@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.