[Qemu-devel] [PATCH 04/64] PPC: Move openpic to target specific code compilation

2011-10-06 Thread Alexander Graf
The MPIC has some funny feature where it maps different registers to an MMIO region depending which CPU accesses them. To be able to reflect that, we need to make OpenPIC be compiled in the target code, so it can access cpu_single_env. Signed-off-by: Alexander Graf --- Makefile.objs |1 -

[Qemu-devel] [PATCH 16/64] PPC: KVM: Add generic function to read host clockfreq

2011-10-06 Thread Alexander Graf
We need to find out the host's clock-frequency when running on KVM, so let's export a respective function. Signed-off-by: Alexander Graf --- v1 -> v2: - enable 64bit values --- target-ppc/kvm.c | 67 ++ target-ppc/kvm_ppc.h |1 + 2 f

[Qemu-devel] [PATCH 34/64] PPC: Enable to use PAPR with PR style KVM

2011-10-06 Thread Alexander Graf
When running PR style KVM, we need to tell the kernel that we want to run in PAPR mode now. This means that we need to pass some more register information down and enable papr mode. We also need to align the HTAB to htab_size boundary. Using this patch, -M pseries works with kvm even on non-hv kvm

Re: [Qemu-devel] QEMU + ARMMP11Core combination does not work

2011-10-06 Thread Peter Maydell
On 6 October 2011 04:43, TusharK wrote: > (1) Does your kernel boot on the real hardware? > I do not have real hardware to test my kernel. But what I did was, I > downloaded pre-built kernel image from > http://code.google.com/p/smp-on-qemu/downloads/list website and > tried to run using QEMU, it

[Qemu-devel] [PATCH 33/64] KVM: update kernel headers

2011-10-06 Thread Alexander Graf
This patch updates the kvm kernel headers to the latest version. Signed-off-by: Alexander Graf --- linux-headers/asm-powerpc/kvm.h | 23 +++ linux-headers/asm-x86/kvm_para.h | 14 ++ linux-headers/linux/kvm.h| 25 + linux-hea

[Qemu-devel] [PATCH 51/64] ppc405: use RAM_ADDR_FMT instead of %08lx

2011-10-06 Thread Alexander Graf
From: Stefan Hajnoczi The RAM_ADDR_FMT macro hides the type of ram_addr_t so that format strings can be safely used. Make sure to use RAM_ADDR_FMT so that the build works on 32-bit hosts with Xen enabled. Whether Xen should affect ppc TCG targets is questionable but a separate issue. Signed-of

[Qemu-devel] [PATCH 63/64] pseries: Implement set-time-of-day RTAS function

2011-10-06 Thread Alexander Graf
From: Breno Leitao Currently there is no implementation for set-time-of-day rtas function, which causes the following warning "setting the clock failed (-1)" on the guest. This patch just creates this function, get the timedate diff and store in the papr environment, so that the correct value wi

[Qemu-devel] [PATCH 59/64] KVM: PPC: Use HIOR setting for -M pseries with PR KVM

2011-10-06 Thread Alexander Graf
When running with PR KVM, we need to set HIOR directly. Thankfully there is now a new interface to set registers individually so we can just use that and poke HIOR into the guest vcpu's HIOR register. While at it, this also sets SDR1 because -M pseries requires it to run. With this patch, -M pser

[Qemu-devel] [PATCH 03/64] spapr: make irq customizable via qdev

2011-10-06 Thread Alexander Graf
From: Paolo Bonzini This also lets the user see the irq in "info qtree". Signed-off-by: Paolo Bonzini Cc: Alexander Graf Cc: David Gibson Signed-off-by: Alexander Graf --- hw/spapr_vio.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/hw/spapr_vio.c b/hw/spap

Re: [Qemu-devel] [PATCH 40/64] PPC: Fix sync instructions problem in SMP

2011-10-06 Thread Elie Richa
Hello, Actually the test case that I suggested is a bit imprecise because creating a reservation on a CPU does not cause loss of reservation on other CPUs (I mean in the specification). It is writing to the memory location that causes loss of reservation. Therefore the correct test case would be t

[Qemu-devel] [PATCH 38/64] pseries: interrupt controller should not have a 'reg' property

2011-10-06 Thread Alexander Graf
From: David Gibson The interrupt controller presented in the device tree for the pseries machine is manipulated by the guest only through hypervisor calls. It has no real or emulated registers for the guest to access. However, it currently has a bogus 'reg' property advertising a register windo

[Qemu-devel] [PATCH 25/64] PPC: E500: Update cpu-release-addr property in cpu nodes

2011-10-06 Thread Alexander Graf
The guest OS wants to know where the guest spins, so let's tell him while updating the CPU nodes with the frequencies anyways. Signed-off-by: Alexander Graf --- v1 -> v2: - use new spin table address --- hw/ppce500_mpc8544ds.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-)

Re: [Qemu-devel] [PATCH 3/4] savevm: improve subsections detection on load

2011-10-06 Thread Paolo Bonzini
On 10/05/2011 09:45 PM, Anthony Liguori wrote: int qemu_get_buffer(QEMUFile *f, uint8_t *buf, int size1) { int size, l; Can we implement get_buffer in terms of peek_buffer and just increment f->buf_index in get_buffer? No, get_buffer works even if size1 is greater than the size of

[Qemu-devel] [PATCH 06/64] PPC: Extend MPIC MMIO range

2011-10-06 Thread Alexander Graf
The MPIC exports a page for each CPU that it controls. To support more than one CPU, we need to also reserve the MMIO space according to the amount of CPUs we want to support. Signed-off-by: Alexander Graf --- hw/openpic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a

[Qemu-devel] [PATCH 64/64] ppc64: Fix linker script

2011-10-06 Thread Alexander Graf
From: Andreas Färber Since commit 8733f609 (Fix linker scripts) linking on Linux/ppc64 fails: LINK ppc64-linux-user/qemu-ppc64 /usr/lib64/gcc/powerpc64-suse-linux/4.3/../../../../powerpc64-suse-linux/bin/ld:/home/afaerber/qemu/ppc64.ld:84: syntax error collect2: ld gab 1 als Ende-Status zurü

[Qemu-devel] [PATCH 48/64] pseries: Implement hcall-bulk hypervisor interface

2011-10-06 Thread Alexander Graf
From: David Gibson This patch adds support for the H_REMOVE_BULK hypercall on the pseries machine. Strictly speaking this isn't necessarym since the kernel will only attempt to use this if hcall-bulk is advertised in the device tree, which previously it was not. Adding this support may give a m

[Qemu-devel] [PATCH 58/64] KVM: Update kernel headers

2011-10-06 Thread Alexander Graf
Update HIOR and generic register get/set. Signed-off-by: Alexander Graf --- linux-headers/asm-powerpc/kvm.h |2 ++ linux-headers/linux/kvm.h | 33 + 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/linux-headers/asm-powerpc/kvm.h b/linux

[Qemu-devel] [PATCH 45/64] ppc: booke206: add "info tlb" support

2011-10-06 Thread Alexander Graf
From: Scott Wood Signed-off-by: Scott Wood Signed-off-by: Alexander Graf --- hmp-commands.hx |2 +- monitor.c |5 ++- target-ppc/cpu.h|2 + target-ppc/helper.c | 88 +++ 4 files changed, 94 insertions(+), 3 deletio

[Qemu-devel] [PATCH 02/64] spapr: prepare for qdevification of irq

2011-10-06 Thread Alexander Graf
From: Paolo Bonzini Restructure common properties for sPAPR devices so that IRQ definitions can be added in one place. Signed-off-by: Paolo Bonzini Cc: Alexander Graf Cc: David Gibson Signed-off-by: Alexander Graf --- hw/spapr_llan.c |4 +--- hw/spapr_vio.h |5 + hw/spapr_vsc

[Qemu-devel] [PULL 00/64] ppc patch queue 2011-10-06

2011-10-06 Thread Alexander Graf
Hi Blue, This is my current patch queue for ppc. Please pull. Alex The following changes since commit e4fc8781db7c49b0c5ac5d24762e17c59dfe0871: Stefan Hajnoczi (1): qed: fix use-after-free during l2 cache commit are available in the git repository at: git://repo.or.cz/qemu/agraf.g

[Qemu-devel] [PATCH 08/64] PPC: Set MPIC IDE for IPI to 0

2011-10-06 Thread Alexander Graf
We use the IDE register with IPIs as a mask to keep track which processors have already acknowledged the respective interrupt. So we need to initialize it to 0 to make sure that it doesn't accidently fire an IPI on CPU0 when the first IPI is triggered. Reported-by: Elie Richa Signed-off-by: Alexa

[Qemu-devel] [PATCH 12/64] PPC: E500: create multiple envs

2011-10-06 Thread Alexander Graf
When creating a VM, we should go through smp_cpus and create a virtual CPU for every CPU the user requested. This patch adds support for that and moves some code around to make that more convenient. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 44 +

[Qemu-devel] [PATCH 61/64] PPC: Clean up BookE timer code

2011-10-06 Thread Alexander Graf
The BookE timer code had some written-but-not-read variables. Get rid of them. Signed-off-by: Alexander Graf --- hw/ppc_booke.c | 14 +- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/hw/ppc_booke.c b/hw/ppc_booke.c index 3e2fff5..8871945 100644 --- a/hw/ppc_booke.

[Qemu-devel] [PATCH 22/64] PPC: E500: Update freqs for all CPUs

2011-10-06 Thread Alexander Graf
Now that we can so nicely find out the host's frequencies, we should also make sure that we get them into all virtual CPUs' device tree nodes. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/ppce500_mpc

[Qemu-devel] [PATCH 41/64] pseries: Add real mode debugging hcalls

2011-10-06 Thread Alexander Graf
From: David Gibson PAPR systems support several hypercalls intended for use in real mode debugging tools. These implement reads and writes to arbitrary guest physical addresses. This is useful for real mode software because it allows access to IO addresses and memory outside the RMA without goi

[Qemu-devel] [PATCH 15/64] PPC: bamboo: Move host fdt copy to target

2011-10-06 Thread Alexander Graf
We have some code in generic kvm_ppc.c that is only used by 440. Move to the 440 specific device code. Signed-off-by: Alexander Graf --- hw/ppc440_bamboo.c | 37 +++-- target-ppc/kvm_ppc.c | 30 -- target-ppc/kvm_ppc.h |1 - 3

Re: [Qemu-devel] [PATCH 17/23] migration: make sure we always have a migration state

2011-10-06 Thread Orit Wasserman
On 10/05/2011 10:25 PM, Juan Quintela wrote: Anthony Liguori wrote: On 10/04/2011 09:49 AM, Juan Quintela wrote: Anthony Liguori wrote: On 09/23/2011 07:57 AM, Juan Quintela wrote: [ much more stuff ] It avoids s==NULL checks, In favor of s->state == MIG_STATE_NONE. and it also avoids

[Qemu-devel] [PATCH 32/64] PPC: Add new target config for pseries

2011-10-06 Thread Alexander Graf
We only support -M pseries when certain prerequisites are met, such as a PPC64 guest and libfdt. To only gather these requirements in a single place, this patch introduces a new CONFIG_PSERIES variable that gets set when all prerequisites are met. Signed-off-by: Alexander Graf --- Makefile.targe

[Qemu-devel] [PATCH 36/64] pseries: Bugfixes for interrupt numbering in XICS code

2011-10-06 Thread Alexander Graf
From: David Gibson The implementation of the XICS interrupt controller contains several (difficult to trigger) bugs due to the fact that we were not 100% consistent with which irq numbering we used. In most places, global numbers were used as handled by the presentation layer, however a few func

[Qemu-devel] [PATCH 01/64] spapr: proper qdevification

2011-10-06 Thread Alexander Graf
From: Paolo Bonzini Right now the spapr devices cannot be instantiated with -device, because the IRQs need to be passed to the spapr_*_create functions. Do this instead in the bus's init wrapper. This is particularly important with the conversion from scsi-disk to scsi-{cd,hd} that Markus made.

[Qemu-devel] [PATCH 17/64] PPC: E500: Use generic kvm function for freq

2011-10-06 Thread Alexander Graf
Now that we have generic KVM functions to read out the host tb and clock frequencies, let's use them in the e500 code! Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 44 +--- 1 files changed, 9 insertions(+), 35 deletions(-) diff --git a/hw/

[Qemu-devel] [PATCH 62/64] pseries: Refactor spapr irq allocation

2011-10-06 Thread Alexander Graf
From: David Gibson Paulo Bonzini changed the original spapr code, which manually assigned irq numbers for each virtual device, to allocate them automatically from the device initialization. That allowed spapr virtual devices to be constructed with -device, which is a good start. However, the way

[Qemu-devel] [PATCH 49/64] vscsi: send the CHECK_CONDITION status down together with autosense data

2011-10-06 Thread Alexander Graf
From: Paolo Bonzini I introduced this bug in commit 05751d3 (vscsi: always use get_sense, 2011-08-03) because at the time there was no way to expose a sense condition to SLOF and Linux manages to work around the bug. However, the bug becomes evident now that SCSI devices also report unit attenti

[Qemu-devel] [PATCH 43/64] KVM: Update kernel headers

2011-10-06 Thread Alexander Graf
Another round of KVM features, another round of kernel header updates :) Signed-off-by: Alexander Graf --- linux-headers/asm-powerpc/kvm.h | 40 +++ linux-headers/linux/kvm.h | 18 + 2 files changed, 58 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH 05/64] PPC: Add CPU local MMIO regions to MPIC

2011-10-06 Thread Alexander Graf
The MPIC exports a register set for each CPU connected to it. They can all be accessed through specific registers or using a shadow page that is mapped differently depending on which CPU accesses it. This patch implements the shadow map, making it possible for guests to access the CPU local regist

[Qemu-devel] [PATCH 50/64] Gdbstub: handle read of fpscr

2011-10-06 Thread Alexander Graf
From: Fabien Chouteau Signed-off-by: Fabien Chouteau Signed-off-by: Alexander Graf --- gdbstub.c |2 +- target-ppc/translate_init.c |3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 12dd100..1d99e19 100644 --- a/gdbstub

[Qemu-devel] [PATCH 55/64] PPC: Fix via-cuda memory registration

2011-10-06 Thread Alexander Graf
Commit 23c5e4ca (convert to memory API) broke the VIA Cuda emulation layer by not registering the IO structs. This patch registers them properly and thus makes -M g3beige and -M mac99 work again. Tested-by: Andreas Färber Signed-off-by: Alexander Graf --- hw/cuda.c | 28 -

[Qemu-devel] [PATCH 24/64] PPC: E500: Add PV spinning code

2011-10-06 Thread Alexander Graf
CPUs that are not the boot CPU need to run in spinning code to check if they should run off to execute and if so where to jump to. This usually happens by leaving secondary CPUs looping and checking if some variable in memory changed. In an environment like Qemu however we can be more clever. We c

[Qemu-devel] [PATCH 27/64] device tree: dont fail operations

2011-10-06 Thread Alexander Graf
When we screw up and issue an FDT command that doesn't work, we really need to know immediately and usually can't continue to create the machine. To make sure we don't need to add error checking in all device tree modification code users, we can just add the fail checks to the qemu abstract functio

[Qemu-devel] [PATCH 56/64] PPC: Fix heathrow PIC to use little endian MMIO

2011-10-06 Thread Alexander Graf
During the memory API conversion, the indication on little endianness of MMIO for the heathrow PIC got dropped. This patch adds it back again. Signed-off-by: Alexander Graf --- hw/heathrow_pic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/heathrow_pic.c b/hw/heat

[Qemu-devel] [PATCH 09/64] PPC: MPIC: Remove read functionality for WO registers

2011-10-06 Thread Alexander Graf
The IPI dispatch registers are write only according to every MPIC spec I have found. So instead of pretending you could read back something from them, better not handle them at all. Reported-by: Elie Richa Signed-off-by: Alexander Graf --- hw/openpic.c |7 --- 1 files changed, 0 inserti

[Qemu-devel] [PATCH 07/64] PPC: Fix IPI support in MPIC

2011-10-06 Thread Alexander Graf
The current IPI support in the MPIC code is incomplete and doesn't work. This code adds proper support for IPIs in MPIC by using the IDE register to remember which CPUs IPIs are still outstanding to. New triggers through the IPI trigger register only add to the list of CPUs we want to IPI. Signed-

[Qemu-devel] [PATCH 44/64] kvm: ppc: booke206: use MMU API

2011-10-06 Thread Alexander Graf
From: Scott Wood Share the TLB array with KVM. This allows us to set the initial TLB both on initial boot and reset, is useful for debugging, and could eventually be used to support migration. Signed-off-by: Scott Wood Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |2 + target

[Qemu-devel] [PATCH 10/64] PPC: MPIC: Fix CI bit definitions

2011-10-06 Thread Alexander Graf
The bit definitions for critical interrupt routing are in PowerPC order (most significant bit is 0), while we end up shifting it with normal bit order. Turn the numbers around so we actually end up fetching the right ones. Signed-off-by: Alexander Graf --- hw/openpic.c | 10 +- 1 files

[Qemu-devel] [PATCH 19/64] PPC: bamboo: Use kvm api for freq and clock frequencies

2011-10-06 Thread Alexander Graf
Now that we have nice and shiny APIs to read out the host's clock and timebase frequencies, let's use them in the bamboo code as well! Signed-off-by: Alexander Graf --- hw/ppc440_bamboo.c | 45 - 1 files changed, 12 insertions(+), 33 deletions(-) di

[Qemu-devel] [PATCH 40/64] PPC: Fix sync instructions problem in SMP

2011-10-06 Thread Alexander Graf
From: Elie Richa In the current emulation of the load-and-reserve (lwarx) and store-conditional (stwcx.) instructions, the internal reservation mechanism is taken into account, however each CPU has its own reservation information and this information is not synchronized between CPUs to perform pr

[Qemu-devel] [PATCH 60/64] PPC: booke timers

2011-10-06 Thread Alexander Graf
From: Fabien Chouteau While working on the emulation of the freescale p2010 (e500v2) I realized that there's no implementation of booke's timers features. Currently mpc8544 uses ppc_emb (ppc_emb_timers_init) which is close but not exactly like booke (for example booke uses different SPR). Signed

[Qemu-devel] [PATCH 11/64] PPC: Bump MPIC up to 32 supported CPUs

2011-10-06 Thread Alexander Graf
The MPIC emulation is now capable of handling up to 32 CPUs. Reflect that in the code exporting the numbers out and fix an integer overflow while at it. Signed-off-by: Alexander Graf --- v1 -> v2: - Max cpus is 15 due to cINT routing - Report nb_cpus not MAX_CPUS in MPIC capabilities ---

[Qemu-devel] [PATCH 52/64] openpic: Unfold read_IRQreg

2011-10-06 Thread Alexander Graf
The helper function read_IRQreg was always called with a specific argument on the type of register to access. Inside the function we were simply doing a switch on that constant argument again. It's a lot easier to just unfold this into two separate functions and call each individually. Reported-by

[Qemu-devel] [PATCH 18/64] PPC: E500: Remove mpc8544_copy_soc_cell

2011-10-06 Thread Alexander Graf
We don't need mpc8544_copy_soc_cell anymore, since we're explicitly reading host values and writing guest values respectively. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 24 1 files changed, 0 insertions(+), 24 deletions(-) diff --git a/hw/ppce500_mpc8

[Qemu-devel] [PATCH 14/64] device tree: add nop_node

2011-10-06 Thread Alexander Graf
We have a qemu internal abstraction layer on FDT. While I'm not fully convinced we need it at all, it's missing the nop_node functionality that we now need on e500. So let's add it and think about the general future of that API later. Signed-off-by: Alexander Graf --- device_tree.c | 11 ++

[Qemu-devel] [PATCH 47/64] Implement POWER7's CFAR in TCG

2011-10-06 Thread Alexander Graf
From: David Gibson This patch implements support for the CFAR SPR on POWER7 (Come From Address Register), which snapshots the PC value at the time of a branch or an rfid. The latest powerpc-next kernel also catches it and can show it in xmon or in the signal frames. This works well enough to le

[Qemu-devel] [PATCH 23/64] PPC: E500: Remove unneeded CPU nodes

2011-10-06 Thread Alexander Graf
We should only keep CPU nodes in the device tree around that we really have virtual CPUs for. So remove all superfluous entries that we just keep there in case someone wants to create a lot of vCPUs. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |6 ++ 1 files changed, 6 inser

[Qemu-devel] [PATCH 31/64] PPC: E500: Bump CPU count to 15

2011-10-06 Thread Alexander Graf
Now that we have everything in place, make the machine description aware of the fact that we can now handle 15 virtual CPUs! Signed-off-by: Alexander Graf --- v1 -> v2: - Max cpus is 15 because of MPIC --- hw/ppce500_mpc8544ds.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) di

[Qemu-devel] [PATCH 42/64] pseries: use macro for firmware filename

2011-10-06 Thread Alexander Graf
From: Nishanth Aravamudan For some time we've had a nicely defined macro with the filename for our firmware image. However we didn't actually use it in the place we're supposed to. This patch fixes it. Signed-off-by: Nishanth Aravamudan Signed-off-by: David Gibson Signed-off-by: Alexander Gr

[Qemu-devel] [PATCH 21/64] PPC: KVM: Add stubs for kvm helper functions

2011-10-06 Thread Alexander Graf
We have a bunch of helper functions that don't have any stubs for them in case we don't have CONFIG_KVM enabled. That didn't bite us so far, because gcc can optimize them out pretty well, but we should really provide them. Signed-off-by: Alexander Graf --- v1 -> v2: - use uint64_t for clock

[Qemu-devel] [PATCH 57/64] KVM: Update kernel headers

2011-10-06 Thread Alexander Graf
Removes ABI-breaking HIOR parts - KVM patch to follow. Signed-off-by: Alexander Graf --- linux-headers/asm-powerpc/kvm.h |8 linux-headers/linux/kvm.h |1 - 2 files changed, 0 insertions(+), 9 deletions(-) diff --git a/linux-headers/asm-powerpc/kvm.h b/linux-headers/asm-p

[Qemu-devel] [PATCH 46/64] ppc: booke206: use MAV=2.0 TSIZE definition, fix 4G pages

2011-10-06 Thread Alexander Graf
From: Scott Wood This definition is backward compatible with MAV=1.0 as long as the guest does not set reserved bits in MAS1/MAS4. Also, fix the shift in booke206_tlb_to_page_size -- it's the base that should be able to hold a 4G page size, not the shift count. Signed-off-by: Scott Wood Signed

[Qemu-devel] [PATCH 53/64] openpic: Unfold write_IRQreg

2011-10-06 Thread Alexander Graf
The helper function write_IRQreg was always called with a specific argument on the type of register to access. Inside the function we were simply doing a switch on that constant argument again. It's a lot easier to just unfold this into two separate functions and call each individually. Reported-b

[Qemu-devel] [PATCH 35/64] PPC: SPAPR: Use KVM function for time info

2011-10-06 Thread Alexander Graf
One of the things we can't fake on PPC is the timer speed. So we need to extract the frequency information from the host and put it back into the guest device tree. Luckily, we already have functions for that from the non-pseries targets, so all we need to do is to connect the dots and the guest s

[Qemu-devel] [PATCH 54/64] ppc: move ADB stuff from ppc_mac.h to adb.h

2011-10-06 Thread Alexander Graf
From: Laurent Vivier Allow to use ADB in non-ppc macintosh Signed-off-by: Laurent Vivier Signed-off-by: Alexander Graf --- hw/adb.c |2 +- hw/adb.h | 67 + hw/cuda.c |1 + hw/ppc_mac.h | 42

[Qemu-devel] [PATCH 37/64] pseries: Add a phandle to the xicp interrupt controller device tree node

2011-10-06 Thread Alexander Graf
From: David Gibson Future devices we will be adding to the pseries machine (e.g. PCI) will need nodes in the device tree which explicitly reference the top-level interrupt controller via interrupt-parent or interrupt-map properties. In order to do this, the interrupt controller node needs an ass

[Qemu-devel] [PATCH 30/64] MPC8544DS: Generate CPU nodes on init

2011-10-06 Thread Alexander Graf
With this patch, we generate CPU nodes in the machine initialization, giving us the freedom to generate as many nodes as we want and as the machine supports, but only those. This is a first step towards a much cleaner device tree generation infrastructure, where we would not require precompiled dt

[Qemu-devel] [PATCH 26/64] device tree: add add_subnode command

2011-10-06 Thread Alexander Graf
We want to be able to create subnodes in our device tree, so export it through the qemu device tree abstraction framework. Signed-off-by: Alexander Graf --- device_tree.c | 24 device_tree.h |1 + 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/devi

[Qemu-devel] [PATCH 29/64] MPC8544DS: Remove CPU nodes

2011-10-06 Thread Alexander Graf
We want to generate the CPU nodes in machine init code, so remove them from the device tree definition that we precompile. Signed-off-by: Alexander Graf --- pc-bios/mpc8544ds.dtb | Bin 2277 -> 2028 bytes pc-bios/mpc8544ds.dts | 12 2 files changed, 0 insertions(+), 12 deletions(

[Qemu-devel] [PATCH 39/64] pseries: More complete WIMG validation in H_ENTER code

2011-10-06 Thread Alexander Graf
From: David Gibson Currently our implementation of the H_ENTER hypercall, which inserts a mapping in the hash page table assumes that only ordinary memory is ever mapped, and only permits mapping attribute bits accordingly (WIMG==0010). However, we intend to start adding emulated IO to the pseri

[Qemu-devel] [PATCH 28/64] device tree: give dt more size

2011-10-06 Thread Alexander Graf
We currently load a device tree blob and then just take its size x2 to account for modifications we do inside. While this is nice and great, it fails when we have a small device tree as blob and lots of nodes added in machine init code. So for now, just make it 20k bigger than it was before. We ma

[Qemu-devel] [PATCH 20/64] PPC: KVM: Remove kvmppc_read_host_property

2011-10-06 Thread Alexander Graf
We just got rid of the last user of kvmppc_read_host_property, so we can now safely remove it. Signed-off-by: Alexander Graf --- target-ppc/kvm_ppc.c | 35 --- target-ppc/kvm_ppc.h | 11 --- 2 files changed, 0 insertions(+), 46 deletions(-) diff --git

[Qemu-devel] [PATCH 13/64] PPC: E500: Generate IRQ lines for many CPUs

2011-10-06 Thread Alexander Graf
Now that we can generate multiple envs for all our virtual CPUs, we also need to tell the MPIC that we have multiple CPUs connected and connect them all to the respective virtual interrupt lines. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 17 - 1 files changed,

Re: [Qemu-devel] [PATCH v2] tap: Add optional parameters to up/down script

2011-10-06 Thread Thomas Jung
On 30.09 2011 11:45, Sasha Levin wrote: > Subject: [PATCH v2] tap: Add optional parameters to up/down script > > This allows the user to add custom parameters to the up or down > scripts. > > Extra parameters are useful in more complex networking scenarios > where we would like to configure networ

Re: [Qemu-devel] [RFC 0/2] target-arm: Adding Cortex-R4F support

2011-10-06 Thread Andreas Färber
Am 02.10.2011 23:44, schrieb Peter Maydell: > On 2 October 2011 19:56, Andreas Färber wrote: >> I've been looking into adding support for Cortex-R4F. > > Ooh, that will be the first R profile core. In particular the only > other non-M-profile PMSA core we support is the 946 which was a v5 > core,

[Qemu-devel] [PATCH 01/25] hw/lan9118.c: Convert to MemoryRegion

2011-10-06 Thread Avi Kivity
From: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Avi Kivity --- hw/lan9118.c | 29 +++-- 1 files changed, 11 insertions(+), 18 deletions(-) diff --git a/hw/lan9118.c b/hw/lan9118.c index 73a8661..634b88e 100644 --- a/hw/lan9118.c +++ b/hw/lan9118.c @@

[Qemu-devel] [PATCH 00/25] Memory API converions, batch 11

2011-10-06 Thread Avi Kivity
Review before push. I see that Alex's patch is also in the ppc queue, I'll drop it if it's merged before. Alexander Graf (1): PPC: Fix via-cuda memory registration Avi Kivity (7): palm: convert to memory API petalogix_ml605: convert to memory API petalogix_s2adsp1800: convert to memory A

[Qemu-devel] [PATCH 03/25] palm: convert to memory API

2011-10-06 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/palm.c | 53 + 1 files changed, 25 insertions(+), 28 deletions(-) diff --git a/hw/palm.c b/hw/palm.c index d8f50e3..094bfde 100644 --- a/hw/palm.c +++ b/hw/palm.c @@ -54,16 +54,12 @@ static void static_write(v

[Qemu-devel] [PATCH 15/25] gus: Convert to isa_register_portio_list

2011-10-06 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/gus.c | 39 +++ 1 files changed, 19 insertions(+), 20 deletions(-) diff --git a/hw/gus.c b/hw/gus.c index 37e543a..1532686 100644 --- a/hw/gus.c +++ b/hw/gus.c @@ -2

[Qemu-devel] [PATCH 17/25] rtc: Convert to isa_register_ioport

2011-10-06 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/mc146818rtc.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index feb3b25..2aaca2f 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc14

[Qemu-devel] [PATCH 11/25] Introduce PortioList

2011-10-06 Thread Avi Kivity
Add a type and methods for manipulating a list of disjoint I/O ports, used in some older hardware devices. Based on original patch by Richard Henderson. Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- Makefile.objs |2 +- Makefile.target |2 +- ioport.c| 108 +

Re: [Qemu-devel] [RFC 0/2] target-arm: Adding Cortex-R4F support

2011-10-06 Thread Peter Maydell
On 6 October 2011 11:16, Andreas Färber wrote: > Am 02.10.2011 23:44, schrieb Peter Maydell: >> On 2 October 2011 19:56, Andreas Färber wrote: >>> 1) Currently, -cpu is used to look up a Main ID Register value and to base >>> feature decisions on that. This doesn't work for Cortex-R4 and Cortex-R

[Qemu-devel] [PATCH 12/25] memory: Fix old portio word accesses

2011-10-06 Thread Avi Kivity
From: Jan Kiszka As we register old portio regions via ioport_register, we are also responsible for providing the word access wrapper. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- memory.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/memory.c b

[Qemu-devel] [PATCH 21/25] vga: Convert to isa_register_portio_list

2011-10-06 Thread Avi Kivity
From: Richard Henderson [jan: fix cut'n'paste errors] [avi: adjust pci variants not to use isa functions] Signed-off-by: Richard Henderson Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- hw/qxl.c|2 +- hw/vga-isa.c| 17 hw/vga-pci.c|2 +- hw/vga

[Qemu-devel] [PATCH 05/25] petalogix_s2adsp1800: convert to memory API

2011-10-06 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/petalogix_s3adsp1800_mmu.c | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.c index 66fb96d..17da2fd 100644 --- a/hw/petalogix_s3adsp1800_mmu.c +++ b/hw/petalogix

[Qemu-devel] [PATCH 16/25] m48t59: Convert to isa_register_ioport

2011-10-06 Thread Avi Kivity
From: Richard Henderson The sysbus interface is as yet unconverted. Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/m48t59.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hw/m48t59.c b/hw/m48t59.c index 0cc361e..f318e67 100644 --- a/

[Qemu-devel] [PATCH 25/25] isa: Remove isa_init_ioport_range and isa_init_ioport

2011-10-06 Thread Avi Kivity
From: Richard Henderson All users have been converted to either isa_register_ioport or isa_register_old_portio_list. Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/isa-bus.c | 19 +-- hw/isa.h |2 -- 2 files changed, 5 insertions(+), 16 deletions(-

[Qemu-devel] [PATCH 14/25] fdc: Convert to isa_register_portio_list

2011-10-06 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/fdc.c | 34 -- 1 files changed, 4 insertions(+), 30 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 0f1cee9..4b06e04 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -424,7 +

[Qemu-devel] [PATCH 19/25] parallel: Convert to isa_register_portio_list

2011-10-06 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/parallel.c | 47 --- 1 files changed, 28 insertions(+), 19 deletions(-) diff --git a/hw/parallel.c b/hw/parallel.c index ecbc8c3..8494d94 100644 --- a/hw/par

Re: [Qemu-devel] [PATCH] runstate: do not discard runstate changes when paused

2011-10-06 Thread Paolo Bonzini
On 10/05/2011 08:50 PM, Luiz Capitulino wrote: > > > I'm not exactly against the semantics you're proposing, but they don't > > > seem to fit today's qemu. > > > > Today's qemu is broken here. > > For me it's broken because it will abort() if you migrate a paused vm, for > you it see

[Qemu-devel] [PATCH 08/25] hw/versatile_pci: Expose multiple sysbus mmio regions

2011-10-06 Thread Avi Kivity
From: Peter Maydell Clean up versatile_pci to expose the various PCI mmio regions properly as separate mmio regions rather than as a single mmio which uses callbacks to map and unmap everything. Signed-off-by: Peter Maydell Signed-off-by: Avi Kivity --- hw/realview.c | 12 ++--

[Qemu-devel] [PATCH 09/25] ppc_newworld: convert to memory API

2011-10-06 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/ppc_newworld.c | 39 +-- 1 files changed, 17 insertions(+), 22 deletions(-) diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index b1cc3d7..946070c 100644 --- a/hw/ppc_newworld.c +++ b/hw/ppc_newworld.c @@ -83,12 +83,13 @@

[Qemu-devel] [PATCH 20/25] sb16: Convert to isa_register_portio_list

2011-10-06 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/sb16.c | 32 +--- 1 files changed, 13 insertions(+), 19 deletions(-) diff --git a/hw/sb16.c b/hw/sb16.c index a76df1b..fe927e2 100644 --- a/hw/sb16.c +++ b/hw/sb16.c @@ -134

[Qemu-devel] [PATCH 04/25] petalogix_ml605: convert to memory API

2011-10-06 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/petalogix_ml605_mmu.c | 15 +++ 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/hw/petalogix_ml605_mmu.c b/hw/petalogix_ml605_mmu.c index 2a0f7fd..fb4ba29 100644 --- a/hw/petalogix_ml605_mmu.c +++ b/hw/petalogix_ml605_mmu.c @@ -149,8 +

[Qemu-devel] [PATCH 06/25] ppc405_boards: convert to memory API

2011-10-06 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/ppc405_boards.c | 84 +++- 1 files changed, 37 insertions(+), 47 deletions(-) diff --git a/hw/ppc405_boards.c b/hw/ppc405_boards.c index ca65ac3..b28bdda 100644 --- a/hw/ppc405_boards.c +++ b/hw/ppc405_boards.c @@

[Qemu-devel] [PATCH 18/25] ne2000: Convert to isa_register_ioport

2011-10-06 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/ne2000-isa.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/hw/ne2000-isa.c b/hw/ne2000-isa.c index 756ed5c..11ffee7 100644 --- a/hw/ne2000-isa.c +++ b/hw/ne2000-isa.c @@ -68

[Qemu-devel] [PATCH 24/25] ide: Convert to isa_register_portio_list

2011-10-06 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/ide/core.c | 30 +++--- hw/ide/internal.h |3 ++- hw/ide/isa.c |4 +--- hw/ide/piix.c |7 --- hw/ide/via.c |7 --- 5 files changed, 30 i

[Qemu-devel] qemu guest agent spins in poll/nanosleep(100ms) when nothing is listening on host

2011-10-06 Thread Daniel P. Berrange
I've been doing some experimentation with the QEMU guest agent and have noticed that when nothing is connected on the host side of the virtio serial channel, the guest agent just spins in a pool/sleep(100ms) loop. I know you'd ordinarily expect some mgmt app in the host to be listening to the other

[Qemu-devel] [PATCH 22/25] pc: Convert port92 to isa_register_ioport

2011-10-06 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/pc.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 203627d..ded4758 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -428,6 +428,7 @@ void pc_cmos_i

[Qemu-devel] [PATCH 07/25] hw/arm11mpcore: Clean up to avoid using sysbus_mmio_init_cb2

2011-10-06 Thread Avi Kivity
From: Peter Maydell Clean up the initialisation of the realview_mpcore device to avoid using sysbus_init_mmio_cb2(): we can pass through the MemoryRegion of the private arm11mpcore_priv device directly now. Signed-off-by: Peter Maydell Signed-off-by: Avi Kivity --- hw/arm11mpcore.c | 13 +--

[Qemu-devel] [PATCH] qemu-options: avoid #if in spicevmc texi help

2011-10-06 Thread Stefan Hajnoczi
Preprocessor directives cannot be used in STEXI/ETEXI sections since they are not passed through the preprocessor. The spicevmc chardev option help currently uses #if, which is included verbatim in the man page output. Fix this by simply stating that spicevmc chardevs are available only in builds

[Qemu-devel] [PATCH 23/25] vmport: Convert to isa_register_ioport

2011-10-06 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/vmport.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hw/vmport.c b/hw/vmport.c index c8aefaa..b5c6fa1 100644 --- a/hw/vmport.c +++ b/hw/vmport.c @@ -38,6 +38,7

[Qemu-devel] [PATCH 10/25] isa: Tidy support code for isabus_get_fw_dev_path

2011-10-06 Thread Avi Kivity
From: Richard Henderson The only user of ISADevice.ioports is isabus_get_fw_dev_path, and it only looks at the first entry of the array. Which suggests that this entire array+sort operation can be replaced by a simple minimum. Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw

[Qemu-devel] [PATCH 13/25] isa: Add isa_register_portio_list()

2011-10-06 Thread Avi Kivity
Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/isa-bus.c | 17 + hw/isa.h | 31 ++- 2 files changed, 47 insertions(+), 1 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index e9c1712..5d8ff84 100644 --- a/hw/isa-bus.c

  1   2   >