fdt: move dumpdtb interpretation code to device_tree.c
The dumpdtb code can be useful in more places than just for e500. Move itto a generic place.
Signed-off-by: Alexander Graf <agraf@suse.de>
pseries: Remove XICS irq type enum type
Currently the XICS interrupt controller emulation uses a custom enum tospecify whether a given interrupt is level-sensitive or message-triggered.This enum makes life awkward for saving the state, and isn't particularly...
pseries: Remove never used flags field from spapr vio devices
The general device state structure for PAPR VIO emulated devices includes a'flags' field which was never used. This patch removes it.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>...
pseries: Rework implementation of TCE bypass
On the pseries machine the IOMMU (aka TCE tables) is always active for allPCI and VIO devices. Mostly to simplify the SLOF firmware, we implement anextension which allows the IOMMU to be temporarily disabled for certain...
pseries: Fix semantics of RTAS int-on, int-off and set-xive functions
Currently the ibm,int-on and ibm,int-off RTAS functions are implemented asno-ops. This is because when implemented as specified in PAPR they causedLinux (which calls both int-on/off and set-xive) to end up with interrupts...
ppc405_uc: Fix buffer overflow
Report from smatch:
ppc405_uc.c:209 dcr_read_pob(12) error: buffer overflow 'pob->besr' 2 <= 2ppc405_uc.c:232 dcr_write_pob(12) error: buffer overflow 'pob->besr' 2 <= 2
The old code reads and writes besr[POB0_BESR1 - POB0_BESR0] or besr2...
pseries: Remove unnecessary locking from PAPR hash table hcalls
In the paravirtualized environment provided by PAPR, there is a standardlocking scheme so that hypercalls updating the hash page table fromdifferent guest threads don't corrupt the haah table state. We implement...
pseries: Set hash table size based on RAM size
Currently the pseries machine code always attempts to set the size of theguests's hash page table to 16MB. However, because of the way the POWERMMU works, a suitable hash page table size should really depend on memory...
pseries: Small cleanup to H_CEDE implementation
The H_CEDE hypercall implementation for the pseries machine doesn't triggerquite the right path in the main cpu exec loop. We should set exit_requestto pop up one extra level and recheck state, and we should set the...
pseries: Remove C bitfields from xics code
The XICS interrupt controller emulation uses some C bitfield variables inits internal state structure. This makes like awkward for saving the statebecause we don't have easy VMSTATE helpers for bitfields.
This patch removes the bitfields, instead using explicit bit masking in a...
View revisions
Also available in: Atom