qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/6] Redesign of pciinit.c (take 2)
@ 2012-03-13  4:39 Alexey Korolev
  2012-03-13  4:41 ` [Qemu-devel] [PATCH 1/6] Add Linked list operations to util.h Alexey Korolev
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Alexey Korolev @ 2012-03-13  4:39 UTC (permalink / raw)
  To: kevin; +Cc: sfd, seabios, qemu-devel

Hi,

This patch series redesigns the existing pciinit.c code and introduces
linked list operations.
Changes are more about structures definitions rather than functionality.
There are no more arrays of bases and counts in new implementation. The
new implementation is based on dynamic allocation of pci_region_entry
structures. 
Each pci_region_entry structure could be a PCI bar or a downstream PCI
region (bridge). Each entry has a set of attributes: type (IO, MEM,
PREFMEM), is64bit, size, base address, PCI device owner, and a
pointer to the pci_bus it belongs to.
Also this series introduces list head operations which could be quite
handy not only for pciinit.c code but for post memory manager and thread
operations. 

The patch series includes 3 patches.

1. Introduce List operations
2. Add pci_region_entry and linked lists operations in place while still
using the array system to do the allocations. 
3. Switch to lists operations
4. Delete old code. (3 & 4 are split for better readability)
5. Get rid of size element from bus->r structure, now we use entry->size
for the same purpose
6. Make use of list operations in pmm.c and stack.c

 src/pciinit.c |  270 ++++++++++++++++++++++++++-------------------------------
 src/pmm.c     |   29 ++----
 src/stacks.c  |    8 +--
 src/util.h    |   32 +++++++
 4 files changed, 165 insertions(+), 174 deletions(-)


P/s
It is basically the same functionality as in previous version. I just
split commit in more pieces to make the changes to be as obvious as
possible.

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

end of thread, other threads:[~2012-03-20  2:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-13  4:39 [Qemu-devel] [PATCH 0/6] Redesign of pciinit.c (take 2) Alexey Korolev
2012-03-13  4:41 ` [Qemu-devel] [PATCH 1/6] Add Linked list operations to util.h Alexey Korolev
2012-03-13  4:45 ` [Qemu-devel] [PATCH 2/6] Redesign of pciinit.c (take 2) Alexey Korolev
2012-03-14  0:48   ` Kevin O'Connor
2012-03-15  3:29     ` Alexey Korolev
2012-03-16  0:55       ` Kevin O'Connor
2012-03-20  2:20         ` Alexey Korolev
2012-03-13  4:58 ` [Qemu-devel] [PATCH 3/6] Switch from array based approach to lists of pci_region_entries Alexey Korolev
2012-03-13  5:01 ` [Qemu-devel] [PATCH 4/6] Delete array based resource assignment code Alexey Korolev
2012-03-13  5:05 ` [Qemu-devel] [PATCH 5/6] Get rid of size element of pci_bus->r structure Alexey Korolev
2012-03-13  5:10 ` [Qemu-devel] [PATCH 6/6] Use linked lists in pmm.c and stack.c Alexey Korolev

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).