qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] pciinit: fix overflow when bar allocation
@ 2010-10-28  5:04 Isaku Yamahata
  2010-10-28  5:04 ` [Qemu-devel] [PATCH v2 1/2] pci: introduce pci_region to manage pci io/memory/prefmemory regions Isaku Yamahata
  2010-10-28  5:04 ` [Qemu-devel] [PATCH v2 2/2] pciinit: use pci_region functions Isaku Yamahata
  0 siblings, 2 replies; 7+ messages in thread
From: Isaku Yamahata @ 2010-10-28  5:04 UTC (permalink / raw)
  To: seabios; +Cc: yamahata, cam, adnan, qemu-devel, mst

Okay, now added comments to members and functions as requested.
No essential code change.

Changes v1 -> v2:
- add comment.

Patch description:
This patch set fixes PCI bar allocation when bar overflow occured.
I checked if pmm_alloc facility can be used, but it doesn't suit for
pci bar allocation. So I resulted in new API, pci_region which
encapsulates region allocation and overflow checks.
The first patch introduces pci_region, and the second patch fixes
the overflow case with pci_region.

Isaku Yamahata (2):
  pci: introduce pci_region to manage pci io/memory/prefmemory regions.
  pciinit: use pci_region functions.

 Makefile         |    3 +-
 src/pci_region.c |   77 ++++++++++++++++++++++++++++++++++
 src/pciinit.c    |  122 ++++++++++++++++++++++++++---------------------------
 src/util.h       |   28 ++++++++++++
 4 files changed, 167 insertions(+), 63 deletions(-)
 create mode 100644 src/pci_region.c

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-28  7:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-28  5:04 [Qemu-devel] [PATCH v2 0/2] pciinit: fix overflow when bar allocation Isaku Yamahata
2010-10-28  5:04 ` [Qemu-devel] [PATCH v2 1/2] pci: introduce pci_region to manage pci io/memory/prefmemory regions Isaku Yamahata
2010-10-28  5:56   ` [Qemu-devel] " Michael S. Tsirkin
2010-10-28  6:23     ` Isaku Yamahata
2010-10-28  5:04 ` [Qemu-devel] [PATCH v2 2/2] pciinit: use pci_region functions Isaku Yamahata
2010-10-28  6:33   ` [Qemu-devel] " Michael S. Tsirkin
2010-10-28  7:26     ` Isaku Yamahata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).