[Qemu-devel] [PATCH 1/2] ppc64: Rudimentary Support for extra page sizes on server CPUs

2012-06-18 Thread Benjamin Herrenschmidt
More recent Power server chips (i.e. based on the 64 bit hash MMU) support more than just the traditional 4k and 16M page sizes. This can get quite complicated, because which page sizes are supported, which combinations are supported within an MMU segment and how these page sizes are encoded both

[Qemu-devel] [PATCH 2/2] pseries: Correctly create ibm, segment-page-sizes property

2012-06-18 Thread Benjamin Herrenschmidt
The core tcg/kvm code for ppc64 now has at least the outline capability to support pagesizes beyond the standard 4k and 16MB. The CPUState is initialized with information advertising the available pagesizes and their correct encodings, and under the right KVM setup this will be populated with page

[Qemu-devel] [PATCH] spapr_vscsi: Error handling fixes

2012-06-18 Thread Benjamin Herrenschmidt
We were incorrectly g_free'ing an object that isn't allocated in one error path and failed to release it completely in another This fixes qemu crashes with some cases of IO errors. Signed-off-by: Benjamin Herrenschmidt --- hw/spapr_vscsi.c |4 +++- 1 file changed, 3 insertions(+), 1 deletio

[Qemu-devel] Cant Upload tests to Wiki

2012-06-18 Thread Peter Crosthwaite
Hi, I'm trying to upload my little endian Microblaze test vector to the wiki, but the file upload restrictions are for images only and file size < 2MB. Can we relax these so I can upload my test vectors? Regards, Peter

[Qemu-devel] [PATCH v3] spapr: Add "memop" hypercall

2012-06-18 Thread Benjamin Herrenschmidt
This adds a qemu-specific hypervisor call to the pseries machine which allows to do what amounts to memmove, memcpy and xor over regions of physical memory such as the framebuffer. This is the simplest way to get usable framebuffer speed from SLOF since the framebuffer isn't mapped in the VRMA and

[Qemu-devel] [PATCH] cadence_gem: Avoid stack-writing buffer-overrun

2012-06-18 Thread Peter A. G. Crosthwaite
From: Jim Meyering Use sizeof(rxbuf)-size (not sizeof(rxbuf-size)) as the number of bytes to clear. The latter would always clear 4 or 8 bytes, possibly writing beyond the end of that stack buffer. Alternatively, depending on the value of the "size" parameter, it could fail to initialize the end

[Qemu-devel] [PATCH 00/13] iommu series

2012-06-18 Thread Benjamin Herrenschmidt
This is a rebase of the iommu series and the barrier patch together on top of current qemu. As for our discussions about doing things with Memory Regions etc I eventually came to the conclusion that we should just apply this first :-) My reasons (other than it makes my life much easier which it d

Re: [Qemu-devel] [PATCH v4 1/2] pl330: initial version

2012-06-18 Thread Peter Crosthwaite
On Tue, Jun 19, 2012 at 12:33 AM, Igor Mitsyanko wrote: > > Hi Peter, sorry for not properly reviewing your patch for such a long time, > I'll try to do this as soon as possible. Right now I have a few small > coments > > > > On 06/18/2012 04:42 AM, Peter A. G. Crosthwaite wrote: >> >> Device mode

[Qemu-devel] [PATCH 04/13] usb-ohci: Use universal DMA helper functions

2012-06-18 Thread Benjamin Herrenschmidt
From: David Gibson The OHCI device emulation can provide both PCI and SysBus OHCI implementations. Because of this, it was not previously converted to use the PCI DMA helper functions. This patch converts it to use the new universal DMA helper functions. In the PCI case, it obtains its DMAConte

[Qemu-devel] [PATCH 12/13] pseries: Implement IOMMU and DMA for PAPR PCI devices

2012-06-18 Thread Benjamin Herrenschmidt
From: David Gibson Currently the pseries machine emulation does not support DMA for emulated PCI devices, because the PAPR spec always requires a (guest visible, paravirtualized) IOMMU which was not implemented. Now that we have infrastructure for IOMMU emulation, we can correct this and allow P

[Qemu-devel] [PATCH 08/13] iommu: Introduce IOMMU emulation infrastructure

2012-06-18 Thread Benjamin Herrenschmidt
From: David Gibson This patch adds the basic infrastructure necessary to emulate an IOMMU visible to the guest. The DMAContext structure is extended with information and a callback describing the translation, and the various DMA functions used by devices will now perform IOMMU translation using

<    1   2   3