pseries: Support PCI extended config space in RTAS calls
On the pseries machine (which expexts a paravirtualized guest), guestaccess to PCI config space is via host-provided RTAS functions. Thispatch extends these RTAS functions to permit access to PCI extended...
pseries: Use correct dispatcher for PCI config space accesses
The pseries machine expects a para-virtualized guest and so supplies RTASfunctions (via a hypercall) for performing PCI config space access.Currently the implementation of these calls intopci_default_{read,write}_config(). However this would be incorrect for...
PPC: 4xx: Qdevify the 440 PCI host controller
Due to popular demand, this qdevifies the PCI host controller of 4xx SoCsthe same way as e500.
We have to introduce a small stub function for pci init that will beremoved in a later patch, once we qdev'ified the board, to keep the build...
PPC: Bamboo: fold ppc440.c and ppc440_bamboo.c into a single file
The separation of ppc440 and ppc440_bamboo makes some sense, since ppc440is the SoC while ppc440_bamboo is the actual board. But the separationmakes things harder for us for no good reason, so let's just fold them...
PPC: Bamboo: Integrate SoC instatiation, use qdev for PCI
Now that we have the SoC init function in the same file, let's integrateit with the board initialization.
While at it, also make use of the newly qdev'ified PCI host controller.
Signed-off-by: Alexander Graf <agraf@suse.de>
virtio-pci: Fix endianness of virtio config
The virtio config area in PIO space is a bit special. The initialheader is little endian but the rest (device specific) is guestnative endian.
The PIO accessors for PCI on machines that don't have native IO ports...
virtio: change memcpy to guest reads
When accessing the device specific virtio config space, we memcpythe data into a variable in QEMU. At that point we're basicallypulling host endianness into the game which is a really bad idea.
So instead, let's use the target specific load/store helpers for...
load_image_targphys() should enforce the max size
load_image_targphys() gets passed a max size for the file, but doesn'tenforce it at all. Add a check and return -1 (error) if the file istoo big, without loading it. Fix the bracing style in the function...
Correct types in bmdma_addr_{read,write}
Back when I made patches introducing dma_addr_t and various PCI DMAwrapper functions, I made a mistake. The bmdma_addr_{read,write} functionsneed to take target_phys_addr_t not dma_addr_t, since they are assigned...
PPC: bamboo: fix whitespace
Tabs followed by spaces are a no-go. My editor shows it red, distractingme from actual work! :)
View revisions
Also available in: Atom