[Qemu-devel] [PATCH 11/32] intc/openpic_kvm: Fix QOM and build issues

2013-06-29 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- default-configs/ppcemb-softmmu.mak | 1 + hw/intc/openpic_kvm.c | 54 +++--- hw/ppc/e500.c | 2 +- include/hw/ppc/openpic.h | 1 +

[Qemu-devel] [PATCH 23/32] booke_ppc: limit booke timer to max when timeout overflow

2013-06-29 Thread Alexander Graf
From: Bharat Bhushan Limit watchdog and fit timer to maximum timeout value which qemu timer can support (INT64_MAX). This maximum timeout will be hundreds of years, so limiting to max timeout is pretty safe. Signed-off-by: Bharat Bhushan Signed-off-by: Alexander Graf --- hw/ppc/ppc_booke.c |

[Qemu-devel] [PATCH 19/32] pseries: Fix compiler warning (conversion of pointer to integral value)

2013-06-29 Thread Alexander Graf
From: Stefan Weil This kind of type cast must use uintptr_t or target_ulong to be portable for hosts with sizeof(void *) != sizeof(long). Here the value is assigned to a variable of type target_ulong. Signed-off-by: Stefan Weil [agraf: fix compilation on 32bit hosts] Signed-off-by: Alexander G

[Qemu-devel] [PATCH 09/32] intc/openpic: QOM'ify

2013-06-29 Thread Alexander Graf
From: Andreas Färber Introduce type constant and cast macro. Signed-off-by: Andreas Färber Reviewed-by: Peter Crosthwaite Signed-off-by: Alexander Graf --- hw/intc/openpic.c| 17 +++-- hw/ppc/e500.c| 2 +- hw/ppc/mac_newworld.c| 2 +- include/hw/ppc/open

[Qemu-devel] [PATCH 04/32] openpic: factor out some common defines into openpic.h

2013-06-29 Thread Alexander Graf
From: Scott Wood ...for use by the KVM in-kernel irqchip stub. Signed-off-by: Scott Wood Signed-off-by: Alexander Graf --- hw/intc/openpic.c| 40 ++-- include/hw/ppc/openpic.h | 11 +++ 2 files changed, 29 insertions(+), 22 deletions(-) dif

[Qemu-devel] [PATCH 10/32] intc/openpic: Convert to QOM realize

2013-06-29 Thread Alexander Graf
From: Andreas Färber Split qdev initfn into instance_init and realize functions. Change one occurrence of "klass" while at it. Signed-off-by: Andreas Färber Reviewed-by: Peter Crosthwaite Signed-off-by: Alexander Graf --- hw/intc/openpic.c | 34 +++--- 1 file chan

[Qemu-devel] [PATCH 21/32] pseries: Update MAINTAINERS information

2013-06-29 Thread Alexander Graf
From: David Gibson I'm no longer at IBM, and therefore no long actively working on the pseries (aka sPAPR) qemu machine type. This patch removes my information in the MAINTAINERS file. While we're at it, I've added some extra file patterns for pseries specific files that weren't included in the

[Qemu-devel] [PATCH 22/32] Graphics: Switch to 800x600x32 as default mode

2013-06-29 Thread Alexander Graf
We have stayed at 800x600x15 as default graphics mode for the last 9 years. If there ever was a reason to be there, surely nobody remembers it. However, recently non-Linux PPC guests started to show bad effects on 15 bit color mode. They do work just fine with 32 bits however. So let's switch to

[Qemu-devel] [PATCH 17/32] target-ppc: Change default machine for 64-bit

2013-06-29 Thread Alexander Graf
From: David Gibson Currently, for qemu-system-ppc64, the default machine type is 'mac99'. The mac99 machine is not being actively maintained, and represents a bizarre hybrid of components that never actually existed as a real system. This patch changes the default machine to 'pseries', which is a

[Qemu-devel] [PATCH 13/32] mpc8544_guts: QOM'ify

2013-06-29 Thread Alexander Graf
From: Andreas Färber Introduce type constant, cast macro and rename parent field. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- hw/ppc/mpc8544_guts.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hw/ppc/mpc8544_guts.c b/hw/ppc/mpc8544_gut

[Qemu-devel] [PATCH 28/32] PPC: Add clock-frequency export for Mac machines

2013-06-29 Thread Alexander Graf
Support in fwcfg has been around for exposure of the clock-frequency CPU property. OpenBIOS reads it, we just never exposed it. Since Mac OS X is very picky about its clock frequency values, let's just take a known good value and always expose that. Reported-by: Mark Cave-Ayland Signed-off-by: A

[Qemu-devel] [PATCH 05/32] PPC: e500: factor out mpic init code

2013-06-29 Thread Alexander Graf
From: Scott Wood KVM in-kernel MPIC support is going to expand this even more, so let's keep it contained. Signed-off-by: Scott Wood Signed-off-by: Alexander Graf --- hw/ppc/e500.c | 56 ++-- 1 file changed, 34 insertions(+), 22 deletions(-)

[Qemu-devel] [PATCH 08/32] kvm/openpic: in-kernel mpic support

2013-06-29 Thread Alexander Graf
From: Scott Wood Enables support for the in-kernel MPIC that thas been merged into the KVM next branch. This includes irqfd/KVM_IRQ_LINE support from Alex Graf (along with some other improvements). Note from Alex regarding kvm_irqchip_create(): On x86, one would call kvm_irqchip_create() to

[Qemu-devel] [PATCH 30/32] PPC: Newworld: Add second uninorth control register set

2013-06-29 Thread Alexander Graf
Mac OS X requires a second uninorth register set to be mapped a few bytes above the first one. Let's just expose it to make it happy. Signed-off-by: Alexander Graf --- hw/ppc/mac_newworld.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c inde

[Qemu-devel] [PATCH 14/32] mpc8544_guts: Turn qdev initfn into instance_init

2013-06-29 Thread Alexander Graf
From: Andreas Färber SysBus can deal with NULL SysBusDeviceClass::init since 4ce5dae. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- hw/ppc/mpc8544_guts.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/hw/ppc/mpc8544_guts.c b/hw/ppc/mp

[Qemu-devel] [PATCH 20/32] target-ppc kvm: save cr register

2013-06-29 Thread Alexander Graf
From: Alexey Kardashevskiy This adds a missing code to save CR (condition register) via kvm_arch_put_registers(). kvm_arch_get_registers() already has it. Signed-off-by: Alexey Kardashevskiy Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- target-ppc/kvm.c | 5 + 1 file chan

[Qemu-devel] [PATCH 24/32] target-ppc: Introduce unrealizefn for PowerPCCPU

2013-06-29 Thread Alexander Graf
From: Andreas Färber Use it to clean up the opcode table, resolving a former TODO from Jocelyn. Also switch from malloc() to g_malloc(). Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/cpu.h| 4 +++- target-ppc/translate_init.c | 16 +++- 2

[Qemu-devel] [PATCH 18/32] spapr-rtas: add CPU argument to RTAS calls

2013-06-29 Thread Alexander Graf
From: Anthony Liguori RTAS is a hypervisor provided binary blob that a guest loads and calls into to execute certain functions. It's similar to the vsyscall page in Linux or the short lived VMCI paravirt interface from VMware. The QEMU implementation of the RTAS blob is simply a passthrough tha

[Qemu-devel] [PATCH 25/32] PPC: Add dump_mmu() for 6xx

2013-06-29 Thread Alexander Graf
From: Fabien Chouteau "(qemu) info tlb" is a very useful tool for debugging, so I implemented the missing 6xx version. Signed-off-by: Fabien Chouteau [agraf: fix printfs on hwaddr to PRI] Signed-off-by: Alexander Graf --- target-ppc/mmu_helper.c | 92 ++

[Qemu-devel] [PATCH 31/32] mac-io: Add escc-legacy memory alias region

2013-06-29 Thread Alexander Graf
Mac OS X's debugging serial driver accesses the ESCC through a different register layout, called "escc-legacy". This layout differs from the normal escc register layout purely by the location of the respective registers. This patch adds a memory alias region that takes normal escc registers and ma

[Qemu-devel] [PATCH 27/32] PPC: Introduce an alias cache for faster lookups

2013-06-29 Thread Alexander Graf
When running QEMU with "-cpu ?" we walk through every alias for every target CPU we know about. This takes several seconds on my very fast host system. Let's introduce a class object cache in the alias table. Using that we don't have to go through the tedious work of finding our target class. Inst

[Qemu-devel] [PATCH 15/32] target-ppc: Drop redundant flags assignments from CPU families

2013-06-29 Thread Alexander Graf
From: Andreas Färber Previous code has #define POWERPC_INSNS2_ PPC_NONE in some places for macrofied assignment to insns_flags2 field. PPC_NONE is defined as zero though and QOM classes are zero-initialized, so drop any pcc->insns_flags2 = PPC_NONE; assignments. PPC_NONE itself is still in use

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

2013-06-29 Thread Alexander Graf
Mac OS X accesses fancy timer registers inside of the mac-io on bootup. These really should be ticking at the mac-io bus frequency, but I don't see anyone upset when we just make them as fast as we want to. With this patch on top of my previous patch queue and latest OpenBIOS I am able to boot Ma

[Qemu-devel] [PATCH] migration: add timeout option for tcp migration send/receive socket

2013-06-29 Thread Zhanghaoyu (A)
When network disconnection occurs during live migration, the migration thread will be stuck in the function sendmsg(), as the migration socket is in ~O_NONBLOCK mode now. Signed-off-by: Zeng Junliang --- include/migration/migration.h |4 migration-tcp.c | 23 ++

Re: [Qemu-devel] [PATCH 08/32] kvm/openpic: in-kernel mpic support

2013-06-29 Thread Andreas Färber
Am 30.06.2013 03:44, schrieb Alexander Graf: > From: Scott Wood > > Enables support for the in-kernel MPIC that thas been merged into the > KVM next branch. This includes irqfd/KVM_IRQ_LINE support from Alex > Graf (along with some other improvements). > > Note from Alex regarding kvm_irqchip_c

[Qemu-devel] [Bug 1196145] [NEW] usb-host: hostaddr=0XX is parsed as octal number

2013-06-29 Thread Sascha Krissler
Public bug reported: when doing device_add usb-host,hostaddr=010 taking 010 in the format of both lsusb or udev, qemu parses an octal number and assumes hostaddr=8. (i used a 2.0 device on the ehci.0 bus) at least to me that is confusing. also: when adding a non-existent usb device (bogus hos

[Qemu-devel] [Bug 1196145] Re: usb-host: hostaddr=0XX is parsed as octal number

2013-06-29 Thread Sascha Krissler
ps: when using host-libusb.c and tested on 1.5.1.tgz -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1196145 Title: usb-host: hostaddr=0XX is parsed as octal number Status in QEMU: New Bug descri

Re: [Qemu-devel] [PATCH 27/32] PPC: Introduce an alias cache for faster lookups

2013-06-29 Thread Andreas Färber
Am 30.06.2013 03:45, schrieb Alexander Graf: > When running QEMU with "-cpu ?" we walk through every alias for every > target CPU we know about. This takes several seconds on my very fast > host system. > > Let's introduce a class object cache in the alias table. Using that we > don't have to go t

Re: [Qemu-devel] [Qemu-ppc] [PATCH] RFCv3 kvm irqfd: support msimessage to irq translation in PHB

2013-06-29 Thread Benjamin Herrenschmidt
On Sun, 2013-06-30 at 10:59 +1000, Alexey Kardashevskiy wrote: > > 1) A PCI bus function to do the MSI -> virq mapping > > 2) On x86 (and e500), this is implemented by calling > > kvm_irqchip_add_msi_route() > > 3) On pseries, this just returns msi->data > > > > Perhaps (2) can just be the defaul

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

2013-06-29 Thread Andreas Färber
Am 30.06.2013 03:26, schrieb 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 > > ---

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

2013-06-29 Thread Andreas Färber
Am 30.06.2013 03:26, schrieb Alexander Graf: > s/^I//g on the file with a few manual tweaks to align things. > > Signed-off-by: Alexander Graf > --- > hw/misc/macio/mac_dbdma.c | 102 > +++--- > 1 file changed, 51 insertions(+), 51 deletions(-) >

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

2013-06-29 Thread Andreas Färber
Am 30.06.2013 03:26, schrieb Alexander Graf: > The macio code is basically undebuggable as it stands today, with no > debug prints anywhere whatsoever. DBDMA was better, but I needed a > few more to create reasonable logs that tell me where breakage is. > > Add a DPRINTF macro in the macio source

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

2013-06-29 Thread Andreas Färber
Am 30.06.2013 03:27, schrieb Alexander Graf: > Soon we will introduce intermediate processing pauses which will > allow the bottom half to restart a DMA request that couldn't be > fulfilled yet. > > For that to work, move the processing variable into the io struct > which is what DMA providers wor

<    1   2