[Qemu-devel] [RESEND PATCH] MAINTAINERS: Remove myself from e500

2017-04-20 Thread Scott Wood
I recently left Freescale/NXP, and even before that it'd been a few years since I was actively involved in KVM/QEMU work. Signed-off-by: Scott Wood --- Sorry for the resend -- fixed mailing list address. MAINTAINERS | 3 --- 1 file changed, 3 deletions(-) diff --git a/MAINTAIN

Re: [Qemu-devel] [Qemu-ppc] [PATCH] target-ppc: Correct ppc3500_spin initial TLB size

2016-06-23 Thread Scott Wood
On 06/23/2016 04:01 PM, alar...@ddci.com wrote: > On 17 Jun 2016 22:55:47 Scott Wood wrote: > On 06/17/2016 05:13 PM, Aaron Larson wrote: > > AL> The root cause is that the function computing the size of the TLB > AL> entry, namely booke206_page_size_to_tlb ... [is wron

Re: [Qemu-devel] [PATCH] target-ppc: Correct ppc3500_spin initial TLB size

2016-06-20 Thread Scott Wood
On 06/19/2016 09:13 PM, da...@gibson.dropbear.id.au wrote: > On Fri, Jun 17, 2016 at 10:55:47PM +0000, Scott Wood wrote: >> On 06/17/2016 05:13 PM, Aaron Larson wrote: >>> When e500 PPC is booted multi-core, the non-boot cores are started via >>> the spin table. ppce5

Re: [Qemu-devel] [PATCH] target-ppc: Correct ppc3500_spin initial TLB size

2016-06-17 Thread Scott Wood
On 06/17/2016 05:13 PM, Aaron Larson wrote: > When e500 PPC is booted multi-core, the non-boot cores are started via > the spin table. ppce500_spin.c:spin_kick() calls > mmubooke_create_initial_mapping() to allocate a 64MB TLB entry, but > the created TLB entry is only 256KB. > > The root cause i

[Qemu-devel] [Bug 1438144] Re: Page sizes are not interpreted correctly for E500/E500MC

2015-04-07 Thread Scott Wood
This is not a bug. MMU v2 (implemented in e6500) extended the TSIZE field so that 1K << TSIZE is correct. The extension was on the LSB side so that it works fine as long as the low bit of the new TSIZE (which is reserved on e500v2/mc) is zero. ** Changed in: qemu Status: New => Invalid

Re: [Qemu-devel] [Bug 1438144] [NEW] Page sizes are not interpreted correctly for E500/E500MC

2015-04-07 Thread Scott Wood
On Mon, 2015-03-30 at 11:21 +, WGH wrote: > Public bug reported: > > http://cache.freescale.com/files/32bit/doc/ref_manual/E500CORERM.pdf - see > 2.12.5.2 MAS Register 1 (MAS1), p. 2-41 > http://cache.freescale.com/files/32bit/doc/ref_manual/E500MCRM.pdf - see > 2.16.6.2 MAS Register 1 (MAS1

Re: [Qemu-devel] [PATCH 1/3] PPC: Clean up misuse of qdev_init() in kvm-openpic creation

2015-02-24 Thread Scott Wood
On Wed, 2015-02-18 at 15:43 +0100, Markus Armbruster wrote: > Scott, can you review? > > Markus Armbruster writes: > > > We call ppce500_init_mpic_kvm() to create a "kvm-openpic". If it > > fails, we call ppce500_init_mpic_qemu() to fall back to plain > > "openpic". > > > > ppce500_init_mpic_kv

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] PPC: openpic_kvm: Filter region callbacks based on memory region offset

2014-09-05 Thread Scott Wood
On Wed, 2014-09-03 at 14:36 -0400, Bogdan Purcareata wrote: > This is done due to the fact that the kvm-openpic region_{add,del} callbacks > can be invoked for sections generated from other memory regions as well. These > callbacks should handle only requests for the kvm-openpic memory region. > >

Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/2] memory: Add MemoryRegion get address space offset helper function

2014-09-05 Thread Scott Wood
On Wed, 2014-09-03 at 14:36 -0400, Bogdan Purcareata wrote: > Adding this function would allow a MemoryRegion to compute its start address > within the AddressSpace. This is done recursively based on mr->container. > > Signed-off-by: Bogdan Purcareata > --- > include/exec/memory.h |8 +++

Re: [Qemu-devel] [PATCH 5/6] PPC: e500: Support dynamically spawned sysbus devices

2014-07-02 Thread Scott Wood
On Wed, 2014-07-02 at 19:59 +0200, Alexander Graf wrote: > On 02.07.14 19:52, Scott Wood wrote: > > On Wed, 2014-07-02 at 19:30 +0200, Alexander Graf wrote: > >> On 02.07.14 19:26, Scott Wood wrote: > >>> On Wed, 2014-07-02 at 19:12 +0200, Alexander Graf wrote: > &

Re: [Qemu-devel] [PATCH 5/6] PPC: e500: Support dynamically spawned sysbus devices

2014-07-02 Thread Scott Wood
On Wed, 2014-07-02 at 19:30 +0200, Alexander Graf wrote: > On 02.07.14 19:26, Scott Wood wrote: > > On Wed, 2014-07-02 at 19:12 +0200, Alexander Graf wrote: > >> On 02.07.14 00:50, Scott Wood wrote: > >>> Plus, let's please not hardcode any more addresses that

Re: [Qemu-devel] [PATCH 6/6] e500: Add support for eTSEC in device tree

2014-07-02 Thread Scott Wood
On Wed, 2014-07-02 at 19:24 +0200, Alexander Graf wrote: > On 02.07.14 00:56, Scott Wood wrote: > > On Tue, 2014-07-01 at 23:49 +0200, Alexander Graf wrote: > >> This patch adds support to expose eTSEC devices in the dynamically created > >> guest facing device tree. Thi

Re: [Qemu-devel] [PATCH 5/6] PPC: e500: Support dynamically spawned sysbus devices

2014-07-02 Thread Scott Wood
On Wed, 2014-07-02 at 19:12 +0200, Alexander Graf wrote: > On 02.07.14 00:50, Scott Wood wrote: > > Plus, let's please not hardcode any more addresses that are going to be > > a problem for giving guests a large amount of RAM (yes, CCSRBAR is also > > blocking th

Re: [Qemu-devel] [PATCH 5/6] PPC: e500: Support dynamically spawned sysbus devices

2014-07-01 Thread Scott Wood
On Tue, 2014-07-01 at 23:49 +0200, Alexander Graf wrote: > For e500 our approach to supporting dynamically spawned sysbus devices is to > create a simple bus from the guest's point of view within which we map those > devices dynamically. > > We allocate memory regions always within the "platform"

Re: [Qemu-devel] [PATCH 6/6] e500: Add support for eTSEC in device tree

2014-07-01 Thread Scott Wood
On Tue, 2014-07-01 at 23:49 +0200, Alexander Graf wrote: > This patch adds support to expose eTSEC devices in the dynamically created > guest facing device tree. This allows us to expose eTSEC devices into guests > without changes in the machine file. > > Because we can now tell the guest about eT

Re: [Qemu-devel] [Qemu-ppc] [PATCH] target-ppc: improve "info registers" by printing SPRs

2014-04-22 Thread Scott Wood
On Thu, 2014-03-20 at 01:17 +1100, Alexey Kardashevskiy wrote: > This adds printing of all SPR registers registered for a CPU. > > This removes "SPR_" prefix from SPR name to reduce the output. > > Signed-off-by: Alexey Kardashevskiy > --- > > > Now it should look like below. Before the user h

Re: [Qemu-devel] [PATCH 2.0] PPC: openpic_kvm: Filter memory events properly

2014-04-02 Thread Scott Wood
. > > Signed-off-by: Alexander Graf Acked-by: Scott Wood -Scott

Re: [Qemu-devel] [PATCH 10/10] PPC: e500: Move to u-boot as firmware

2014-01-23 Thread Scott Wood
On Thu, 2014-01-23 at 11:40 +0100, Alexander Graf wrote: > On 23.01.2014, at 01:23, Scott Wood wrote: > > > On Mon, 2014-01-20 at 00:44 +0100, Alexander Graf wrote: > >> Almost all platforms QEMU emulates have some sort of firmware they can load > >> to expose a

Re: [Qemu-devel] [Qemu-ppc] [PATCH 07/10] PPC: guts: Add emulation of a few more registers

2014-01-23 Thread Scott Wood
On Thu, 2014-01-23 at 12:34 +0100, Alexander Graf wrote: > On 23.01.2014, at 01:08, Scott Wood wrote: > > > On Mon, 2014-01-20 at 00:44 +0100, Alexander Graf wrote: > >> The GUTS device is used by system software to find out about hardware > >> details of the curr

Re: [Qemu-devel] [PATCH 10/10] PPC: e500: Move to u-boot as firmware

2014-01-22 Thread Scott Wood
On Mon, 2014-01-20 at 00:44 +0100, Alexander Graf wrote: > Almost all platforms QEMU emulates have some sort of firmware they can load > to expose a guest environment that closely resembles the way it would look > like on real hardware. > > This patch introduces such a firmware on our e500 platfor

Re: [Qemu-devel] [Qemu-ppc] [PATCH 04/10] PPC: Add L1CFG1 SPR emulation

2014-01-22 Thread Scott Wood
On Mon, 2014-01-20 at 00:44 +0100, Alexander Graf wrote: > In addition to the L1 data cache configuration register L1CFG0 there is > also another one for the L1 instruction cache called L1CFG1. > > Emulate that one with the same values as the data one. > > Signed-off-by: Alexander Graf > --- >

Re: [Qemu-devel] [PATCH 09/10] PPC: Add u-boot firmware for e500

2014-01-22 Thread Scott Wood
On Mon, 2014-01-20 at 11:04 +0100, Alexander Graf wrote: > > > Am 20.01.2014 um 01:17 schrieb Peter Maydell : > > > >> On 19 January 2014 23:44, Alexander Graf wrote: > >> This adds a special build of u-boot tailored for the e500 platforms we > >> emulate. It is based on patches that are current

Re: [Qemu-devel] [Qemu-ppc] [PATCH 07/10] PPC: guts: Add emulation of a few more registers

2014-01-22 Thread Scott Wood
On Mon, 2014-01-20 at 00:44 +0100, Alexander Graf wrote: > The GUTS device is used by system software to find out about hardware > details of the current system. > > We only emulate the bare minimum to be able to reboot a guest which is > not sufficient to make u-boot happy. > > Add a few more re

Re: [Qemu-devel] [RFC PATCH v2] PPC: smp: autodetect numbers of threads per core

2014-01-09 Thread Scott Wood
On Thu, 2014-01-09 at 16:34 +1100, Alexey Kardashevskiy wrote: > On POWERPC, only a whole CPU core can be assigned to a KVM. s/POWERPC/POWER/ -Scott

Re: [Qemu-devel] [Qemu-ppc] [V3 PATCH 03/14] target-ppc: Add ISA2.06 divdeu[o] Instructions

2014-01-03 Thread Scott Wood
On Fri, 2014-01-03 at 13:24 -0600, Tom Musta wrote: > On 12/27/2013 6:30 PM, Scott Wood wrote: > > These instructions are phased-in on embedded, and unlike bpermd are not > > present on e5500/e6500 which are 64-bit ISA 2.06 implementations. > > Wasn't the conclusion i

Re: [Qemu-devel] [V3 PATCH 02/14] target-ppc: Add ISA2.06 bpermd Instruction

2013-12-27 Thread Scott Wood
On Wed, 2013-12-18 at 14:48 -0600, Tom Musta wrote: > This patch adds the Bit Permute Doubleword (bpermd) instruction, > which was introduced in Power ISA 2.06 as part of the base 64-bit > architecture. Technically it's "Category: Embedded.Phased-in, Server" rather than "Category: Base". e5500 do

Re: [Qemu-devel] [Qemu-ppc] [V3 PATCH 03/14] target-ppc: Add ISA2.06 divdeu[o] Instructions

2013-12-27 Thread Scott Wood
On Wed, 2013-12-18 at 14:48 -0600, Tom Musta wrote: > This patch adds the Divide Doubleword Extended Unsigned > instructions. This instruction requires dividing a 128-bit > value by a 64 bit value. Since 128 bit integer division is > not supported in TCG, a helper is used, providing a > repeated

Re: [Qemu-devel] [V3 PATCH 02/14] target-ppc: Add ISA2.06 bpermd Instruction

2013-12-27 Thread Scott Wood
On Tue, 2013-12-24 at 07:17 -0800, Richard Henderson wrote: > On 12/18/2013 12:48 PM, Tom Musta wrote: > > +DEF_HELPER_3(bpermd, i64, env, i64, i64) > > Should be DEF_HELPER_FLAGS_2(bpermd, TCG_CALL_NO_RWG_SE, i64, i64, i64) > > > +uint64_t helper_bpermd(CPUPPCState *env, uint64_t rs, uint64_t rb

Re: [Qemu-devel] [Qemu-ppc] [PATCH 01/18] target-ppc: Add Flag for Power ISA V2.06

2013-12-19 Thread Scott Wood
On Thu, 2013-12-19 at 09:35 -0600, Tom Musta wrote: > It turns out that all of the instructions added in this series are *not* > implemented > in e500mc. So the patch, as is, is correct for e500mc as well as P7/P8. That may be true for e500mc (for some reason it didn't look that way when I check

Re: [Qemu-devel] [Qemu-ppc] [PATCH 01/18] target-ppc: Add Flag for Power ISA V2.06

2013-12-18 Thread Scott Wood
On Wed, 2013-12-18 at 23:09 +0100, Alexander Graf wrote: > On 18.12.2013, at 23:02, Scott Wood wrote: > > > On Mon, 2013-12-09 at 09:46 -0600, Tom Musta wrote: > >> This patch adds a flag for base instruction additions to Power ISA > >> 2.06B. The flag will be used

Re: [Qemu-devel] [PATCH 01/18] target-ppc: Add Flag for Power ISA V2.06

2013-12-18 Thread Scott Wood
On Mon, 2013-12-09 at 09:46 -0600, Tom Musta wrote: > This patch adds a flag for base instruction additions to Power ISA > 2.06B. The flag will be used to identify/select basic Book I and > Book II instructions that were newly added in that revision of the > architecture. The flag will not be use

Re: [Qemu-devel] [PATCH] roms: Flush icache when writing roms to guest memory

2013-12-13 Thread Scott Wood
On Wed, 2013-12-11 at 13:56 +, Peter Maydell wrote: > On 11 December 2013 13:23, Alexander Graf wrote: > > The guest expects that its data and instruction cache view of the world > > is 100% consistent when it initially boots. This works just fine on > > initial rom population for the first bo

Re: [Qemu-devel] [PATCH v2] roms: Flush icache when writing roms to guest memory

2013-12-12 Thread Scott Wood
On Thu, 2013-12-12 at 10:29 +0100, Alexander Graf wrote: > We use the rom infrastructure to write firmware and/or initial kernel > blobs into guest address space. So we're basically emulating the cache > off phase on very early system bootup. > > That phase is usually responsible for clearing the

Re: [Qemu-devel] [PATCH v3] ppc: introduce CPUPPCState::cpu_dt_id

2013-11-05 Thread Scott Wood
On Tue, 2013-11-05 at 07:00 +0100, Alexander Graf wrote: > > Am 05.11.2013 um 02:48 schrieb Scott Wood : > > > On Tue, 2013-11-05 at 12:26 +1100, Alexey Kardashevskiy wrote: > >> On 11/05/2013 06:42 AM, Scott Wood wrote: > >>> On Mon, 2013-11-04 at 10:41 +010

Re: [Qemu-devel] [PATCH v3] ppc: introduce CPUPPCState::cpu_dt_id

2013-11-04 Thread Scott Wood
On Tue, 2013-11-05 at 12:26 +1100, Alexey Kardashevskiy wrote: > On 11/05/2013 06:42 AM, Scott Wood wrote: > > On Mon, 2013-11-04 at 10:41 +0100, Alexander Graf wrote: > >> What we really have are 3 semantically separate entities: > >> > >> * QEMU internal

Re: [Qemu-devel] [PATCH v3] ppc: introduce CPUPPCState::cpu_dt_id

2013-11-04 Thread Scott Wood
On Mon, 2013-11-04 at 10:41 +0100, Alexander Graf wrote: > What we really have are 3 semantically separate entities: > > * QEMU internal cpu id > * KVM internal cpu id > * DT exposed cpu id > > As you have noted, it's a good idea to keep the QEMU internal cpu id > linear, thus completely se

Re: [Qemu-devel] [ANNOUNCE] Key Signing Party at KVM Forum 2013

2013-10-17 Thread Scott Wood
On Wed, 2013-07-24 at 07:50 -0500, Anthony Liguori wrote: > I will be hosting a key signing party at this year's KVM Forum. > > http://wiki.qemu.org/KeySigningParty2013 > > Starting for the 1.7 release (begins in December), I will only accepted > signed pull requests so please try to attend this

Re: [Qemu-devel] vfio for platform devices - 9/5/2012 - minutes

2013-09-12 Thread Scott Wood
On Thu, 2013-09-12 at 16:23 -0500, Alexander Graf wrote: > On 12.09.2013, at 13:10, Scott Wood wrote: > > > On Thu, 2013-09-12 at 04:18 -0500, Bhushan Bharat-R65777 wrote: > >> and device disabling is not a standard like PCI. Do you think that we > >> might need t

Re: [Qemu-devel] vfio for platform devices - 9/5/2012 - minutes

2013-09-12 Thread Scott Wood
On Thu, 2013-09-12 at 16:48 -0500, Alexander Graf wrote: > On 12.09.2013, at 16:45, Scott Wood wrote: > > > On Thu, 2013-09-12 at 16:23 -0500, Alexander Graf wrote: > >> On 12.09.2013, at 13:10, Scott Wood wrote: > >> > >>> On Thu, 2013-09-12 a

Re: [Qemu-devel] vfio for platform devices - 9/5/2012 - minutes

2013-09-12 Thread Scott Wood
x27;; 'Antonios Motakis'; 'Christoffer Dall'; 'kim.phill...@linaro.org' > > > > Cc: kvm...@lists.cs.columbia.edu; 'kvm-...@vger.kernel.org'; 'qemu- > > > > de...@nongnu.org' > > > > Subject: vfio for platform devic

Re: [Qemu-devel] vfio for platform devices - 9/5/2012 - minutes

2013-09-11 Thread Scott Wood
On Wed, 2013-09-11 at 11:42 -0500, Yoder Stuart-B08248 wrote: > One thing we didn't discuss needs to be considered (probably by > Kim who is looking at the 'binding device' issue) is around > returning a passthru device back to the host. > > After a platform device has been bound to vfio and is in

Re: [Qemu-devel] [PATCH 6/9] PlatBus: Add serial-platbus device

2013-07-24 Thread Scott Wood
On 07/22/2013 01:56:32 PM, Alexander Graf wrote: On 22.07.2013, at 20:26, Peter Maydell wrote: > On 22 July 2013 18:50, Alexander Graf wrote: >> We want to be able to spawn a serial console on the platform bus. Create >> a small platbus wrapper device very similar to the ISA one. > > Why no

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Scott Wood
On 07/23/2013 04:44:02 PM, Alexander Graf wrote: Am 23.07.2013 um 23:19 schrieb Scott Wood : > On 07/23/2013 04:15:59 PM, Alexander Graf wrote: >> On 23.07.2013, at 21:38, Scott Wood wrote: >> > On 07/22/2013 10:28:17 AM, Alexander Graf wrote: >> >> Today we ge

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Scott Wood
On 07/23/2013 04:15:59 PM, Alexander Graf wrote: On 23.07.2013, at 21:38, Scott Wood wrote: > On 07/22/2013 10:28:17 AM, Alexander Graf wrote: >> Today we generate the device tree once on machine initialization and then >> store the finalized blob in memory to reload it on re

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Scott Wood
On 07/22/2013 10:28:17 AM, Alexander Graf wrote: Today we generate the device tree once on machine initialization and then store the finalized blob in memory to reload it on reset. This is bad for 2 reasons. First we potentially waste a bunch of RAM for no good reason, as we have all informa

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] Add Enhanced Three-Speed Ethernet Controller (eTSEC)

2013-07-19 Thread Scott Wood
On 07/19/2013 04:22:46 AM, Fabien Chouteau wrote: On 07/18/2013 10:37 PM, Scott Wood wrote: > On 07/18/2013 04:27:50 AM, Fabien Chouteau wrote: >> The BD is full, we will have to put the rest of padding in the next one. > > What rest of padding? I thought you said rx_padding

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] Add Enhanced Three-Speed Ethernet Controller (eTSEC)

2013-07-18 Thread Scott Wood
On 07/18/2013 04:27:50 AM, Fabien Chouteau wrote: On 07/17/2013 11:02 PM, Scott Wood wrote: > On 07/17/2013 05:17:06 AM, Fabien Chouteau wrote: >> On 07/16/2013 07:50 PM, Scott Wood wrote: >> > On 07/16/2013 10:28:28 AM, Fabien Chouteau wrote: >> >> On 07/16/2

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] Add Enhanced Three-Speed Ethernet Controller (eTSEC)

2013-07-17 Thread Scott Wood
On 07/17/2013 05:17:06 AM, Fabien Chouteau wrote: On 07/16/2013 07:50 PM, Scott Wood wrote: > On 07/16/2013 10:28:28 AM, Fabien Chouteau wrote: >> On 07/16/2013 04:06 AM, Scott Wood wrote: >> > On 07/10/2013 12:10:02 PM, Fabien Chouteau wrote: >> >> +

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] Add Enhanced Three-Speed Ethernet Controller (eTSEC)

2013-07-16 Thread Scott Wood
On 07/16/2013 10:28:28 AM, Fabien Chouteau wrote: On 07/16/2013 04:06 AM, Scott Wood wrote: > On 07/10/2013 12:10:02 PM, Fabien Chouteau wrote: >> This implementation doesn't include ring priority, TCP/IP Off-Load, QoS. >> >> Signed-off-by: Fabien Chouteau > >

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] Add Enhanced Three-Speed Ethernet Controller (eTSEC)

2013-07-16 Thread Scott Wood
On 07/16/2013 11:15:51 AM, Fabien Chouteau wrote: On 07/16/2013 05:37 PM, Alexander Graf wrote: > On 07/16/2013 05:28 PM, Fabien Chouteau wrote: >> On 07/16/2013 04:06 AM, Scott Wood wrote: >>> On 07/10/2013 12:10:02 PM, Fabien Chouteau wrote: >>>> This imple

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] Add Enhanced Three-Speed Ethernet Controller (eTSEC)

2013-07-15 Thread Scott Wood
On 07/10/2013 12:10:02 PM, Fabien Chouteau wrote: > This implementation doesn't include ring priority, TCP/IP Off-Load, QoS. > > Signed-off-by: Fabien Chouteau >From the code comments I gather this has been tested on VxWorks. Has it been tested on Linux, or anywhere else? > --- > default-conf

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

2013-07-10 Thread Scott Wood
On 07/10/2013 03:55:46 PM, Programmingkid wrote: On Jul 10, 2013, at 4:17 PM, Scott Wood wrote: > On 07/10/2013 02:54:19 PM, Programmingkid wrote: >> On Jul 10, 2013, at 3:03 PM, Scott Wood wrote: >> > Maybe the user doesn't mind -- but maybe they do mind and would r

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

2013-07-10 Thread Scott Wood
On 07/10/2013 02:54:19 PM, Programmingkid wrote: On Jul 10, 2013, at 3:03 PM, Scott Wood wrote: > On 07/09/2013 10:36:37 PM, Programmingkid wrote: >> On Jul 9, 2013, at 1:32 PM, Scott Wood wrote: >> > On 07/04/2013 09:58:04 AM, Programmingkid wrote: >> >> On Ju

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

2013-07-10 Thread Scott Wood
On 07/09/2013 10:36:37 PM, Programmingkid wrote: On Jul 9, 2013, at 1:32 PM, Scott Wood wrote: > On 07/04/2013 09:58:04 AM, Programmingkid wrote: >> On Jul 4, 2013, at 10:51 AM, Stefan Hajnoczi wrote: >> > On Thu, Jul 4, 2013 at 4:45 PM, Alexander Graf wrote: >> &g

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

2013-07-09 Thread Scott Wood
On 07/04/2013 09:58:04 AM, Programmingkid wrote: On Jul 4, 2013, at 10:51 AM, Stefan Hajnoczi wrote: > On Thu, Jul 4, 2013 at 4:45 PM, Alexander Graf 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 ru

Re: [Qemu-devel] [PATCH 3/3] KVM: PPC: enable irqfd

2013-06-21 Thread Scott Wood
On 06/21/2013 04:22:55 AM, Alexey Kardashevskiy wrote: Signed-off-by: Alexey Kardashevskiy --- target-ppc/kvm.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index d6da146..e72c335 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -1973,6 +19

Re: [Qemu-devel] [Qemu-ppc] [PATCH 02/12] qtest: add spapr hypercall support

2013-06-20 Thread Scott Wood
On 06/20/2013 01:58:55 PM, Anthony Liguori wrote: Alexander Graf writes: > Am 20.06.2013 um 17:42 schrieb Anthony Liguori : > >> Andreas Färber writes: >> >>> The functions are called spapr_hcall*() but the protocol uses >>> papr_hypercall? >> >> The discrepancy is inherited in the KVM vs.

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

2013-06-19 Thread Scott Wood
On 06/16/2013 02:11:58 PM, Andreas Färber wrote: Am 15.06.2013 00:57, schrieb Scott Wood: > ...which of those would make me think "hmm, there's something in here > that I need to read before submitting patches for in-kernel mpic"? > > I'm not trying to be diffi

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

2013-06-19 Thread Scott Wood
On 06/16/2013 02:25:04 PM, Andreas Färber wrote: Subject is misleading: it's intc/openpic_kvm, not kvm/openpic. Alex, please fix when squashing. I meant it as a general description of the functional area, not as a literal pathname. It looks like that format is more of a Linux kernel thing

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

2013-06-14 Thread Scott Wood
On 06/14/2013 09:59:18 AM, Andreas Färber wrote: Am 13.06.2013 19:32, schrieb Scott Wood: > On 06/13/2013 06:01:49 AM, Andreas Färber wrote: >> Am 12.06.2013 22:32, schrieb Scott Wood: >> > +typedef struct KVMOpenPICState { >> > +SysBusDevice busdev; >> &

Re: [Qemu-devel] [Qemu-ppc] [PATCH] target-ppc: Change default machine for 64-bit

2013-06-13 Thread Scott Wood
On 06/13/2013 01:31:48 PM, Anthony Liguori wrote: Alexander Graf writes: > On 17.05.2013, at 09:42, Andreas Färber wrote: > >> Am 17.05.2013 06:25, schrieb David Gibson: >>> Currently, for qemu-system-ppc64, the default machine type is 'mac99'. >>> Since the mac99 machine is not being activel

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

2013-06-13 Thread Scott Wood
On 06/13/2013 06:01:49 AM, Andreas Färber wrote: Am 12.06.2013 22:32, schrieb Scott Wood: > +typedef struct KVMOpenPICState { > +SysBusDevice busdev; SysBusDevice parent_obj; please! http://wiki.qemu.org/QOMConventions The word "QOMConventions" doesn't exist once in

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

2013-06-12 Thread Scott Wood
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. However, it was applied before the

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

2013-06-12 Thread Scott Wood
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), and thus this hunk got lost. Signed-off-by: Scott

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

2013-06-12 Thread Scott Wood
On 06/12/2013 08:01:06 AM, Alexander Graf wrote: On 01.05.2013, at 03:48, Scott Wood wrote: > +static void kvm_openpic_region_add(MemoryListener *listener, > + MemoryRegionSection *section) > +{ > +KVMOpenPICState *opp = container

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

2013-06-12 Thread Scott Wood
that function would do for us in the in-kernel device init handler. Signed-off-by: Scott Wood --- v2: fix "llx" -> PRI_x64, and remove some broken leftover code involving reg_base. --- default-configs/ppc-softmmu.mak |1 + default-configs/ppc64-softmmu.mak |1 + hw/

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

2013-06-12 Thread Scott Wood
On 06/12/2013 08:04:55 AM, Alexander Graf wrote: On 01.05.2013, at 03:48, Scott Wood wrote: > From: Alexander Graf > > 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. > > Howeve

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] KVM: PPC: Add dummy kvm_arch_init_irq_routing()

2013-06-10 Thread Scott Wood
On 06/08/2013 02:24:21 AM, Michael Tokarev wrote: 06.06.2013 07:59, Alexey Kardashevskiy wrote: > From: Scott Wood > > The common KVM code insists on calling kvm_arch_init_irq_routing() > as soon as it sees kernel header support for it (regardless of whether > QEMU supports

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

2013-06-10 Thread Scott Wood
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-...@nongnu.org; qemu-devel@nongnu.org; ag...@su

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

2013-06-06 Thread Scott Wood
On 06/06/2013 06:44:31 AM, Andreas Färber wrote: Am 26.05.2013 19:41, schrieb Julio Guerra: > 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 base

Re: [Qemu-devel] [PATCH 2/2] KVM: PPC: Add dummy kvm_arch_init_irq_routing()

2013-06-06 Thread Scott Wood
On 06/05/2013 10:59:06 PM, Alexey Kardashevskiy wrote: From: Scott Wood The common KVM code insists on calling kvm_arch_init_irq_routing() as soon as it sees kernel header support for it (regardless of whether QEMU supports it). Provide a dummy function to satisfy this. Unlike x86, PPC does

Re: [Qemu-devel] [PATCH] target-ppc kvm: missing kvm_arch_init_irq_routing

2013-05-30 Thread Scott Wood
On 05/30/2013 04:25:33 AM, Alexey Kardashevskiy wrote: This adds an empty stub to make the compiler happy. Signed-off-by: Alexey Kardashevskiy --- target-ppc/kvm.c |4 1 file changed, 4 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 3ab2946..2bbc3b8 100644 --- a

[Qemu-devel] [PATCH 5/9] KVM: MSI: Swap payload to native endianness

2013-04-30 Thread Scott Wood
From: Alexander Graf The usual MSI injection mechanism writes msi.data into memory using an le32 wrapper. So on big endian guests, this swaps msg.data into the expected byte order. For irqfd however, we don't swap the payload right now, rendering in-kernel MPIC emulation broken on PowerPC. Swap

[Qemu-devel] [PATCH 9/9] KVM: PIC: Only commit irq routing when necessary

2013-04-30 Thread Scott Wood
From: Alexander Graf The current logic updates KVM's view of our interrupt map every time we change it. While this is nice and bullet proof, it slows things down badly for me. QEMU spends about 3 seconds on every start telling KVM what news it has on its routing maps. Instead, let's just synchro

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

2013-04-30 Thread Scott Wood
that function would do for us in the in-kernel device init handler. Signed-off-by: Scott Wood --- default-configs/ppc-softmmu.mak |1 + default-configs/ppc64-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/openpic_kvm.c |

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

2013-04-30 Thread 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(-) diff --git a/hw

[Qemu-devel] [PATCH 3/9] linux-headers: update to kvm next

2013-04-30 Thread Scott Wood
Headers are imported from commit 4cee4b72f1e2600e19779a14d4d9a4f4016ce49f in the next branch of git://git.kernel.org/pub/scm/virt/kvm/kvm.git Signed-off-by: Scott Wood --- linux-headers/asm-arm/kvm.h | 12 +++--- linux-headers/asm-powerpc/kvm.h | 77

[Qemu-devel] [PATCH 4/9] KVM: Export kvm_init_irq_routing

2013-04-30 Thread Scott Wood
From: Alexander Graf On PPC, we can have different types of interrupt controllers, so we really only know that we are going to use one when we created it. Export kvm_init_irq_routing() to common code, so that we don't have to call kvm_irqchip_create(). Signed-off-by: Alexander Graf --- includ

[Qemu-devel] [PATCH 7/9] PPC: e500: factor out mpic init code

2013-04-30 Thread 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(-) diff --

[Qemu-devel] [PATCH 2/9] KVM: PPC: Add dummy kvm_arch_init_irq_routing()

2013-04-30 Thread Scott Wood
stick here. Even if you ignore the routes themselves, which even on x86 are not set up in this function, the initial XICS kernel implementation will not support IRQ routing, so it's best to leave even the general feature flags up to the specific irqchip code. Signed-off-by: Scott Wood

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

2013-04-30 Thread Scott Wood
anymore. Let's split up the two cases into two different variables. That way PPC can expose an in-kernel PIC, while not implementing MP state. Signed-off-by: Alexander Graf CC: Jan Kiszka Signed-off-by: Scott Wood --- v1 -> v2: - use kvm_halt_in_kernel() instead v2 -> v3:

Re: [Qemu-devel] [Qemu-ppc] [v1][PATCH 1/1] PPC: e500: correct params->ram_size with ram_size

2013-04-30 Thread Scott Wood
On 04/30/2013 06:03:54 PM, Chen, Tiejun wrote: > -Original Message- > From: Scott Wood [mailto:scottw...@freescale.com] > Sent: Tuesday, April 30, 2013 3:19 AM > To: Chen, Tiejun > Cc: ag...@suse.de; qemu-...@nongnu.org; qemu-devel@nongnu.org > Subject: Re: [Qemu-ppc] [

Re: [Qemu-devel] [Qemu-ppc] [v1][PATCH 1/1] PPC: e500: correct params->ram_size with ram_size

2013-04-30 Thread Scott Wood
On 04/30/2013 06:31:41 PM, Chen, Tiejun wrote: > function that gets called later. The comment doesn't make Are you saying I should replace cpu_to_be64(params->ram_size) with cpu_to_be64(ram_size) directly in ppce500_load_device_tree()? No, I'm saying to reword (or eliminate) the confusing c

Re: [Qemu-devel] [Qemu-ppc] [v1][PATCH 1/1] PPC: e500: correct params->ram_size with ram_size

2013-04-29 Thread Scott Wood
On 04/28/2013 05:30:09 AM, Tiejun Chen wrote: We should sync params->ram_size after we fixup memory size on a alignment boundary. Otherwise Guest would exceed the actual memory region. Signed-off-by: Tiejun Chen --- hw/ppc/e500.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/ppc/

Re: [Qemu-devel] [PATCH v2] ppc: initialize GPRs as per epapr

2013-04-29 Thread Scott Wood
On 04/29/2013 02:10:14 PM, Bhushan Bharat-R65777 wrote: > The caller needs both the "tsize" > and the size in bytes, and you only call this wrapper once, so let the caller do > the conversion instead. Caller does not need to know both. It only need to know the size in bytes. I think git

Re: [Qemu-devel] [PATCH v2] ppc: initialize GPRs as per epapr

2013-04-29 Thread Scott Wood
On 04/29/2013 09:40:56 AM, Bharat Bhushan wrote: ePAPR defines the initial values of cpu registers. This patch initialize the GPRs as per ePAPR specification. This resolves the issue of guest reboot/reset (guest hang on reboot). Signed-off-by: Bharat Bhushan --- v1-->v2 - Dynemic seting of in

Re: [Qemu-devel] [PATCH] ppc: initialize GPRs as per epapr

2013-04-26 Thread Scott Wood
On 04/26/2013 01:59:10 AM, Alexander Graf wrote: On 26.04.2013, at 08:51, Bhushan Bharat-R65777 wrote: > > >> -Original Message- >> From: Alexander Graf [mailto:ag...@suse.de] >> Sent: Friday, April 26, 2013 11:51 AM >> To: Bhushan Bharat-R65777 >> Cc: qemu-...@nongnu.org; qemu-devel@no

Re: [Qemu-devel] [RFC PATCH v2 3/6] memory: add memory_region_to_address()

2013-04-16 Thread Scott Wood
On 04/16/2013 03:25:50 AM, Peter Maydell wrote: On 16 April 2013 00:19, Scott Wood wrote: > This is useful for when a user of the memory region API needs to > communicate the absolute bus address to something outside QEMU > (in particular, KVM). > > Signed-off-by: Scott Wood &g

[Qemu-devel] [RFC PATCH v2 5/6] PPC: e500: factor out mpic init code

2013-04-15 Thread 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 --- hw/ppc/e500.c | 56 ++-- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/hw/ppc/e500.c b/hw/ppc/e

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

2013-04-15 Thread Scott Wood
This depends on RFC kernel interfaces proposed at: http://patchwork.ozlabs.org/patch/236285/ http://patchwork.ozlabs.org/patch/236288/ http://patchwork.ozlabs.org/patch/236290/ TODO: use KVM_IRQ_LINE Signed-off-by: Scott Wood --- hw/kvm/Makefile.objs |1 + hw/kvm/openpic.c | 259

[Qemu-devel] [RFC PATCH v2 1/6] kvm: update linux-headers

2013-04-15 Thread Scott Wood
These headers have not yet been merged into Linux -- this is an RFC patchset. Signed-off-by: Scott Wood --- linux-headers/asm-powerpc/kvm.h | 16 linux-headers/linux/kvm.h | 34 ++ 2 files changed, 50 insertions(+) diff --git a/linux

[Qemu-devel] [RFC PATCH v2 4/6] openpic: factor out some common defines into openpic.h

2013-04-15 Thread Scott Wood
...for use by the KVM in-kernel irqchip stub. Signed-off-by: Scott Wood --- hw/openpic.c | 40 ++-- hw/openpic.h | 11 +++ 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index 03a7075..b655381 100644

[Qemu-devel] [RFC PATCH v2 3/6] memory: add memory_region_to_address()

2013-04-15 Thread Scott Wood
This is useful for when a user of the memory region API needs to communicate the absolute bus address to something outside QEMU (in particular, KVM). Signed-off-by: Scott Wood --- TODO: Use add/del memory listeners later in the patchset, which would eliminate the need for this patch

[Qemu-devel] [RFC PATCH v2 0/6] kvm/openpic: in-kernel irqchip

2013-04-15 Thread Scott Wood
This allows QEMU to use the in-kernel KVM MPIC on some PPC platforms. Scott Wood (6): kvm: update linux-headers kvm: use hw/kvm/Makefile.objs consistently for all relevant architectures memory: add memory_region_to_address() openpic: factor out some common defines into openpic.h PPC

[Qemu-devel] [RFC PATCH v2 2/6] kvm: use hw/kvm/Makefile.objs consistently for all relevant architectures

2013-04-15 Thread Scott Wood
Signed-off-by: Scott Wood --- Build tested on ppc and x86, but not arm as I currently lack a suitable toolchain. Maybe TARGET_I386 should be set on x86_64, instead of needing to test TARGET_BASE_ARCH in Makefile.objs? It seems odd that it's set for x86_64 in C code, but not in the make

Re: [Qemu-devel] RFC: vfio API changes needed for powerpc (v3)

2013-04-11 Thread Scott Wood
On 04/11/2013 07:56:59 AM, Joerg Roedel wrote: On Tue, Apr 09, 2013 at 01:22:15AM +, Yoder Stuart-B08248 wrote: > > What happens if a normal unmap call is done on the MSI iova? Do we > > need a separate unmap? > > I was thinking a normal unmap on an MSI windows would be an error...but >

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-08 Thread Scott Wood
On 04/06/2013 04:01:32 AM, Alexander Graf wrote: Am 06.04.2013 um 01:00 schrieb Scott Wood : > On 04/04/2013 06:59:24 AM, Alexander Graf wrote: >> On 04.04.2013, at 13:53, Andreas Färber wrote: >> > For PReP, Fabien has not stated what his use case actually is (in >

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-05 Thread Scott Wood
On 04/04/2013 06:59:24 AM, Alexander Graf wrote: On 04.04.2013, at 13:53, Andreas Färber wrote: > For PReP, Fabien has not stated what his use case actually is (in > particular which hardware?), so it's hard for me to comment on what the > hardware actually does and I thus won't accept rando

Re: [Qemu-devel] RFC: vfio API changes needed for powerpc (v3)

2013-04-05 Thread Scott Wood
On 04/04/2013 05:10:27 PM, Yoder Stuart-B08248 wrote: /* * VFIO_IOMMU_PAMU_UNMAP_MSI_BANK * * Unmaps the MSI bank at the specified iova. * Caller provides struct vfio_pamu_msi_bank_unmap with all fields set. * Operates on VFIO file descriptor (/dev/vfio/vfio). * Return: 0 on success, -er

Re: [Qemu-devel] RFC: vfio API changes needed for powerpc (v2)

2013-04-04 Thread Scott Wood
On 04/04/2013 04:38:44 PM, Yoder Stuart-B08248 wrote: > > /* > > * VFIO_PAMU_MAP_MSI_BANK > > * > > * Maps the MSI bank at the specified index and iova. User space must > > * call this ioctl once for each MSI bank (count of banks is returned by > > * VFIO_IOMMU_GET_MSI_BANK_COUNT). >

  1   2   3   4   5   >