[Qemu-devel] [PATCH 06/17] PPC: dbdma: Fix debug print

2013-06-30 Thread Alexander Graf
There was a debug print that didn't compile for me because the format and the arguments weren't in sync. Fix it up. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/mac_dbdma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc

[Qemu-devel] [PATCH 01/17] PPC: Mac: Fix guest exported tbfreq values

2013-06-30 Thread Alexander Graf
We can tell the guest the frequency of its time base through fwcfg. However, we tell it a different value from the speed tb actually runs at. Let's fix it and make the tbfreq initialization and the fwcfg exposure use the same values. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc

[Qemu-devel] [PATCH 00/17] PPC: Mac OS X guest bringup v2

2013-06-30 Thread Alexander Graf
macos-v2 Enjoy! Alex v1 - v2: - fix spaces - use non-bitrotting DPRINTF for macio - clean up - fix dprintf - make processing a bool Alexander Graf (17): PPC: Mac: Fix guest exported tbfreq values PPC: g3beige: Move secondary IDE bus to mac-io PPC: Macio: Replace tabs

[Qemu-devel] [PATCH 02/17] PPC: g3beige: Move secondary IDE bus to mac-io

2013-06-30 Thread Alexander Graf
On a real G3 Beige the secondary IDE bus lives on the mac-io chip, not on some random PCI device. Move it there to become more compatible. While at it, also clean up the IDE channel connection logic. Signed-off-by: Alexander Graf ag...@suse.de --- v1 - v2: - fix spaces --- hw/ide/macio.c

[Qemu-devel] [PATCH 03/17] PPC: Macio: Replace tabs with spaces

2013-06-30 Thread Alexander Graf
s/^I//g on the file. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/macio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 7a1c573..82409dc 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -55,7 +55,7 @@ static

[Qemu-devel] [PATCH 07/17] PPC: dbdma: Allow new commands in RUN state

2013-06-30 Thread Alexander Graf
encountered with Mac OS X. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/mac_dbdma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdma.c index 908a123..ab32957 100644 --- a/hw/misc/macio/mac_dbdma.c +++ b/hw/misc

[Qemu-devel] [PATCH 05/17] PPC: Mac: Add debug prints in macio and dbdma code

2013-06-30 Thread Alexander Graf
disabled by default of course. Signed-off-by: Alexander Graf ag...@suse.de --- v1 - v2: - use non-bitrotting DPRINTF for macio - clean up --- hw/ide/macio.c| 43 --- hw/misc/macio/mac_dbdma.c | 14 +++--- 2 files changed, 51 insertions

[Qemu-devel] [PATCH 15/17] PPC: Add timer handler for newworld mac-io

2013-06-30 Thread Alexander Graf
Mac OS X 10.4 with -M mac99. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/macio.c | 32 1 file changed, 32 insertions(+) diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c index 548fea6..4c872c9 100644 --- a/hw/misc/macio/macio.c +++ b/hw

[Qemu-devel] [PATCH 10/17] PPC: dbdma: Move static bh variable to device struct

2013-06-30 Thread Alexander Graf
The DBDMA controller has a bottom half to asynchronously process DMA request queues. This bh was stored as a gross static variable. Move it into the device struct instead. While at it, move all users of it to the new generic kick function. Signed-off-by: Alexander Graf ag...@suse.de --- hw

[Qemu-devel] [PATCH 17/17] PPC: dbdma: Support more multi-issue DMA requests

2013-06-30 Thread Alexander Graf
, indicates to IDE core that transfer is complete - IDE request for 7 sectors - DBDMA finishes the DMA Reported-by: Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/macio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH 11/17] PPC: dbdma: macio: Add DMA callback

2013-06-30 Thread Alexander Graf
We need to know when the IDE core starts a DMA transfer. Add a notifier function so we have the chance to start transmitting data. Signed-off-by: Alexander Graf ag...@suse.de --- v1 - v2: - fix dprintf --- hw/ide/macio.c | 40 hw/ppc/mac.h | 2

[Qemu-devel] [PATCH 13/17] PPC: dbdma: Wait for DMA until we have data

2013-06-30 Thread Alexander Graf
We should only start processing DMA requests when we have data to process. Hold off working through the DMA shuffling until the IDE core told us that it's ready. This is required because the guest can program the DMA engine or the IDE transfer first. Both are legal. Signed-off-by: Alexander Graf

[Qemu-devel] [PATCH 14/17] PPC: dbdma: Support unaligned DMA access

2013-06-30 Thread Alexander Graf
to cache these unaligned sectors until the next DMA request, at which point the data might be successfully flushed from the pipe. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/macio.c | 129 ++--- include/hw/ppc/mac_dbdma.h | 3 ++ 2

[Qemu-devel] [PATCH 04/17] PPC: dbdma: Replace tabs with spaces

2013-06-30 Thread Alexander Graf
s/^I//g on the file with a few manual tweaks to align things. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/mac_dbdma.c | 102 +++--- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw

[Qemu-devel] [PATCH 12/17] PPC: dbdma: Move processing to io

2013-06-30 Thread Alexander Graf
Signed-off-by: Alexander Graf ag...@suse.de --- v1 - v2: - make processing a bool --- hw/misc/macio/mac_dbdma.c | 10 ++ include/hw/ppc/mac_dbdma.h | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdma.c index

[Qemu-devel] [PATCH 08/17] PPC: dbdma: Move defines into header file

2013-06-30 Thread Alexander Graf
We usually keep struct and constant definitions in header files. Move them there to stay consistent and to make access to fields easier. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/mac_dbdma.c | 117 include/hw/ppc/mac_dbdma.h | 118

[Qemu-devel] [PATCH 09/17] PPC: dbdma: Introduce kick function

2013-06-30 Thread Alexander Graf
The DBDMA engine really is running all the time, waiting for input. However we don't want to waste cycles constantly polling. So introduce a kick function that data providers can call to notify the DBDMA controller of new input. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio

Re: [Qemu-devel] [PATCH v2 08/30] ide/ich: QOM Upcast Sweep

2013-07-01 Thread Alexander Graf
On 01.07.2013, at 12:03, Andreas Färber wrote: Am 01.07.2013 01:36, schrieb Alexander Graf: On 30.06.2013, at 10:21, Andreas Färber wrote: Am 24.06.2013 08:55, schrieb peter.crosthwa...@xilinx.com: From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast

Re: [Qemu-devel] [PATCH 02/17] pseries: rework XICS

2013-07-01 Thread Alexander Graf
On 02.07.2013, at 02:06, David Gibson wrote: On Thu, Jun 27, 2013 at 10:17:19PM +1000, Alexey Kardashevskiy wrote: On 06/27/2013 09:47 PM, David Gibson wrote: On Thu, Jun 27, 2013 at 04:45:45PM +1000, Alexey Kardashevskiy wrote: Currently XICS interrupt controller is not a QEMU device. As we

Re: [Qemu-devel] [PATCH] MAINTAINERS: fix bad F: patterns

2013-07-02 Thread Alexander Graf
On 07/02/2013 01:29 PM, Peter Maydell wrote: Ping! Who are you pinging here? Alex thanks -- PMM On 24 June 2013 11:49, Peter Maydellpeter.mayd...@linaro.org wrote: This patch fixes a number of incorrect F: patterns which didn't match any files in the source tree. This was caused by a

Re: [Qemu-devel] [PATCH v2] spapr: Fix compiler warnings for some versions of gcc

2013-07-02 Thread Alexander Graf
On 06/29/2013 03:47 PM, Stefan Weil wrote: i686-w64-mingw32-gcc (GCC) 4.6.3 from Debian wheezy reports these warnings: hw/ppc/spapr_hcall.c:188:1: warning: control reaches end of non-void function [-Wreturn-type] hw/ppc/spapr_pci.c:454:1: warning: control reaches end of non-void function

Re: [Qemu-devel] [PATCH 1/3] spapr: Use named enum for function remove_hpte

2013-07-02 Thread Alexander Graf
On 06/24/2013 07:48 PM, Stefan Weil wrote: The function returned a target_ulong which was made from unnamed enum values. The target_ulong was then assigned to an int variable which was used in a switch statement. Using a named enum in both cases makes reviews easier. Signed-off-by: Stefan

Re: [Qemu-devel] [PATCH 3/3] spapr: Fix compiler warning for some versions of gcc (spapr_io_read)

2013-07-02 Thread Alexander Graf
On 06/24/2013 07:48 PM, Stefan Weil wrote: i686-w64-mingw32-gcc (GCC) 4.6.3 from Debian wheezy reports this warning: hw/ppc/spapr_pci.c:454:1: warning: control reaches end of non-void function [-Wreturn-type] Adding a default case to the switch statement satisfies the compiler. This

Re: [Qemu-devel] [PATCH v3] e600 core for MPC86xx processors

2013-07-02 Thread Alexander Graf
On 06/24/2013 11:15 PM, Julio Guerra wrote: MPC86xx processors are based on the e600 core, which is not the case in qemu where it is based on the 7400 processor. This patch creates the e600 core and instantiates the MPC86xx processors based on it. Therefore, adding the high BATs, the SPRG 4..7

Re: [Qemu-devel] [PATCH 05/30] exec: do not use qemu/tls.h

2013-07-02 Thread Alexander Graf
On 07/02/2013 03:40 PM, Andreas Färber wrote: Am 01.07.2013 23:34, schrieb Peter Maydell: On 1 July 2013 21:52, Paolo Bonzinipbonz...@redhat.com wrote: Il 01/07/2013 18:26, Peter Maydell ha scritto: Since the two largest cases are both cpu_single_env must be TLS (ie (a) system emulation

Re: [Qemu-devel] [PATCH 3/3] spapr: Fix compiler warning for some versions of gcc (spapr_io_read)

2013-07-02 Thread Alexander Graf
Am 02.07.2013 um 22:22 schrieb Stefan Weil s...@weilnetz.de: Am 02.07.2013 14:45, schrieb Alexander Graf: On 06/24/2013 07:48 PM, Stefan Weil wrote: i686-w64-mingw32-gcc (GCC) 4.6.3 from Debian wheezy reports this warning: hw/ppc/spapr_pci.c:454:1: warning: control reaches end of non

Re: [Qemu-devel] [PATCH] spapr: Respect -bios command line option for SLOF

2013-07-03 Thread Alexander Graf
On 03.07.2013, at 21:26, Andreas Färber wrote: Allow the user to override the firmware file name rather than always using slof.bin. Reported-by: Dinar Valeev k...@opensuse.org Cc: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Andreas Färber afaer...@suse.de Thanks, applied to

Re: [Qemu-devel] [PATCH 7/7] vl: Tighten parsing of -machine option phandle_start

2013-07-04 Thread Alexander Graf
On 04.07.2013, at 15:09, Markus Armbruster wrote: Make it QEMU_OPT_NUMBER, so it gets parsed by generic code, which actually bothers to check for errors, rather than its user, which doesn't. Cc: Alexander Graf ag...@suse.de Signed-off-by: Markus Armbruster arm...@redhat.com

Re: [Qemu-devel] [Qemu-ppc] Mac OS X on QEMU

2013-07-04 Thread Alexander Graf
On 04.07.2013, at 16:40, Programmingkid wrote: We have made a lot of progress in the last month with making Mac OS X run in QEMU. A lot of people are to thank for this milestone. To everyone involved, thank you. There is one thing that we have to figure out. That is the command key

Re: [Qemu-devel] [PATCH 7/7] vl: Tighten parsing of -machine option phandle_start

2013-07-04 Thread Alexander Graf
On 04.07.2013, at 17:01, Markus Armbruster wrote: Alexander Graf ag...@suse.de writes: On 04.07.2013, at 15:09, Markus Armbruster wrote: Make it QEMU_OPT_NUMBER, so it gets parsed by generic code, which actually bothers to check for errors, rather than its user, which doesn't. Cc

[Qemu-devel] [PATCH 1/9] linux-user: fix segmentation fault passing with h2g(x) != x

2013-07-05 Thread Alexander Graf
) makes the guest process a lot happier. This fixes java running in arm-linux-user for me. Signed-off-by: Alexander Graf ag...@suse.de --- user-exec.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/user-exec.c b/user-exec.c index 26cde7c..718c54f 100644 --- a/user-exec.c

[Qemu-devel] [PATCH 0/9] linux-user: Wine enablement patch set

2013-07-05 Thread Alexander Graf
Civilization II in wine on my ARM Chromebook: http://db.tt/AvHJOKSg Beware that this patch set is based on Andreas' qom-cpu branch. If you just want a working git tree to try this out on, check out: git://github.com/agraf/qemu.git linux-user-x86-tls-v1 Alex Alexander Graf (9): linux-user

[Qemu-devel] [PATCH 3/9] linux-user: Don't reset a new thread's CPU

2013-07-05 Thread Alexander Graf
When we create a new thread, there is no reason to reset it. I'm fairly sure the code has mostly been left in there because nobody understood why it was there in the first place. Remove the reset. A new thread's kernel sided state should be identical to the old one's. Signed-off-by: Alexander

[Qemu-devel] [PATCH 5/9] linux-user: Fix epoll on ARM hosts

2013-07-05 Thread Alexander Graf
targets. This fixes i386-on-ARM epoll emulation for me. Signed-off-by: Alexander Graf ag...@suse.de --- linux-user/syscall_defs.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 8b06a19..fbc3cac 100644

[Qemu-devel] [PATCH 7/9] linux-user: Enable NPTL for i386

2013-07-05 Thread Alexander Graf
The i386 target is now able to properly handle NPTL. Enable it. Signed-off-by: Alexander Graf ag...@suse.de --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 0e0adde..61f2770 100755 --- a/configure +++ b/configure @@ -4156,6

[Qemu-devel] [PATCH 2/9] linux-user: Add is_write segfault check for ARM hosts

2013-07-05 Thread Alexander Graf
it a read. So self modifying code fails with a segmentation fault whenever it tries to modify itself. Add the is_write evaluation based on what the kernel tells us as fault reason. Signed-off-by: Alexander Graf ag...@suse.de --- user-exec.c |3 +-- 1 files changed, 1 insertions(+), 2

[Qemu-devel] [PATCH 9/9] linux-user: Unlock mmap_lock when resuming guest from page_unprotect

2013-07-05 Thread Alexander Graf
() attempts in vain. Add a hint to tb_invalidate_phys_page() that we need to unlock before we can leave back into guest context, so that we don't leak the lock. This fixes 16-bit i386 wine programs running in linux-user for me. Signed-off-by: Alexander Graf ag...@suse.de --- translate-all.c

[Qemu-devel] [PATCH 4/9] linux-user: Fix sendrecvmsg() with QEMU_GUEST_BASE

2013-07-05 Thread Alexander Graf
guest pointer with guest pointer. Signed-off-by: Alexander Graf ag...@suse.de --- linux-user/syscall_defs.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 92c01a9..8b06a19 100644 --- a/linux-user/syscall_defs.h

[Qemu-devel] [PATCH 8/9] linux-user: Default to 64k guest base

2013-07-05 Thread Alexander Graf
access lower memory than it really can access. Set the default for the guest base to 64k which should be good enough on any host system. This fixes running i386 wine on ARM for me. Signed-off-by: Alexander Graf ag...@suse.de --- linux-user/main.c |6 +++--- 1 files changed, 3 insertions

[Qemu-devel] [PATCH 6/9] linux-user: Add i386 TLS setter

2013-07-05 Thread Alexander Graf
We can easily set the TLS on i386. Add code to do so. Signed-off-by: Alexander Graf ag...@suse.de --- linux-user/i386/target_cpu.h | 12 ++-- linux-user/syscall.c |2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/linux-user/i386/target_cpu.h b/linux

Re: [Qemu-devel] [PATCH] user-exec.c: Set is_write correctly in the ARM cpu_signal_handler()

2013-07-06 Thread Alexander Graf
will continue to behave as before this patch, but they are not really supported as hosts for linux-user mode anyway since they do not have the modern behaviour for unaligned accesses. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Acked-by: Alexander Graf ag...@suse.de Alex

Re: [Qemu-devel] [PATCH 2/9] linux-user: Add is_write segfault check for ARM hosts

2013-07-06 Thread Alexander Graf
On 06.07.2013, at 12:24, Peter Maydell wrote: On 6 July 2013 01:36, Alexander Graf ag...@suse.de wrote: When we get a segmentation fault we check whether the fault was a write. If it was a write, it might be a fault because we tried to modify a code region. This logic does not work on ARM

Re: [Qemu-devel] [PATCH 4/9] linux-user: Fix sendrecvmsg() with QEMU_GUEST_BASE

2013-07-06 Thread Alexander Graf
On 06.07.2013, at 12:42, Peter Maydell wrote: On 6 July 2013 01:36, Alexander Graf ag...@suse.de wrote: While looking for cmsg entries, we want to compare guest pointers to see whether we're at the end of the passed in array. However, what we really do is we compare our in-use host pointer

Re: [Qemu-devel] [PATCH 5/9] linux-user: Fix epoll on ARM hosts

2013-07-06 Thread Alexander Graf
On 06.07.2013, at 12:45, Peter Maydell wrote: On 6 July 2013 01:36, Alexander Graf ag...@suse.de wrote: diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 8b06a19..fbc3cac 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -2434,8 +2434,11

Re: [Qemu-devel] [PATCH 7/9] linux-user: Enable NPTL for i386

2013-07-06 Thread Alexander Graf
On 06.07.2013, at 12:48, Peter Maydell wrote: On 6 July 2013 01:36, Alexander Graf ag...@suse.de wrote: The i386 target is now able to properly handle NPTL. Enable it. This will conflict with the on-list series which reverses the default for target_nptl in this bit of configure (though

[Qemu-devel] [PATCH 4/9] linux-user: Clean up sendrecvmsg message parsing

2013-07-06 Thread Alexander Graf
. Signed-off-by: Alexander Graf ag...@suse.de --- linux-user/syscall.c | 25 --- linux-user/syscall_defs.h | 58 ++-- 2 files changed, 55 insertions(+), 28 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH 7/9] linux-user: Enable NPTL for i386

2013-07-06 Thread Alexander Graf
The i386 target is now able to properly handle NPTL. Enable it. Signed-off-by: Alexander Graf ag...@suse.de --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 0e0adde..61f2770 100755 --- a/configure +++ b/configure @@ -4156,6

[Qemu-devel] [PATCH 0/9] Wine enablement patch set v2

2013-07-06 Thread Alexander Graf
for ARM is_write support - add h2g_unchecked() macro - rewrite cpu reset on cpu clone code - rewrite sendrcvmsg() patch Alexander Graf (8): linux-user: fix segmentation fault passing with h2g(x) != x linux-user: Reset copied CPUs in cpu_copy() always linux-user: Clean up sendrecvmsg

[Qemu-devel] [PATCH 3/9] linux-user: Reset copied CPUs in cpu_copy() always

2013-07-06 Thread Alexander Graf
When a new thread gets created, we need to reset non arch specific state to get the new CPU into clean state. However this reset should happen before the arch specific CPU contents get copied over. Otherwise we end up having clean reset state in our newly created thread. Signed-off-by: Alexander

[Qemu-devel] [PATCH 8/9] linux-user: Default to 64k guest base

2013-07-06 Thread Alexander Graf
access lower memory than it really can access. Set the default for the guest base to 64k which should be good enough on any host system. This fixes running i386 wine on ARM for me. Signed-off-by: Alexander Graf ag...@suse.de --- linux-user/main.c |6 +++--- 1 files changed, 3 insertions

[Qemu-devel] [PATCH 2/9] user-exec.c: Set is_write correctly in the ARM cpu_signal_handler()

2013-07-06 Thread Alexander Graf
will continue to behave as before this patch, but they are not really supported as hosts for linux-user mode anyway since they do not have the modern behaviour for unaligned accesses. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Acked-by: Alexander Graf ag...@suse.de Signed-off-by: Alexander Graf

[Qemu-devel] [PATCH 6/9] linux-user: Add i386 TLS setter

2013-07-06 Thread Alexander Graf
We can easily set the TLS on i386. Add code to do so. Signed-off-by: Alexander Graf ag...@suse.de --- linux-user/i386/target_cpu.h | 12 ++-- linux-user/syscall.c |2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/linux-user/i386/target_cpu.h b/linux

[Qemu-devel] [PATCH 5/9] linux-user: Fix epoll on ARM hosts

2013-07-06 Thread Alexander Graf
targets. This fixes i386-on-ARM epoll emulation for me. Signed-off-by: Alexander Graf ag...@suse.de --- linux-user/syscall_defs.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 84da7f7..c99aed6 100644

[Qemu-devel] [PATCH 1/9] linux-user: fix segmentation fault passing with h2g(x) != x

2013-07-06 Thread Alexander Graf
. Signed-off-by: Alexander Graf ag...@suse.de --- include/exec/cpu-all.h |8 ++-- user-exec.c|4 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 6499cd0..320e3c4 100644 --- a/include/exec/cpu-all.h +++ b

[Qemu-devel] [PATCH 9/9] linux-user: Unlock mmap_lock when resuming guest from page_unprotect

2013-07-06 Thread Alexander Graf
() attempts in vain. Add a hint to tb_invalidate_phys_page() that we need to unlock before we can leave back into guest context, so that we don't leak the lock. This fixes 16-bit i386 wine programs running in linux-user for me. Signed-off-by: Alexander Graf ag...@suse.de --- translate-all.c

Re: [Qemu-devel] [PATCH 0/8] Add virtio-mmio and use it in vexpress

2013-07-08 Thread Alexander Graf
On 27.06.2013, at 15:04, Peter Maydell wrote: This patch series adds an implementation of the virtio-mmio transport, and uses it in the vexpress-a9 and vexpress-a15 board models. The basic idea is that the board instantiates some transports, I really dislike that idea. Couldn't you also

Re: [Qemu-devel] [PATCH 0/8] Add virtio-mmio and use it in vexpress

2013-07-08 Thread Alexander Graf
On 08.07.2013, at 14:57, Alexander Graf wrote: On 27.06.2013, at 15:04, Peter Maydell wrote: This patch series adds an implementation of the virtio-mmio transport, and uses it in the vexpress-a9 and vexpress-a15 board models. The basic idea is that the board instantiates some

Re: [Qemu-devel] [PATCH 0/8] Add virtio-mmio and use it in vexpress

2013-07-08 Thread Alexander Graf
On 08.07.2013, at 15:08, Peter Maydell wrote: On 8 July 2013 13:59, Alexander Graf ag...@suse.de wrote: On 08.07.2013, at 14:57, Alexander Graf wrote: On 27.06.2013, at 15:04, Peter Maydell wrote: The basic idea is that the board instantiates some transports, I really dislike that idea

Re: [Qemu-devel] [PATCH 0/8] Add virtio-mmio and use it in vexpress

2013-07-08 Thread Alexander Graf
On 08.07.2013, at 15:23, Peter Maydell wrote: On 8 July 2013 14:16, Alexander Graf ag...@suse.de wrote: On 08.07.2013, at 15:08, Peter Maydell wrote: On 8 July 2013 13:59, Alexander Graf ag...@suse.de wrote: On 08.07.2013, at 14:57, Alexander Graf wrote: On 27.06.2013, at 15:04, Peter

Re: [Qemu-devel] [PATCH 01/17] pseries: move interrupt controllers to hw/intc/

2013-07-08 Thread Alexander Graf
On 08.07.2013, at 20:15, Anthony Liguori wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: Anthony Liguori aligu...@us.ibm.com Thanks, applied to ppc-next. Alex

Re: [Qemu-devel] [PATCH 11/17] pseries: savevm support for pseries machine

2013-07-08 Thread Alexander Graf
On 08.07.2013, at 20:45, Anthony Liguori wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: From: David Gibson da...@gibson.dropbear.id.au This adds the necessary pieces to implement savevm / migration for the pseries machine. The most complex part here is migrating the hash table -

Re: [Qemu-devel] [PATCH 0/8] Add virtio-mmio and use it in vexpress

2013-07-08 Thread Alexander Graf
On 08.07.2013, at 22:08, Anthony Liguori wrote: Peter Maydell peter.mayd...@linaro.org writes: On 8 July 2013 14:45, Alexander Graf ag...@suse.de wrote: On 08.07.2013, at 15:23, Peter Maydell wrote: Now I'm completely confused. Why would assigned devices have anything to do with this? Can

Re: [Qemu-devel] [PATCH v4] s390: Implement dump-guest-memory support for target s390x

2013-07-10 Thread Alexander Graf
On 10.07.2013, at 12:27, Christian Borntraeger wrote: On 05/07/13 14:02, Jens Freimann wrote: With this patch dump-guest-memory on s390 produces an ELF formatted, crash-readable dump. In order to implement this, the arch-specific part of dump-guest-memory was added:

Re: [Qemu-devel] [PATCH 0/8] Add virtio-mmio and use it in vexpress

2013-07-10 Thread Alexander Graf
On 08.07.2013, at 23:06, Anthony Liguori wrote: Alexander Graf ag...@suse.de writes: On 08.07.2013, at 22:08, Anthony Liguori wrote: I think we're trying to fit a square peg into a round hole. virtio-mmio is a virtio transport where each device has a dedicated set of system resources

Re: [Qemu-devel] [PATCH 16/17] ppc64: Enable QEMU to run on POWER 8 DD1 chip.

2013-07-10 Thread Alexander Graf
On 04.07.2013, at 08:42, Prerna Saxena wrote: Hi Andreas, Thank you for taking a look. I have incorporated your feedback into a new patch, attached herewith. Regards, Prerna Subject: [PATCH] target-ppc: Add POWER8 v1.0 CPU model This patch adds CPU PVR definition for POWER8, and

Re: [Qemu-devel] [PATCH v4] s390: Implement dump-guest-memory support for target s390x

2013-07-10 Thread Alexander Graf
On 10.07.2013, at 14:15, Andreas Färber wrote: Am 10.07.2013 12:37, schrieb Alexander Graf: On 10.07.2013, at 12:27, Christian Borntraeger wrote: On 05/07/13 14:02, Jens Freimann wrote: With this patch dump-guest-memory on s390 produces an ELF formatted, crash-readable dump. In order

Re: [Qemu-devel] [Qemu-ppc] Mac OS X on QEMU

2013-07-10 Thread Alexander Graf
:51 AM, Stefan Hajnoczi wrote: On Thu, Jul 4, 2013 at 4:45 PM, Alexander Graf ag...@suse.de wrote: On 04.07.2013, at 16:40, Programmingkid wrote: We have made a lot of progress in the last month with making Mac OS X run in QEMU. A lot of people are to thank for this milestone. To everyone

Re: [Qemu-devel] [RFC] s/qemu_devtree/qemu_fdt

2013-07-11 Thread Alexander Graf
On 11.07.2013, at 09:56, Peter Crosthwaite wrote: Hi All, Any objections to a tree wide: s/qemu_devtree/qemu_fdt FWIU, the qemu_ prefix is supposed to indicate a wrapping of an API, in this case that API clearly being fdt_ not devtree_. It buys back a previous 4 chars, in line

Re: [Qemu-devel] [PATCH v3 11/14] ioport: Switch dispatching to memory core layer

2013-07-11 Thread Alexander Graf
On 24.06.2013, at 08:07, Jan Kiszka wrote: On 2013-06-23 22:50, Hervé Poussineau wrote: Jan Kiszka a écrit : From: Jan Kiszka jan.kis...@siemens.com The current ioport dispatcher is a complex beast, mostly due to the need to deal with old portio interface users. But we can overcome it

Re: [Qemu-devel] [PATCH v3 11/14] ioport: Switch dispatching to memory core layer

2013-07-11 Thread Alexander Graf
On 11.07.2013, at 14:29, Alexander Graf wrote: On 24.06.2013, at 08:07, Jan Kiszka wrote: On 2013-06-23 22:50, Hervé Poussineau wrote: Jan Kiszka a écrit : From: Jan Kiszka jan.kis...@siemens.com The current ioport dispatcher is a complex beast, mostly due to the need to deal

Re: [Qemu-devel] [PATCH v3 11/14] ioport: Switch dispatching to memory core layer

2013-07-11 Thread Alexander Graf
On 11.07.2013, at 14:46, Andreas Färber wrote: Am 11.07.2013 14:34, schrieb Alexander Graf: On 11.07.2013, at 14:29, Alexander Graf wrote: On 24.06.2013, at 08:07, Jan Kiszka wrote: On 2013-06-23 22:50, Hervé Poussineau wrote: Jan Kiszka a écrit : From: Jan Kiszka jan.kis

Re: [Qemu-devel] [PATCH v3 11/14] ioport: Switch dispatching to memory core layer

2013-07-11 Thread Alexander Graf
On 11.07.2013, at 14:48, Alexander Graf wrote: On 11.07.2013, at 14:46, Andreas Färber wrote: Am 11.07.2013 14:34, schrieb Alexander Graf: On 11.07.2013, at 14:29, Alexander Graf wrote: On 24.06.2013, at 08:07, Jan Kiszka wrote: On 2013-06-23 22:50, Hervé Poussineau wrote: Jan

Re: [Qemu-devel] [PATCH v3 11/14] ioport: Switch dispatching to memory core layer

2013-07-11 Thread Alexander Graf
On 11.07.2013, at 15:28, Alexander Graf wrote: On 11.07.2013, at 14:48, Alexander Graf wrote: On 11.07.2013, at 14:46, Andreas Färber wrote: Am 11.07.2013 14:34, schrieb Alexander Graf: On 11.07.2013, at 14:29, Alexander Graf wrote: On 24.06.2013, at 08:07, Jan Kiszka wrote

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/17] PPC: Mac OS X guest bringup v2

2013-07-11 Thread Alexander Graf
On 01.07.2013, at 02:13, Alexander Graf wrote: Recently there has been a lot of progress on the OpenBIOS side to get Mac OS X to boot. For a while now it seemed there was only very little to make it a fully working guest os in QEMU. This patch set is the result of this. With this I

[Qemu-devel] [PATCH 17/22] PPC: dbdma: macio: Add DMA callback

2013-07-11 Thread Alexander Graf
We need to know when the IDE core starts a DMA transfer. Add a notifier function so we have the chance to start transmitting data. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/macio.c | 40 hw/ppc/mac.h | 2 ++ 2 files changed, 42 insertions

[Qemu-devel] [PATCH 03/22] spapr: Use named enum for function remove_hpte

2013-07-11 Thread Alexander Graf
...@weilnetz.de Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr_hcall.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index 8bad27f..ed32dec 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -121,14

[Qemu-devel] [PATCH 11/22] PPC: Mac: Add debug prints in macio and dbdma code

2013-07-11 Thread Alexander Graf
disabled by default of course. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/macio.c| 43 --- hw/misc/macio/mac_dbdma.c | 14 +++--- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/hw/ide/macio.c b/hw/ide/macio.c

[Qemu-devel] [PATCH 15/22] PPC: dbdma: Introduce kick function

2013-07-11 Thread Alexander Graf
The DBDMA engine really is running all the time, waiting for input. However we don't want to waste cycles constantly polling. So introduce a kick function that data providers can call to notify the DBDMA controller of new input. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio

[Qemu-devel] [PATCH 10/22] PPC: dbdma: Replace tabs with spaces

2013-07-11 Thread Alexander Graf
s/^I//g on the file with a few manual tweaks to align things. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/mac_dbdma.c | 102 +++--- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw

[Qemu-devel] [PATCH 20/22] PPC: dbdma: Support unaligned DMA access

2013-07-11 Thread Alexander Graf
to cache these unaligned sectors until the next DMA request, at which point the data might be successfully flushed from the pipe. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/macio.c | 131 ++--- include/hw/ppc/mac_dbdma.h | 3 ++ 2

[Qemu-devel] [PATCH 14/22] PPC: dbdma: Move defines into header file

2013-07-11 Thread Alexander Graf
We usually keep struct and constant definitions in header files. Move them there to stay consistent and to make access to fields easier. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/mac_dbdma.c | 117 include/hw/ppc/mac_dbdma.h | 118

[Qemu-devel] [PATCH 07/22] PPC: Mac: Fix guest exported tbfreq values

2013-07-11 Thread Alexander Graf
We can tell the guest the frequency of its time base through fwcfg. However, we tell it a different value from the speed tb actually runs at. Let's fix it and make the tbfreq initialization and the fwcfg exposure use the same values. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc

[Qemu-devel] [PATCH 21/22] PPC: Add timer handler for newworld mac-io

2013-07-11 Thread Alexander Graf
Mac OS X 10.4 with -M mac99. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/macio.c | 33 + 1 file changed, 33 insertions(+) diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c index 6459bc1..c0d0bf7 100644 --- a/hw/misc/macio/macio.c +++ b/hw

[Qemu-devel] [PATCH 18/22] PPC: dbdma: Move processing to io

2013-07-11 Thread Alexander Graf
Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/mac_dbdma.c | 10 ++ include/hw/ppc/mac_dbdma.h | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdma.c index 4ca0491..f47a736 100644 --- a/hw/misc/macio

[Qemu-devel] [PATCH 08/22] PPC: g3beige: Move secondary IDE bus to mac-io

2013-07-11 Thread Alexander Graf
On a real G3 Beige the secondary IDE bus lives on the mac-io chip, not on some random PCI device. Move it there to become more compatible. While at it, also clean up the IDE channel connection logic. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/macio.c| 2 +- hw/misc/macio

[Qemu-devel] [PATCH 06/22] target-ppc: Add POWER8 v1.0 CPU model

2013-07-11 Thread Alexander Graf
...@samba.org Reviewed-by: Andreas Farber afaer...@suse.de Signed-off-by: Alexander Graf ag...@suse.de --- target-ppc/cpu-models.c | 3 +++ target-ppc/cpu-models.h | 1 + target-ppc/translate_init.c | 34 ++ 3 files changed, 38 insertions(+) diff --git a/target-ppc

[Qemu-devel] [PATCH 09/22] PPC: Macio: Replace tabs with spaces

2013-07-11 Thread Alexander Graf
s/^I//g on the file. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/macio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 0b05a74..60b64ac 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -55,7 +55,7 @@ static

[Qemu-devel] [PATCH 13/22] PPC: dbdma: Allow new commands in RUN state

2013-07-11 Thread Alexander Graf
encountered with Mac OS X. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/mac_dbdma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdma.c index 3b1e97e..7656767 100644 --- a/hw/misc/macio/mac_dbdma.c +++ b/hw/misc

[Qemu-devel] [PATCH 01/22] e600 core for MPC86xx processors

2013-07-11 Thread Alexander Graf
, which are e600-specific [1], and a HW MMU model (as 7400). This allows to define the MPC8610 processor too. Tested with a kernel using the HW TLB misses. [1] http://cache.freescale.com/files/32bit/doc/ref_manual/E600CORERM.pdf Signed-off-by: Julio Guerra gu...@julio.in Signed-off-by: Alexander

[Qemu-devel] [PATCH 04/22] spapr: Respect -bios command line option for SLOF

2013-07-11 Thread Alexander Graf
From: Andreas Färber afaer...@suse.de Allow the user to override the firmware file name rather than always using slof.bin. Reported-by: Dinar Valeev k...@opensuse.org Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr.c | 5 - 1 file

[Qemu-devel] [PATCH 22/22] PPC: dbdma: Support more multi-issue DMA requests

2013-07-11 Thread Alexander Graf
, indicates to IDE core that transfer is complete - IDE request for 7 sectors - DBDMA finishes the DMA Reported-by: Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/macio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH 19/22] PPC: dbdma: Wait for DMA until we have data

2013-07-11 Thread Alexander Graf
We should only start processing DMA requests when we have data to process. Hold off working through the DMA shuffling until the IDE core told us that it's ready. This is required because the guest can program the DMA engine or the IDE transfer first. Both are legal. Signed-off-by: Alexander Graf

[Qemu-devel] [PATCH 16/22] PPC: dbdma: Move static bh variable to device struct

2013-07-11 Thread Alexander Graf
The DBDMA controller has a bottom half to asynchronously process DMA request queues. This bh was stored as a gross static variable. Move it into the device struct instead. While at it, move all users of it to the new generic kick function. Signed-off-by: Alexander Graf ag...@suse.de --- hw

[Qemu-devel] [PATCH 12/22] PPC: dbdma: Fix debug print

2013-07-11 Thread Alexander Graf
There was a debug print that didn't compile for me because the format and the arguments weren't in sync. Fix it up. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/macio/mac_dbdma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc

[Qemu-devel] [PULL 00/22] ppc patch queue 2013-07-11

2013-07-11 Thread Alexander Graf
-issue DMA requests (2013-07-11 18:51:25 +0200) Alexander Graf (16): PPC: Mac: Fix guest exported tbfreq values PPC: g3beige: Move secondary IDE bus to mac-io PPC: Macio: Replace tabs with spaces PPC: dbdma

[Qemu-devel] [PATCH 05/22] pseries: move interrupt controllers to hw/intc/

2013-07-11 Thread Alexander Graf
From: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: Andreas Färber afaer...@suse.de Signed-off-by: Alexander Graf ag...@suse.de --- default-configs/ppc64-softmmu.mak | 2 ++ hw/intc/Makefile.objs | 1 + hw/{ppc = intc}/xics.c

[Qemu-devel] [PATCH 02/22] spapr: Fix compiler warnings for some versions of gcc

2013-07-11 Thread Alexander Graf
-by: Stefan Weil s...@weilnetz.de Acked-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr_hcall.c | 2 +- hw/ppc/spapr_pci.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 11/14] ioport: Switch dispatching to memory core layer

2013-07-11 Thread Alexander Graf
Am 12.07.2013 um 00:32 schrieb Benjamin Herrenschmidt b...@kernel.crashing.org: On Thu, 2013-07-11 at 15:28 +0200, Alexander Graf wrote: Semantically having your PCI host bridge do the endianness conversion is the correct way of handling it, as that's where the conversion happens

Re: [Qemu-devel] BUG report Re: [PATCH] spapr-pci: change endianness for io ports space

2013-07-12 Thread Alexander Graf
Am 12.07.2013 um 10:59 schrieb Alexey Kardashevskiy a...@ozlabs.ru: Hi! Got a small lesson from Ben how to post stuff to the list and here are more details :) Every PCI device which uses IO ports (at least vga, e1000, virtio-pci, rtl8139) is broken in the master branch of QEMU for

Re: [Qemu-devel] [PATCH v3 11/14] ioport: Switch dispatching to memory core layer

2013-07-12 Thread Alexander Graf
Am 12.07.2013 um 14:56 schrieb Anthony Liguori anth...@codemonkey.ws: Alexander Graf ag...@suse.de writes: On 11.07.2013, at 14:29, Alexander Graf wrote: This patch breaks VGA on PPC as it is in master today. If I don't mark portio as little endian it works as expected. There's

<    1   2   3   4   5   6   7   8   9   10   >