Re: [Qemu-devel] [Qemu-ppc] real cdrom access failure

2013-06-10 Thread Alexander Graf
On 06/10/2013 03:39 PM, Programmingkid wrote: On Jun 9, 2013, at 12:34 PM, Alexander Graf wrote: On 09.06.2013, at 18:28, Programmingkid wrote: I am trying to access the cdrom drive in QEMU 1.5.0, but can't. This is the error I see: qemu-system-ppc: -cdrom /dev/cdrom: could not open disk

Re: [Qemu-devel] [PATCH v2]booke: timer: Deactivate timer for target_bit above 61

2013-06-10 Thread Alexander Graf
On 06/10/2013 02:47 PM, Bhushan Bharat-R65777 wrote: -Original Message- From: Andreas Färber [mailto:afaer...@suse.de] Sent: Monday, June 10, 2013 5:43 PM To: Bhushan Bharat-R65777 Cc: qemu-...@nongnu.org; qemu-devel@nongnu.org; ag...@suse.de; Wood Scott- B07421; Bhushan Bharat-R65777

Re: [Qemu-devel] [PATCH v2]booke: timer: Deactivate timer for target_bit above 61

2013-06-10 Thread Alexander Graf
On 10.06.2013, at 19:20, Scott Wood wrote: On 06/10/2013 09:26:18 AM, Alexander Graf wrote: On 06/10/2013 02:47 PM, Bhushan Bharat-R65777 wrote: -Original Message- From: Andreas Färber [mailto:afaer...@suse.de] Sent: Monday, June 10, 2013 5:43 PM To: Bhushan Bharat-R65777 Cc: qemu

Re: [Qemu-devel] [PATCH v2]booke: timer: Deactivate timer for target_bit above 61

2013-06-11 Thread Alexander Graf
On 06/11/2013 01:40 PM, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, June 10, 2013 11:40 PM To: Wood Scott-B07421 Cc: Bhushan Bharat-R65777; Andreas Färber; qemu-...@nongnu.org; qemu- de...@nongnu.org; Wood Scott-B07421

Re: [Qemu-devel] [PATCH v2]booke: timer: Deactivate timer for target_bit above 61

2013-06-11 Thread Alexander Graf
On 06/11/2013 02:47 PM, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, June 11, 2013 6:10 PM To: Bhushan Bharat-R65777 Cc: Wood Scott-B07421; Andreas Färber; qemu-...@nongnu.org; qemu- de...@nongnu.org Subject: Re: [Qemu-devel

Re: [Qemu-devel] [PATCH v2]booke: timer: Deactivate timer for target_bit above 61

2013-06-11 Thread Alexander Graf
On 06/11/2013 03:18 PM, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, June 11, 2013 6:27 PM To: Bhushan Bharat-R65777 Cc: Wood Scott-B07421; Andreas Färber; qemu-...@nongnu.org; qemu- de...@nongnu.org Subject: Re: [Qemu-devel

Re: [Qemu-devel] KVM call agenda for 2013-06-25

2013-06-11 Thread Alexander Graf
On 11.06.2013, at 17:52, Juan Quintela wrote: Hi Now we have moved to one call each other week. Please, send any topic that you are interested in covering. VFIO for device tree based platforms Alex Thanks, Juan. PD. If you want to attend and you don't have the call details,

Re: [Qemu-devel] [PATCH 8/9] kvm/openpic: in-kernel mpic support

2013-06-12 Thread Alexander Graf
On 01.05.2013, at 03:48, Scott Wood wrote: 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

Re: [Qemu-devel] [PATCH v3 1/9] KVM: Don't assume that mpstate exists with in-kernel PIC always

2013-06-12 Thread Alexander Graf
On 01.05.2013, at 03:48, Scott Wood wrote: From: Alexander Graf ag...@suse.de On PPC, we don't support MP state. So far it's not necessary and I'm not convinced yet that we really need to support it ever. However, the current idle logic in QEMU assumes that an in-kernel PIC also means

Re: [Qemu-devel] [PATCH] spapr: add yet another maintainer

2013-06-12 Thread Alexander Graf
@@ F: hw/isa/pc87312.[hc] sPAPR M: David Gibson da...@gibson.dropbear.id.au David should get removed here then, no? Alex M: Alexander Graf ag...@suse.de +M: Alexey Kardashevskiy a...@ozlabs.ru L: qemu-...@nongnu.org S: Supported F: hw/*/spapr* -- 1.7.10.4

Re: [Qemu-devel] [PATCH v3 1/9] KVM: Don't assume that mpstate exists with in-kernel PIC always

2013-06-12 Thread Alexander Graf
On 12.06.2013, at 22:16, Scott Wood wrote: On 06/12/2013 08:04:55 AM, Alexander Graf wrote: On 01.05.2013, at 03:48, Scott Wood wrote: From: Alexander Graf ag...@suse.de On PPC, we don't support MP state. So far it's not necessary and I'm not convinced yet that we really need

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

2013-06-12 Thread Alexander Graf
On 12.06.2013, at 22:32, Scott Wood wrote: 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

Re: [Qemu-devel] [PATCH] kvm/openpic: add kvm_irqchip_commit_routes

2013-06-12 Thread Alexander Graf
On 12.06.2013, at 23:21, Scott Wood wrote: The patch that added kvm_irqchip_commit_routes was originally meant to come after the in-kernel mpic patch, and thus it updated hw/intc/openpic_kvm.c. However, it was applied before the in-kernel mpic patch (which creates hw/intc/openpic_kvm.c),

Re: [Qemu-devel] [PATCH] kvm/openpic: add kvm_irqchip_commit_routes

2013-06-12 Thread Alexander Graf
On 12.06.2013, at 23:25, Scott Wood wrote: On 06/12/2013 04:23:09 PM, Alexander Graf wrote: On 12.06.2013, at 23:21, Scott Wood wrote: The patch that added kvm_irqchip_commit_routes was originally meant to come after the in-kernel mpic patch, and thus it updated hw/intc/openpic_kvm.c

Re: [Qemu-devel] [PATCH v3] spapr-rtas: fix h_rtas parameters reading

2013-09-30 Thread Alexander Graf
On 27.09.2013, at 10:10, Alexey Kardashevskiy wrote: On the real hardware, RTAS is called in real mode and therefore top 4 bits of the address passed in the call are ignored. So does the patch. This converts h_rtas() to use existing rtas_ld() handlers. This fixed rtas_ld()/rtas_st() to

Re: [Qemu-devel] [PATCH v2] spapr: Add ibm, purr property on power7 and newer

2013-09-30 Thread Alexander Graf
On 27.09.2013, at 10:11, Alexey Kardashevskiy wrote: PAPR+ says that no ibm,purr tells the guest that H_PURR is not supported. However some guests still try calling H_PURR on POWER7 unless the property is present and equal to 0. This adds the property for CPUs supporting the PURR special

Re: [Qemu-devel] [PATCH] spapr: add compat machine option

2013-09-30 Thread Alexander Graf
On 27.09.2013, at 10:06, Alexey Kardashevskiy wrote: To be able to boot on newer hardware that the software support, PowerISA defines a logical PVR, one per every PowerISA specification version from 2.04. This adds the compat option which takes values 205 or 206 and forces QEMU to boot

Re: [Qemu-devel] [PATCH v7] powerpc: add PVR mask support

2013-09-30 Thread Alexander Graf
On 27.09.2013, at 10:05, Alexey Kardashevskiy wrote: IBM POWERPC processors encode PVR as a CPU family in higher 16 bits and a CPU version in lower 16 bits. Since there is no significant change in behavior between versions, there is no point to add every single CPU version in QEMU's CPU

Re: [Qemu-devel] [PATCH] spapr: add compat machine option

2013-09-30 Thread Alexander Graf
On 09/30/2013 03:22 PM, Alexey Kardashevskiy wrote: On 30.09.2013 21:25, Alexander Graf wrote: On 27.09.2013, at 10:06, Alexey Kardashevskiy wrote: To be able to boot on newer hardware that the software support, PowerISA defines a logical PVR, one per every PowerISA specification version from

Re: [Qemu-devel] [PATCH v5 00/14] xics: reworks and in-kernel support

2013-09-30 Thread Alexander Graf
On 09/26/2013 08:18 AM, Alexey Kardashevskiy wrote: Yet another try with XICS and XICS-KVM. Thanks, applied to ppc-next. Alex v4-v5: Rebased onto upstream; Put few reviewed-by: Andreas; Added IRQFD enablement patches. v3-v4: Addressed multiple comments from Alex; Split out many tiny

Re: [Qemu-devel] [PATCH -V4 1/4] target-ppc: Update slb array with correct index values.

2013-09-30 Thread Alexander Graf
On 09/25/2013 05:41 PM, Aneesh Kumar K.V wrote: Hi Alex, Any update on this ? The patch itself never made it to the qemu-devel mailing list which I pull things off of (through patchworks). Please resend. Alex -aneesh Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com writes: From:

Re: [Qemu-devel] [PATCH -V4 2/4] target-ppc: Fix page table lookup with kvm enabled

2013-09-30 Thread Alexander Graf
On 09/05/2013 10:16 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com With kvm enabled, we store the hash page table information in the hypervisor. Use ioctl to read the htab contents. Without this we get the below error when trying to read the guest address

Re: [Qemu-devel] [PATCH -V4 2/4] target-ppc: Fix page table lookup with kvm enabled

2013-09-30 Thread Alexander Graf
On 09/05/2013 10:16 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com With kvm enabled, we store the hash page table information in the hypervisor. Use ioctl to read the htab contents. Without this we get the below error when trying to read the guest address

Re: [Qemu-devel] [PATCH] target-ppc: dump-guest-memory support

2013-09-30 Thread Alexander Graf
On 09/25/2013 05:40 PM, Aneesh Kumar K.V wrote: Hi Alex, Any update on this ? Sent to qemu-de...@nongnu.og instead of qemu-devel@nongnu.org. I can't (and won't) apply patches that didn't land on qemu-devel@nongnu.org. The patch itself looks reasonable to me though :). Alex

Re: [Qemu-devel] [PATCH v2 1/4] target-ppc: Fill in OpenFirmware names for some PowerPCCPU families

2013-09-30 Thread Alexander Graf
On 09/25/2013 11:01 AM, Alexey Kardashevskiy wrote: On 09/17/2013 12:16 AM, Alexey Kardashevskiy wrote: On 09/10/2013 02:15 PM, Alexey Kardashevskiy wrote: On 08/16/2013 08:35 AM, Andreas Färber wrote: Set the expected values for POWER7, POWER7+, POWER8 and POWER5+. Note that POWER5+ and

Re: [Qemu-devel] [PATCH 01/10] target-s390: Move facilities bits to env

2013-09-30 Thread Alexander Graf
On 09/23/2013 04:04 PM, Richard Henderson wrote: Rather than simply hard-coding them in STFL instruction. Signed-off-by: Richard Hendersonr...@twiddle.net --- target-s390x/cpu.c | 3 +++ target-s390x/cpu.h | 1 + target-s390x/translate.c | 10 +- 3 files changed, 9

Re: [Qemu-devel] [PATCH 07/10] target-s390: Fix STIDP

2013-09-30 Thread Alexander Graf
On 09/23/2013 04:04 PM, Richard Henderson wrote: The implementation had been incomplete, as we did not store the machine type. Signed-off-by: Richard Hendersonr...@twiddle.net --- target-s390x/cpu.c | 2 ++ target-s390x/cpu.h | 14 +- target-s390x/translate.c | 2

Re: [Qemu-devel] [PATCH 0/9] target-s390 tcg improvements

2013-09-30 Thread Alexander Graf
. The choice of z9-109 for the facilities is because that appears to be what fedora 19 is targeting as the minimum. That said, a debian install can make it all the way through to completion, so the fedora crash/hang must be related to something in the extra z9-109 insns. Reviewed-by: Alexander Graf

Re: [Qemu-devel] [PATCH] turn firmware image filename into a machine option

2013-10-01 Thread Alexander Graf
On 10/01/2013 04:40 PM, Gerd Hoffmann wrote: Hi, SLOF is what is loaded from the very beginning, it configures PCI, cooks the device tree and boots the guest system (directly or via yaboot/grub, from disk, network or ram). Normal firmware, as usual. It knows all the details about the

Re: [Qemu-devel] [PATCH 07/10] target-s390: Fix STIDP

2013-10-01 Thread Alexander Graf
On 09/30/2013 09:48 PM, Richard Henderson wrote: On 09/30/2013 11:13 AM, Alexander Graf wrote: -int cpu_num; +union { +uint64_t cpuid; +struct { +#ifdef HOST_WORDS_BIGENDIAN +uint32_t cpu_num; +uint32_t machine_type; +#else +uint32_t

Re: [Qemu-devel] [PATCH 01/10] target-s390: Move facilities bits to env

2013-10-01 Thread Alexander Graf
On 09/30/2013 09:15 PM, Richard Henderson wrote: On 09/30/2013 11:03 AM, Alexander Graf wrote: On 09/23/2013 04:04 PM, Richard Henderson wrote: Rather than simply hard-coding them in STFL instruction. Signed-off-by: Richard Hendersonr...@twiddle.net --- target-s390x/cpu.c | 3

Re: [Qemu-devel] [PATCH 01/10] target-s390: Move facilities bits to env

2013-10-01 Thread Alexander Graf
On 10/01/2013 05:52 PM, Richard Henderson wrote: On 10/01/2013 08:48 AM, Alexander Graf wrote: On 09/30/2013 09:15 PM, Richard Henderson wrote: On 09/30/2013 11:03 AM, Alexander Graf wrote: On 09/23/2013 04:04 PM, Richard Henderson wrote: Rather than simply hard-coding them in STFL

Re: [Qemu-devel] [PATCH v2 0/9] target-s390 tcg improvements

2013-10-02 Thread Alexander Graf
as 3 separate patches. * STFL and STIDP implementations adjusted for feedback. * Minor tweaks to SAM implementations. * Split out z9-109 hack to a separate patch. Acked-by: Alexander Graf ag...@suse.de Alex

Re: [Qemu-devel] [PATCH -V4 2/4] target-ppc: Fix page table lookup with kvm enabled

2013-10-02 Thread Alexander Graf
On 01.10.2013, at 03:27, Aneesh Kumar K.V wrote: Alexander Graf ag...@suse.de writes: On 09/05/2013 10:16 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku...@linux.vnet.ibm.com With kvm enabled, we store the hash page table information in the hypervisor. Use ioctl to read

Re: [Qemu-devel] [PATCH -V4 RESEND 0/6] target-ppc: Add support for dumping guest memory using qemu gdb server

2013-10-02 Thread Alexander Graf
On 01.10.2013, at 18:19, Aneesh Kumar K.V wrote: Hi, This patch series implement support for dumping guest memory using qemu gdb server. The last patch also enable qemu monitor command dump-guest-memory Thanks, applied all but 2/6 to ppc-next. I think the core dump bits should be more

Re: [Qemu-devel] [RFC] QEMU/KVM PowerPC: virtio and guest endianness

2013-10-04 Thread Alexander Graf
CC'ing qemu-devel - please use qemu-ppc@ only as a tag, every mail needs to go to qemu-devel as well. On 03.10.2013, at 16:29, Greg Kurz wrote: Hi, There have been some work on the topic lately but no agreement has been reached yet. I want to consolidate the facts in a single thread of

Re: [Qemu-devel] [Qemu-ppc] [RFC] QEMU/KVM PowerPC: virtio and guest endianness

2013-10-04 Thread Alexander Graf
On 04.10.2013, at 16:08, Greg Kurz wrote: Answering to both Paul and Alex. On Fri, 4 Oct 2013 13:54:25 +0200 Alexander Graf ag...@suse.de wrote: On 04.10.2013, at 13:53, Paul Mackerras wrote: I don't mind particularly whether H_SET_MODE for the endianness setting gets handled

Re: [Qemu-devel] [PATCH v2 1/2] KVM: s390: add and extend interrupt information data structs

2013-10-04 Thread Alexander Graf
On 06.09.2013, at 14:19, Jens Freimann wrote: With the currently available struct kvm_s390_interrupt it is not possible to inject every kind of interrupt as defined in the z/Architecture. Add additional interruption parameters to the structures and move it to kvm.h Signed-off-by: Jens

Re: [Qemu-devel] [PATCH v2 2/2] KVM: s390: add floating irq controller

2013-10-04 Thread Alexander Graf
On 06.09.2013, at 14:19, Jens Freimann wrote: This patch adds a floating irq controller as a kvm_device. It will be necessary for migration of floating interrupts as well as for hardening the reset code by allowing user space to explicitly remove all pending floating interrupts.

Re: [Qemu-devel] [PATCH v2 0/2] KVM: s390: add floating irq controller

2013-10-04 Thread Alexander Graf
On 06.09.2013, at 15:30, Christian Borntraeger wrote: On 06/09/13 14:19, Jens Freimann wrote: This series adds a kvm_device that acts as a irq controller for floating interrupts. As a first step it implements functionality to retrieve and inject interrupts for the purpose of migration

Re: [Qemu-devel] [PATCH -V4 2/4] target-ppc: Fix page table lookup with kvm enabled

2013-10-07 Thread Alexander Graf
On 07.10.2013, at 15:58, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: Alexander Graf ag...@suse.de writes: On 01.10.2013, at 03:27, Aneesh Kumar K.V wrote: Alexander Graf ag...@suse.de writes: On 09/05/2013 10:16 AM, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.Vaneesh.ku

Re: [Qemu-devel] [PATCH -V5] target-ppc: Fix page table lookup with kvm enabled

2013-10-11 Thread Alexander Graf
On 11.10.2013, at 13:13, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com With kvm enabled, we store the hash page table information in the hypervisor. Use ioctl to read the htab contents. Without this we get the below error

Re: [Qemu-devel] [RFC PATCH] spapr-vty: workaround reg property for old kernels

2013-10-15 Thread Alexander Graf
On 10/15/2013 10:50 AM, Alexey Kardashevskiy wrote: Old kernels ( 3.1) handle hvcX devices different in different parts. Sometime the kernel assumes that the hvc device numbers start from zero and if there is just one hvc, then it is hvc0. However kernel's add_preferred_console() uses the very

Re: [Qemu-devel] [PATCH v2] pseries: Update SLOF firmware image

2013-10-16 Thread Alexander Graf
On 10/15/2013 07:00 AM, Alexey Kardashevskiy wrote: SLOF git commit is e2e8ac901e617573ea383f9cffd136146d0675a4 The main changes are: * fixed bug with not passing arguments from -append * client-architecture-support hypercall * netboot * USB stack fixes The full list of changes:

Re: [Qemu-devel] [PATCH v2] pseries: Update SLOF firmware image

2013-10-16 Thread Alexander Graf
Am 16.10.2013 um 12:47 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 10/16/2013 08:54 PM, Alexander Graf wrote: On 10/15/2013 07:00 AM, Alexey Kardashevskiy wrote: SLOF git commit is e2e8ac901e617573ea383f9cffd136146d0675a4 The main changes are: * fixed bug with not passing arguments

Re: [Qemu-devel] [Qemu-ppc] [PATCH V2] Fix float64_to_uint64

2013-10-17 Thread Alexander Graf
On 16.10.2013, at 23:10, Tom Musta tommu...@gmail.com wrote: The comment preceding the float64_to_uint64 routine suggests that the implementation is broken. And this is, indeed, the case. This patch properly implements the conversion of a 64-bit floating point number to an unsigned, 64

Re: [Qemu-devel] [PATCH 00/60] AArch64 TCG emulation support

2013-10-17 Thread Alexander Graf
On 16.10.2013, at 21:54, Edgar E. Iglesias edgar.igles...@gmail.com wrote: On Fri, Sep 27, 2013 at 02:47:54AM +0200, Alexander Graf wrote: Howdy, This is the first batch of patches to implement AArch64 instruction emulation in QEMU. It implements enough to execute simple AArch64 programs

Re: [Qemu-devel] [PATCH v3 0/2] target-ppc: Tidy sPAPR device tree CPU nodes

2013-10-17 Thread Alexander Graf
On 15.10.2013, at 18:33, Andreas Färber afaer...@suse.de wrote: Hello Alexey and Alex, This series cleans up the fdt CPU nodes for -M pseries as attempted by Prerna. v3 uses DeviceClass::fw_name for name storage exclusively, with PowerPC,UNKNOWN as fallback. Thanks, applied all to

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-17 Thread Alexander Graf
On 17.10.2013, at 14:54, Paolo Bonzini pbonz...@redhat.com wrote: Il 17/10/2013 14:38, Alexey Kardashevskiy ha scritto: qdev_get_fw_dev_path: /spapr-vio-bridge/spapr-vscsi/channel@0/disk@3,2 suffix=(null) /spapr-vio-bridge/spapr-vscsi/channel@0/disk@3,1 suffix=(null) You need to implement

Re: [Qemu-devel] [PATCH v8 0/3] hw/arm: Add 'virt' platform

2013-10-18 Thread Alexander Graf
On 18.10.2013, at 13:12, Peter Maydell peter.mayd...@linaro.org wrote: On 17 October 2013 17:48, Peter Maydell peter.mayd...@linaro.org wrote: This patch series adds a 'virt' platform which uses the kernel's mach-virt (fully device-tree driven) support to create a simple minimalist platform

[Qemu-devel] [PATCH 3/3] Add migration stream analyzation script

2013-10-23 Thread Alexander Graf
$ ./scripts/analyze_migration.py -f mig Signed-off-by: Alexander Graf ag...@suse.de --- scripts/analyze-migration.py | 483 +++ 1 file changed, 483 insertions(+) create mode 100755 scripts/analyze-migration.py diff --git a/scripts/analyze-migration.py b

[Qemu-devel] [PATCH 0/3] Migration Debugging Helper Device

2013-10-23 Thread Alexander Graf
tool in our hands to see what goes wrong inside a virtual machine. Example decoded migration: http://csgraf.de/mig/mig.txt Presentation: https://www.youtube.com/watch?v=iq1x40Qsrew Slides: https://www.dropbox.com/s/otp2pk2n3g087zp/Live%20Migration.pdf Alexander Graf (3): Export savevm

[Qemu-devel] [PATCH 1/3] Export savevm handlers outside of savevm.c

2013-10-23 Thread Alexander Graf
We need to be able to access savevm handlers from code that lives outside of savevm.c. Extract its struct definitions and declaration into a separate header file. Signed-off-by: Alexander Graf ag...@suse.de --- include/qemu/savevm.h | 28 savevm.c | 24

[Qemu-devel] [PATCH 2/3] Add migration debug device

2013-10-23 Thread Alexander Graf
an external program without any knowledge of the device layout of the guest. Signed-off-by: Alexander Graf ag...@suse.de --- hw/misc/Makefile.objs | 1 + hw/misc/debug_migration.c | 498 ++ 2 files changed, 499 insertions(+) create mode 100644 hw/misc

[Qemu-devel] [PULL 00/29] ppc patch queue 2013-10-25

2013-10-25 Thread Alexander Graf
repository at: git://github.com/agraf/qemu.git ppc-for-upstream for you to fetch changes up to 3bbf37f2692652cc9d48030a9e7f34e2207429f6: spapr: Use DeviceClass::fw_name for device tree CPU node (2013-10-25 23:25:48 +0200) Alexander

[Qemu-devel] [PULL 17/29] xics: add cpu_setup callback

2013-10-25 Thread Alexander Graf
From: Alexey Kardashevskiy a...@ozlabs.ru This adds a cpu_setup callback to the XICS device class (as XICS-KVM will do it different), xics_cpu_setup() will call it if it is set. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Alexander Graf ag...@suse.de --- hw/intc/xics.c

[Qemu-devel] [PULL 02/29] pseries: Fix loading of little endian kernels

2013-10-25 Thread Alexander Graf
From: Benjamin Herrenschmidt b...@kernel.crashing.org Try loading the kernel as little endian if it fails big endian. Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org Reviewed-by: Anton Blanchard an...@samba.org Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr.c | 13

[Qemu-devel] [PULL 20/29] xics: Implement H_XIRR_X

2013-10-25 Thread Alexander Graf
, the CPPR parameter of the hypercall is ignored. Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Alexander Graf ag...@suse.de --- hw/intc/xics.c | 14 ++ include/hw/ppc/spapr.h | 1 + 2 files

[Qemu-devel] [PULL 25/29] target-ppc: Use #define for max slb entries

2013-10-25 Thread Alexander Graf
From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Instead of opencoding 64 use MAX_SLB_ENTRIES. We don't update the kernel header here. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Alexander Graf ag...@suse.de --- target-ppc/cpu.h | 3 ++- target-ppc

[Qemu-devel] [PULL 03/29] ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers

2013-10-25 Thread Alexander Graf
(qemu) print $dar (qemu) print $dsisr Signed-off-by: Tom Musta tommu...@gmail.com Reviewed-by: Anton Blanchard an...@samba.org Signed-off-by: Alexander Graf ag...@suse.de --- monitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/monitor.c b/monitor.c index 74f3f1b..b02b21c 100644

[Qemu-devel] [PULL 19/29] xics: Implement H_IPOLL

2013-10-25 Thread Alexander Graf
-by: Benjamin Herrenschmidt b...@kernel.crashing.org Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Acked-by: Alexander Graf ag...@suse.de Signed-off-by: Alexander Graf ag...@suse.de --- hw/intc/xics.c | 13 + 1 file changed, 13 insertions(+) diff --git a/hw/intc/xics.c b/hw/intc/xics.c

[Qemu-devel] [PULL 05/29] PPC: Fix L2CR write accesses

2013-10-25 Thread Alexander Graf
-by: Alexander Graf ag...@suse.de Tested-by: Julio Guerra gu...@julio.in --- target-ppc/translate_init.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 651da6b..807dab3 100644

[Qemu-devel] [PULL 22/29] spapr-pci: enable irqfd for INTx

2013-10-25 Thread Alexander Graf
-off-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr_pci.c | 13 + 1 file changed, 13 insertions(+) diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index 9b6ee32..edb4cb0 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pci.c

[Qemu-devel] [PULL 10/29] xics: move reset and cpu_setup

2013-10-25 Thread Alexander Graf
From: Alexey Kardashevskiy a...@ozlabs.ru This simple change makes following patches nicer. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Acked-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexander Graf ag...@suse.de --- hw/intc/xics.c | 72

[Qemu-devel] [PULL 04/29] target-ppc: Little Endian Correction to Load/Store Vector Element

2013-10-25 Thread Alexander Graf
-by: Alexander Graf ag...@suse.de --- target-ppc/mem_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-ppc/mem_helper.c b/target-ppc/mem_helper.c index d8e63ca..f35ed03 100644 --- a/target-ppc/mem_helper.c +++ b/target-ppc/mem_helper.c @@ -212,6 +212,7 @@ target_ulong helper_lscbx

[Qemu-devel] [PULL 14/29] xics: convert init() to realize()

2013-10-25 Thread Alexander Graf
...@suse.de Signed-off-by: Alexander Graf ag...@suse.de --- hw/intc/xics.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/hw/intc/xics.c b/hw/intc/xics.c index eeb64f5..76654db 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -479,15 +479,17 @@ static

[Qemu-devel] [PULL 09/29] target-ppc: Add helper for KVM_PPC_RTAS_DEFINE_TOKEN

2013-10-25 Thread Alexander Graf
Acked-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexander Graf ag...@suse.de --- target-ppc/kvm.c | 14 ++ target-ppc/kvm_ppc.h | 7 +++ 2 files changed, 21 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 8a196c6..0b5d391 100644 --- a/target

[Qemu-devel] [PULL 12/29] xics: replace fprintf with error_report

2013-10-25 Thread Alexander Graf
From: Alexey Kardashevskiy a...@ozlabs.ru This replaces old-style fprintf with new style error_report. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: Andreas Färber afaer...@suse.de Acked-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexander Graf ag...@suse.de

[Qemu-devel] [PULL 06/29] spapr: increase temporary fdt buffer size

2013-10-25 Thread Alexander Graf
. As only the real size of the tree is copied to the guest, there will be no impact on existing configurations. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw

[Qemu-devel] [PULL 18/29] xics-kvm: Support for in-kernel XICS interrupt controller

2013-10-25 Thread Alexander Graf
...@gibson.dropbear.id.au [Mike Qiu qiud...@linux.vnet.ibm.com: fixed mistype which caused ics_set_kvm_state() to fail] Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: Alexander Graf ag...@suse.de Signed-off-by: Alexander Graf ag...@suse.de --- default-configs/ppc64-softmmu.mak | 1 + hw/intc

[Qemu-devel] [PULL 21/29] xics-kvm: enable irqfd for MSI

2013-10-25 Thread Alexander Graf
), a PCI host bus callback is required. The patch for that is coming next. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Alexander Graf ag...@suse.de --- hw/intc/xics_kvm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/intc/xics_kvm.c b/hw/intc/xics_kvm.c index

[Qemu-devel] [PULL 23/29] target-ppc: Update slb array with correct index values.

2013-10-25 Thread Alexander Graf
0xc0085330 (gdb) This is because when we do the slb sync via kvm_cpu_synchronize_state, we overwrite the slb entry (0th entry) for 0xc0085330 Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Alexander Graf ag...@suse.de --- target-ppc/kvm.c | 17

[Qemu-devel] [PULL 29/29] spapr: Use DeviceClass::fw_name for device tree CPU node

2013-10-25 Thread Alexander Graf
, obsoleting sPAPREnvironment::cpu_model, and spapr_create_fdt_skel() can drop its cpu_model argument. Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr.c | 26

[Qemu-devel] [PULL 26/29] dump-guest-memory: Check for the correct return value

2013-10-25 Thread Alexander Graf
From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We should check for error with s-note_size Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Alexander Graf ag...@suse.de --- dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dump.c

[Qemu-devel] [PULL 28/29] target-ppc: Fill in OpenFirmware names for some PowerPCCPU families

2013-10-25 Thread Alexander Graf
From: Andreas Färber afaer...@suse.de Set the expected values for POWER7, POWER7+, POWER8 and POWER5+. Note that POWER5+ and POWER7+ are intentionally lacking the '+', so the lack of a POWER7P family constitutes no problem. Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Alexander

[Qemu-devel] [PULL 27/29] target-ppc: dump-guest-memory support

2013-10-25 Thread Alexander Graf
: R8: R9: b0001032R10: 0001R11: 0001eb2117e00d55 ... NOTE: Currently crash tools doesn't look at ELF notes in the dump on ppc64. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Alexander Graf ag

[Qemu-devel] [PULL 13/29] xics: add pre_save/post_load dispatchers

2013-10-25 Thread Alexander Graf
From: Alexey Kardashevskiy a...@ozlabs.ru The upcoming support of in-kernel XICS will redefine migration callbacks for both ICS and ICP so classes and callback pointers are added. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Alexander Graf ag...@suse.de --- hw/intc/xics.c

[Qemu-devel] [PULL 24/29] target-ppc: Check for error on address translation in memsave command

2013-10-25 Thread Alexander Graf
From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com When we translate the virtual address to physical check for error. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Alexander Graf ag...@suse.de --- cpus.c | 5 - 1 file changed, 4 insertions(+), 1 deletion

[Qemu-devel] [PULL 11/29] spapr: move cpu_setup after kvmppc_set_papr

2013-10-25 Thread Alexander Graf
-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 259df92..a276377 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1184,8 +1184,6 @@ static void ppc_spapr_init(QEMUMachineInitArgs *args

[Qemu-devel] [PULL 07/29] spapr: Add ibm, purr property on power7 and newer

2013-10-25 Thread Alexander Graf
-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 6322c98..259df92 100644 --- a/hw/ppc

[Qemu-devel] [PULL 08/29] spapr-rtas: fix h_rtas parameters reading

2013-10-25 Thread Alexander Graf
. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/spapr_hcall.c | 6 +++--- include/hw/ppc/spapr.h | 9 +++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index f10ba8a

[Qemu-devel] [PULL 16/29] xics: split to xics and xics-common

2013-10-25 Thread Alexander Graf
property. 2. added ics_initfn() which does a little part of what xics_realize() did. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: Alexander Graf ag...@suse.de Signed-off-by: Alexander Graf ag...@suse.de --- hw/intc/xics.c| 156

[Qemu-devel] [PULL 15/29] xics: add missing const specifiers to TypeInfo

2013-10-25 Thread Alexander Graf
From: Alexey Kardashevskiy a...@ozlabs.ru This adds missing const specifiers to ICS and ICP TypeInfo's. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: Andreas Färber afaer...@suse.de Signed-off-by: Alexander Graf ag...@suse.de --- hw/intc/xics.c | 4 ++-- 1 file changed, 2

Re: [Qemu-devel] [Qemu-ppc] [PULL 00/29] ppc patch queue 2013-10-25

2013-10-25 Thread Alexander Graf
Hey Mark, Am 25.10.2013 um 23:59 schrieb Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk: On 25/10/13 22:27, Alexander Graf wrote: Hi Blue / Aurelien / Anthony, This is my current patch queue for ppc. Please pull. Alex Hi Alex, Did you get my repost of the PPC PCI configuration

Re: [Qemu-devel] [PATCH v7] powerpc: add PVR mask support

2013-10-27 Thread Alexander Graf
On 23.10.2013, at 07:57, Andreas Färber afaer...@suse.de wrote: Am 27.09.2013 09:05, schrieb Alexey Kardashevskiy: IBM POWERPC processors encode PVR as a CPU family in higher 16 bits and a CPU version in lower 16 bits. Since there is no significant change in behavior between versions, there

Re: [Qemu-devel] [PATCH] spapr: add vio-bus devices to categories

2013-10-27 Thread Alexander Graf
On 10.10.2013, at 20:08, Alexey Kardashevskiy a...@ozlabs.ru wrote: In order to get devices appear in output of ./qemu-system-ppc64 -device ?, they must be assigned to one of DEVICE_CATEGORY_. This puts VIO devices classes to corresponding categories. Signed-off-by: Alexey

Re: [Qemu-devel] [RFC PATCH] spapr: add ibmveth to the supported network adapters list

2013-10-27 Thread Alexander Graf
On 10.10.2013, at 20:09, Alexey Kardashevskiy a...@ozlabs.ru wrote: The problem is that -net nic,model=? does not print ibmveth in the list while it is actually supported. Most of the QEMU emulated network devices are PCI but ibmveth (a.k.a. spapr-vlan) is not. However with -net

Re: [Qemu-devel] [PATCH -V6 2/3] target-ppc: Fix page table lookup with kvm enabled

2013-10-27 Thread Alexander Graf
On 15.10.2013, at 01:58, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com With kvm enabled, we store the hash page table information in the hypervisor. Use ioctl to read the htab contents. Without this we get the below error

Re: [Qemu-devel] [PATCH -V6 3/3] target-ppc: Fix htab_mask calculation

2013-10-27 Thread Alexander Graf
On 15.10.2013, at 01:58, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Correctly update the htab_mask using the return value of KVM_PPC_ALLOCATE_HTAB ioctl. Also we don't update sdr1 on GET_SREGS for HV. So don't update

Re: [Qemu-devel] [PATCH -V5] target-ppc: Fix page table lookup with kvm enabled

2013-10-27 Thread Alexander Graf
On 11.10.2013, at 09:58, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: Alexander Graf ag...@suse.de writes: On 11.10.2013, at 13:13, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com With kvm enabled, we store

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-10-30 Thread Alexander Graf
On 27.09.2013, at 11:25, Richard Henderson r...@twiddle.net wrote: On 09/26/2013 05:48 PM, Alexander Graf wrote: This patch adds emulation support for the orr instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper-a64.c| 28 +++ target-arm/helper-a64.h

Re: [Qemu-devel] [Qemu-ppc] [v2 02/13] Add lxsdx

2013-10-31 Thread Alexander Graf
On 11.10.2013, at 05:57, Tom Musta tommu...@gmail.com wrote: This patch adds the Load VSX Scalar Doubleowrd Indexed (lxsdx) instruction. The lower 8 bytes of the target register are undefined; this implementation leaves those bytes unaltered. Signed-off-by: Tom Musta tommu...@gmail.com

Re: [Qemu-devel] [RFC PATCH] spapr: add ibmveth to the supported network adapters list

2013-11-01 Thread Alexander Graf
Am 01.11.2013 um 03:52 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 10/28/2013 05:03 AM, Alexander Graf wrote: On 10.10.2013, at 20:09, Alexey Kardashevskiy a...@ozlabs.ru wrote: The problem is that -net nic,model=? does not print ibmveth in the list while it is actually supported

Re: [Qemu-devel] [RFC PATCH] spapr: add initial ibm, client-architecture-support rtas call support

2013-09-04 Thread Alexander Graf
On 04.09.2013, at 12:19, Alexey Kardashevskiy wrote: This is an RFC patch. The modern Linux kernel supports every known POWERPC CPU so when it boots, it can always find a matching cpu_spec from the cpu_specs array. However if the kernel is quite old, it may be missing the definition of

Re: [Qemu-devel] [RFC PATCH] spapr: add initial ibm, client-architecture-support rtas call support

2013-09-04 Thread Alexander Graf
On 04.09.2013, at 13:40, Alexey Kardashevskiy wrote: On 09/04/2013 08:42 PM, Alexander Graf wrote: On 04.09.2013, at 12:19, Alexey Kardashevskiy wrote: This is an RFC patch. The modern Linux kernel supports every known POWERPC CPU so when it boots, it can always find a matching

Re: [Qemu-devel] [RFC PATCH] spapr: add initial ibm, client-architecture-support rtas call support

2013-09-04 Thread Alexander Graf
On 04.09.2013, at 15:08, Alexey Kardashevskiy wrote: On 09/04/2013 10:13 PM, Alexander Graf wrote: On 04.09.2013, at 13:40, Alexey Kardashevskiy wrote: On 09/04/2013 08:42 PM, Alexander Graf wrote: On 04.09.2013, at 12:19, Alexey Kardashevskiy wrote: This is an RFC patch

Re: [Qemu-devel] [PATCH] spapr-rtas: reset top 4 bits in parameters address

2013-09-05 Thread Alexander Graf
Am 05.09.2013 um 07:58 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On the real hardware, RTAS is called in real mode and therefore ignores top 4 bits of the address passed in the call. Shouldn't we ignore the upper 4 bits for every memory access in real mode, not just that one parameter?

Re: [Qemu-devel] [Qemu-ppc] [PATCH 16/16] target-ppc: Convert to new ldst opcodes

2013-09-05 Thread Alexander Graf
On 04.09.2013, at 23:05, Richard Henderson wrote: This lets us change le_mode to end_mode and fold away nearly all of the tests for the current cpu endianness, and removing all of the explicitly generated bswap opcodes. Cc: qemu-...@nongnu.org Signed-off-by: Richard Henderson

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 06:54, Alexey Kardashevskiy wrote: On 09/05/2013 02:30 PM, David Gibson wrote: On Tue, Sep 03, 2013 at 05:31:42PM +1000, Alexey Kardashevskiy wrote: This allows guests to have a different timebase origin from the host. This is needed for migration, where a guest can

Re: [Qemu-devel] [PATCH] spapr-rtas: reset top 4 bits in parameters address

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 09:40, Alexey Kardashevskiy wrote: On 09/05/2013 05:08 PM, Alexander Graf wrote: Am 05.09.2013 um 07:58 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On the real hardware, RTAS is called in real mode and therefore ignores top 4 bits of the address passed in the call

  1   2   3   4   5   6   7   8   9   10   >