RE: [Qemu-devel] KVM call agenfda for 2014-04-01

2014-04-10 Thread Stuart Yoder
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Thursday, April 10, 2014 10:57 AM To: Peter Maydell Cc: Juan Quintela; KVM devel mailing list; qemu list; Yoder Stuart- B08248; Alistair Francis; Peter Crosthwaite; Christoffer Dall Subject: Re: [Qemu-devel] KVM

RE: [PATCH] PCI: Introduce new device binding path using pci_dev.driver_override

2014-04-10 Thread Stuart Yoder
alex.william...@redhat.com --- Reviewed-by: Stuart Yoder stuart.yo...@freescale.com

RE: [PATCH] driver core: platform: add device binding path 'driver_override'

2014-04-10 Thread Stuart Yoder
Phillips kim.phill...@freescale.com --- Reviewed-by: Stuart Yoder stuart.yo...@freescale.com -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: mechanism to allow a driver to bind to any device

2014-03-31 Thread Stuart Yoder
, Mar 26, 2014 at 01:40:32AM +, Stuart Yoder wrote: Hi Greg, We (Linaro, Freescale, Virtual Open Systems) are trying get an issue closed that has been perculating for a while around creating a mechanism that will allow kernel drivers like vfio can bind to devices of any type

RE: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Stuart Yoder
-Original Message- From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] Sent: Thursday, December 19, 2013 2:34 PM To: Wood Scott-B07421 Cc: Kim Phillips; linux-ker...@vger.kernel.org; kvm@vger.kernel.org; Bhushan Bharat-R65777; Yoder Stuart-B08248;

RE: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only

2013-12-19 Thread Stuart Yoder
:43 -0800, Greg Kroah-Hartman wrote: On Thu, Dec 19, 2013 at 09:06:21PM +, Stuart Yoder wrote: -Original Message- From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] Sent: Thursday, December 19, 2013 2:34 PM To: Wood Scott-B07421 Cc: Kim

Re: [PATCH 3/7] Return info for device and its memory regions and interrupts

2013-11-07 Thread Stuart Yoder
I will look into this. However, can we rely to have access to all device resources through platform abstractions, for every type of platform device The only resources we care about in vfio are mappable regions and irqs. So, yes I think we can rely on access to those resources. It seems

driver core patches

2013-11-05 Thread Stuart Yoder
flag to allow binding via sysfs only http://www.spinics.net/lists/kvm/msg97198.html [PATCH 2/4] driver core: platform: allow platform drivers to bind to any device http://www.spinics.net/lists/kvm/msg97195.html If you have any issues, we would like to get them addressed. Thanks, Stuart Yoder

Re: [PATCH 2/2] armv7 initial device passthrough support

2013-06-24 Thread Stuart Yoder
On Mon, Jun 24, 2013 at 3:01 PM, Christoffer Dall christoffer.d...@linaro.org wrote: On Mon, Jun 24, 2013 at 10:08:08AM +0200, Mario Smarduch wrote: On 6/15/2013 5:47 PM, Paolo Bonzini wrote: Il 13/06/2013 11:19, Mario Smarduch ha scritto: Updated Device Passthrough Patch. - optimized

Re: [PATCH] bookehv: Handle debug exception on guest exit

2013-04-11 Thread Stuart Yoder
On Thu, Apr 11, 2013 at 1:33 PM, Kumar Gala ga...@kernel.crashing.org wrote: On Apr 5, 2013, at 2:53 AM, Bhushan Bharat-R65777 wrote: Hi Kumar/Benh, After further looking into the code I think that if we correct the vector range below in DebugDebug handler then we do not need the change I

Re: [PATCH] bookehv: Handle debug exception on guest exit

2013-04-11 Thread Stuart Yoder
So the patch should look something like this (on a 3.8 kernel): diff --git a/arch/powerpc/kernel/head_booke.h b/arch/powerpc/kernel/head_booke.h index 5f051ee..92b675a 100644 --- a/arch/powerpc/kernel/head_booke.h +++ b/arch/powerpc/kernel/head_booke.h @@ -286,13 +286,13 @@ label: andis.

Re: [PATCH] bookehv: Handle debug exception on guest exit

2013-04-11 Thread Stuart Yoder
So the patch should look something like this (on a 3.8 kernel): diff --git a/arch/powerpc/kernel/head_booke.h b/arch/powerpc/kernel/head_booke.h index 5f051ee..92b675a 100644 --- a/arch/powerpc/kernel/head_booke.h +++ b/arch/powerpc/kernel/head_booke.h @@ -286,13 +286,13 @@ label: andis.

[PATCH] KVM: PPC: emulate dcbst

2013-04-09 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- arch/powerpc/kvm/emulate.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index 7a73b6f..631a265 100644 --- a/arch/powerpc

[PATCH] KVM: PPC: emulate dcbst

2013-04-09 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- arch/powerpc/kvm/emulate.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index 7a73b6f..631a265 100644 --- a/arch/powerpc

Re: RFC: vfio API changes needed for powerpc

2013-04-03 Thread Stuart Yoder
Type1 is arbitrary. It might as well be named brown and this one can be blue. The difference is that type1 seems to refer to hardware that can do arbitrary 4K page mappings, possibly constrained by an aperture but nothing else. More than one IOMMU can reasonably fit that. The odds

Re: RFC: vfio API changes needed for powerpc

2013-04-03 Thread Stuart Yoder
On Tue, Apr 2, 2013 at 5:50 PM, Scott Wood scottw...@freescale.com wrote: On 04/02/2013 04:38:45 PM, Alex Williamson wrote: On Tue, 2013-04-02 at 16:08 -0500, Stuart Yoder wrote: On Tue, Apr 2, 2013 at 3:57 PM, Scott Wood scottw...@freescale.com wrote: C. Explicit mapping using

Re: RFC: vfio API changes needed for powerpc

2013-04-03 Thread Stuart Yoder
Would is be possible for userspace to simply leave room for MSI bank mapping (how much room could be determined by something like VFIO_IOMMU_GET_MSI_BANK_COUNT) then document the API that userspace can DMA_MAP starting at the 0x0 address of the aperture, growing up, and VFIO will map banks on

Re: RFC: vfio API changes needed for powerpc

2013-04-03 Thread Stuart Yoder
On Wed, Apr 3, 2013 at 2:18 PM, Scott Wood scottw...@freescale.com wrote: On 04/03/2013 02:09:45 PM, Stuart Yoder wrote: Would is be possible for userspace to simply leave room for MSI bank mapping (how much room could be determined by something like VFIO_IOMMU_GET_MSI_BANK_COUNT

Re: RFC: vfio API changes needed for powerpc

2013-04-02 Thread Stuart Yoder
On Tue, Apr 2, 2013 at 2:39 PM, Scott Wood scottw...@freescale.com wrote: On 04/02/2013 12:32:00 PM, Yoder Stuart-B08248 wrote: Alex, We are in the process of implementing vfio-pci support for the Freescale IOMMU (PAMU). It is an aperture/window-based IOMMU and is quite different than x86,

Re: RFC: vfio API changes needed for powerpc

2013-04-02 Thread Stuart Yoder
On Tue, Apr 2, 2013 at 3:32 PM, Alex Williamson alex.william...@redhat.com wrote: 2. MSI window mappings The more problematic question is how to deal with MSIs. We need to create mappings for up to 3 MSI banks that a device may need to target to generate interrupts. The Linux MSI

Re: RFC: vfio API changes needed for powerpc

2013-04-02 Thread Stuart Yoder
On Tue, Apr 2, 2013 at 3:47 PM, Scott Wood scottw...@freescale.com wrote: On 04/02/2013 03:38:42 PM, Stuart Yoder wrote: On Tue, Apr 2, 2013 at 2:39 PM, Scott Wood scottw...@freescale.com wrote: On 04/02/2013 12:32:00 PM, Yoder Stuart-B08248 wrote: Alex, We are in the process

Re: RFC: vfio API changes needed for powerpc

2013-04-02 Thread Stuart Yoder
On Tue, Apr 2, 2013 at 3:57 PM, Scott Wood scottw...@freescale.com wrote: This could also be done as another type2 ioctl extension. Again, what is type2, specifically? If someone else is adding their own IOMMU that is kind of, sort of like PAMU, how would they know if it's close enough?

[PATCH][v4] PPC: add paravirt idle loop for 64-bit book E

2013-02-08 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -removed KVM prefix to patch subject, patch is not KVM specific arch/powerpc/kernel/epapr_hcalls.S |2 ++ arch/powerpc/kernel/idle_book3e.S | 32 ++-- 2

[PATCH][v4] PPC: add paravirt idle loop for 64-bit book E

2013-02-08 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -removed KVM prefix to patch subject, patch is not KVM specific arch/powerpc/kernel/epapr_hcalls.S |2 ++ arch/powerpc/kernel/idle_book3e.S | 32 ++-- 2

[PATCH][v3] KVM: PPC: add paravirt idle loop for 64-bit book E

2013-01-24 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v3 -whitespace cleanup, deleted stray comma, added comment arch/powerpc/kernel/epapr_hcalls.S |2 ++ arch/powerpc/kernel/idle_book3e.S | 32 ++-- 2

[PATCH][v2] KVM: PPC: add paravirt idle loop for 64-bit book E

2013-01-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v2 -macro'ized loop in idle_book3e.S to avoid code duplication, paravirt loop is now in idle_book3e.S arch/powerpc/kernel/epapr_hcalls.S |2 ++ arch/powerpc/kernel

[PATCH] KVM: PPC: add paravirt idle loop for 64-bit book E

2013-01-16 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com loop was derived from book3e_idle() Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- arch/powerpc/kernel/epapr_hcalls.S | 63 1 file changed, 63 insertions(+) diff --git a/arch/powerpc/kernel

[PATCH] KVM: PPC: add paravirt idle loop for 64-bit book E

2013-01-16 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com loop was derived from book3e_idle() Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- arch/powerpc/kernel/epapr_hcalls.S | 63 1 file changed, 63 insertions(+) diff --git a/arch/powerpc/kernel

[PATCH v12 7/8] powerpc/fsl-soc: use CONFIG_EPAPR_PARAVIRT for hcalls

2012-07-03 Thread Stuart Yoder
From: Scott Wood scottw...@freescale.com Signed-off-by: Scott Wood scottw...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/sysdev/fsl_msi.c |9 +++-- arch/powerpc/sysdev/fsl_soc.c |2 ++ 2 files changed, 9 insertions(+), 2

[PATCH v12 1/8] PPC: epapr: create define for return code value of success

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/include/asm/epapr_hcalls.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/epapr_hcalls.h b/arch/powerpc

[PATCH v12 0/8] KVM: PPC: Add ePAPR idle hcall support

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com v12 has a couple of updates to address feedback -use new CURRENT_THREAD_INFO macro in epapr_hcalls.S -use EV_HCALL_TOKEN to create epapr hcall token A prerequisite to applying this patch is the patch: PPC: use CURRENT_THREAD_INFO instead

[PATCH v12 8/8] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

2012-07-03 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/include/asm/epapr_hcalls.h | 22 +- arch/powerpc/include/asm/fsl_hcalls.h | 36

[PATCH v12 5/8] KVM: PPC: ev_idle hcall support for e500 guests

2012-07-03 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com [varun: 64-bit changes] Signed-off-by: Varun Sethi varun.se...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: use new CURRENT_THREAD_INFO macro arch/powerpc/include/asm

[PATCH v12 2/8] KVM: PPC: use definitions in epapr header for hcalls

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/include/asm/kvm_para.h | 21 +++-- arch/powerpc/kernel/kvm.c |2 +- arch/powerpc/kvm/powerpc.c | 10 +- 3

[PATCH v12 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-07-03 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether the host supports the EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: cleanup,fixes for conditions allowing idle] Signed-off-by: Stuart Yoder

[PATCH v12 3/8] KVM: PPC: add pvinfo for hcall opcodes on e500mc/e5500

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Liu Yu yu@freescale.com [stuart: factored this out from idle hcall support in host patch] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/kvm/powerpc.c | 10 +- 1 files changed, 9

[PATCH v12 6/8] PPC: select EPAPR_PARAVIRT for all users of epapr hcalls

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/platforms/Kconfig |1 + drivers/tty/Kconfig|1 + drivers/virt/Kconfig |1 + 3 files changed, 3 insertions(+), 0 deletions

[PATCH v12 0/8] KVM: PPC: Add ePAPR idle hcall support

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com v12 has a couple of updates to address feedback -use new CURRENT_THREAD_INFO macro in epapr_hcalls.S -use EV_HCALL_TOKEN to create epapr hcall token A prerequisite to applying this patch is the patch: PPC: use CURRENT_THREAD_INFO instead

[PATCH v12 8/8] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

2012-07-03 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/include/asm/epapr_hcalls.h | 22 +- arch/powerpc/include/asm/fsl_hcalls.h | 36

[PATCH v12 5/8] KVM: PPC: ev_idle hcall support for e500 guests

2012-07-03 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com [varun: 64-bit changes] Signed-off-by: Varun Sethi varun.se...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: use new CURRENT_THREAD_INFO macro arch/powerpc/include/asm

[PATCH v12 2/8] KVM: PPC: use definitions in epapr header for hcalls

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/include/asm/kvm_para.h | 21 +++-- arch/powerpc/kernel/kvm.c |2 +- arch/powerpc/kvm/powerpc.c | 10 +- 3

[PATCH v12 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-07-03 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether the host supports the EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: cleanup,fixes for conditions allowing idle] Signed-off-by: Stuart Yoder

[PATCH v12 3/8] KVM: PPC: add pvinfo for hcall opcodes on e500mc/e5500

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Liu Yu yu@freescale.com [stuart: factored this out from idle hcall support in host patch] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/kvm/powerpc.c | 10 +- 1 files changed, 9

[PATCH v12 6/8] PPC: select EPAPR_PARAVIRT for all users of epapr hcalls

2012-07-03 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v12: no changes arch/powerpc/platforms/Kconfig |1 + drivers/tty/Kconfig|1 + drivers/virt/Kconfig |1 + 3 files changed, 3 insertions(+), 0 deletions

[PATCH v11 0/8] KVM: PPC: Add ePAPR idle hcall support

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com This is a reworked version of the v10 patchset I sent out back in March, address the comments, plus adding some additional fixes found in further testing. Liu Yu-B13201 (3): KVM: PPC: Add support for ePAPR idle hcall in host kernel KVM: PPC

[PATCH v11 1/8] PPC: epapr: create define for return code value of success

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -this is a new patch in v11 arch/powerpc/include/asm/epapr_hcalls.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/epapr_hcalls.h b/arch

[PATCH v11 2/8] KVM: PPC: use definitions in epapr header for hcalls

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v11: -as per Alex's comments, created a KVM hcall macro to simplify code creating hcall tokens -used macro for success return code arch/powerpc/include/asm/kvm_para.h | 21

[PATCH v11 3/8] KVM: PPC: add pvinfo for hcall opcodes on e500mc/e5500

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Liu Yu yu@freescale.com [stuart: factored this out from idle hcall support in host patch] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v11 -split this code out into a separate patch as per the review comments

[PATCH v11 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-06-22 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether the host supports the EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: cleanup,fixes for conditions allowing idle] Signed-off-by: Stuart Yoder

[PATCH v11 5/8] KVM: PPC: ev_idle hcall support for e500 guests

2012-06-22 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com [varun: 64-bit changes] Signed-off-by: Varun Sethi varun.se...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v11: -added comment about origin of idle instruction sequence -update

[PATCH v11 6/8] PPC: select EPAPR_PARAVIRT for all users of epapr hcalls

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -new in v11-- this patch is needed so the dependencies are correct for all users of epapr hcalls, without it there will be build issues after hardcoded opcodes for hcalls are removed arch

[PATCH v11 7/8] powerpc/fsl-soc: use CONFIG_EPAPR_PARAVIRT for hcalls

2012-06-22 Thread Stuart Yoder
From: Scott Wood scottw...@freescale.com Signed-off-by: Scott Wood scottw...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -new in v11-- this is derived from an internal patch from Scott, without it there will be build issues after hardcoded opcodes for hcalls

[PATCH v11 8/8] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

2012-06-22 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v11: no changes arch/powerpc/include/asm/epapr_hcalls.h | 22 +- arch/powerpc/include/asm/fsl_hcalls.h | 36

[PATCH v11 0/8] KVM: PPC: Add ePAPR idle hcall support

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com This is a reworked version of the v10 patchset I sent out back in March, address the comments, plus adding some additional fixes found in further testing. Liu Yu-B13201 (3): KVM: PPC: Add support for ePAPR idle hcall in host kernel KVM: PPC

[PATCH v11 1/8] PPC: epapr: create define for return code value of success

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -this is a new patch in v11 arch/powerpc/include/asm/epapr_hcalls.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/epapr_hcalls.h b/arch

[PATCH v11 2/8] KVM: PPC: use definitions in epapr header for hcalls

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v11: -as per Alex's comments, created a KVM hcall macro to simplify code creating hcall tokens -used macro for success return code arch/powerpc/include/asm/kvm_para.h | 21

[PATCH v11 3/8] KVM: PPC: add pvinfo for hcall opcodes on e500mc/e5500

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Liu Yu yu@freescale.com [stuart: factored this out from idle hcall support in host patch] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v11 -split this code out into a separate patch as per the review comments

[PATCH v11 4/8] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-06-22 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether the host supports the EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: cleanup,fixes for conditions allowing idle] Signed-off-by: Stuart Yoder

[PATCH v11 5/8] KVM: PPC: ev_idle hcall support for e500 guests

2012-06-22 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com [varun: 64-bit changes] Signed-off-by: Varun Sethi varun.se...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v11: -added comment about origin of idle instruction sequence -update

[PATCH v11 6/8] PPC: select EPAPR_PARAVIRT for all users of epapr hcalls

2012-06-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -new in v11-- this patch is needed so the dependencies are correct for all users of epapr hcalls, without it there will be build issues after hardcoded opcodes for hcalls are removed arch

[PATCH v11 7/8] powerpc/fsl-soc: use CONFIG_EPAPR_PARAVIRT for hcalls

2012-06-22 Thread Stuart Yoder
From: Scott Wood scottw...@freescale.com Signed-off-by: Scott Wood scottw...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -new in v11-- this is derived from an internal patch from Scott, without it there will be build issues after hardcoded opcodes for hcalls

[PATCH v11 8/8] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

2012-06-22 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v11: no changes arch/powerpc/include/asm/epapr_hcalls.h | 22 +- arch/powerpc/include/asm/fsl_hcalls.h | 36

Re: Question about host CPU usage/allocation by KVM

2012-04-18 Thread Stuart Yoder
On Tue, Apr 17, 2012 at 4:54 PM, Alexander Lyakas alex.bols...@gmail.com wrote: Greetings everybody, Can anybody please point me to code/documentation regarding the following questions I have: - What does it actually mean using -smp N option, in terms of CPU sharing between the host and the

Re: smp option of qemu-kvm

2012-04-06 Thread Stuart Yoder
On Thu, Apr 5, 2012 at 1:52 PM, Steven wangwangk...@gmail.com wrote: Hi, Daniel, Thanks for your quick response. However, the ps -eLf show 4 threads for the VM and I checked 4 threads have the same tgid. But the VM I created is with -smp 2 option. Could you explain this? Thanks. info cpus in

Re: [PATCH v9 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-15 Thread Stuart Yoder
On Wed, Mar 7, 2012 at 5:27 PM, Alexander Graf ag...@suse.de wrote: #define KVM_SC_MAGIC_R0               0x4b564d21 /* KVM! */ -#define HC_VENDOR_KVM                (42 16) + +#include asm/epapr_hcalls.h + +/* ePAPR Hypercall Vendor ID */ +#define HC_VENDOR_EPAPR              

Re: [PATCH v9 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-03-15 Thread Stuart Yoder
+early_initcall(epapr_paravirt_init); Just want to double-check. Are you 100% sure that this gets called before kvm_guest_init()? Yes, kvm_guest_init is a postcore_initcall, which comes after early. Some printks confirmed this. Stuart -- To unsubscribe from this list: send the line

[PATCH v10 0/5] KVM: PPC: Add ePAPR idle hcall support

2012-03-15 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com v10: -patchset is now 5 patches, using the epapr header definitions is split out into a separate patch -patch titles and descriptions are also updated -cleanup as per review comments addressed Liu Yu-B13201 (4): KVM: PPC: Factor out

[PATCH v10 1/5] KVM: PPC: Factor out guest epapr initialization

2012-03-15 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com epapr paravirtualization support is now a Kconfig selectable option Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: misc minor fixes, description update] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v10 -update

[PATCH v10 3/5] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-03-15 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether the host supports the EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: cleanup,fixes for conditions allowing idle] Signed-off-by: Stuart Yoder

[PATCH v10 5/5] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

2012-03-15 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Also, select ePAPR kconfig option for all users of ePAPR hcalls. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: kconfig fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v10: update patch subject/description

[PATCH v10 4/5] KVM: PPC: ev_idle hcall support for e500 guests

2012-03-15 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com [stuart: update patch description] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v10: -add spaces as per comments -use PPC_LL/PPC_STL for long accesses arch/powerpc/include/asm/epapr_hcalls.h

[PATCH v10 2/5] KVM: PPC: use definitions in epapr header for hcalls

2012-03-15 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- arch/powerpc/include/asm/kvm_para.h | 19 +-- arch/powerpc/kernel/kvm.c |2 +- arch/powerpc/kvm/powerpc.c | 10 +- 3 files changed, 15

Re: [PATCH v9 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-15 Thread Stuart Yoder
On Wed, Mar 7, 2012 at 5:27 PM, Alexander Graf ag...@suse.de wrote: #define KVM_SC_MAGIC_R0               0x4b564d21 /* KVM! */ -#define HC_VENDOR_KVM                (42 16) + +#include asm/epapr_hcalls.h + +/* ePAPR Hypercall Vendor ID */ +#define HC_VENDOR_EPAPR              

Re: [PATCH v9 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-03-15 Thread Stuart Yoder
+early_initcall(epapr_paravirt_init); Just want to double-check. Are you 100% sure that this gets called before kvm_guest_init()? Yes, kvm_guest_init is a postcore_initcall, which comes after early. Some printks confirmed this. Stuart -- To unsubscribe from this list: send the line

[PATCH v10 0/5] KVM: PPC: Add ePAPR idle hcall support

2012-03-15 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com v10: -patchset is now 5 patches, using the epapr header definitions is split out into a separate patch -patch titles and descriptions are also updated -cleanup as per review comments addressed Liu Yu-B13201 (4): KVM: PPC: Factor out

[PATCH v10 1/5] KVM: PPC: Factor out guest epapr initialization

2012-03-15 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com epapr paravirtualization support is now a Kconfig selectable option Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: misc minor fixes, description update] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v10 -update

[PATCH v10 3/5] KVM: PPC: Add support for ePAPR idle hcall in host kernel

2012-03-15 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether the host supports the EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: cleanup,fixes for conditions allowing idle] Signed-off-by: Stuart Yoder

[PATCH v10 5/5] PPC: Don't use hardcoded opcode for ePAPR hcall invocation

2012-03-15 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Also, select ePAPR kconfig option for all users of ePAPR hcalls. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: kconfig fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v10: update patch subject/description

[PATCH v10 4/5] KVM: PPC: ev_idle hcall support for e500 guests

2012-03-15 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Signed-off-by: Liu Yu yu@freescale.com [stuart: update patch description] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v10: -add spaces as per comments -use PPC_LL/PPC_STL for long accesses arch/powerpc/include/asm/epapr_hcalls.h

[PATCH v10 2/5] KVM: PPC: use definitions in epapr header for hcalls

2012-03-15 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- arch/powerpc/include/asm/kvm_para.h | 19 +-- arch/powerpc/kernel/kvm.c |2 +- arch/powerpc/kvm/powerpc.c | 10 +- 3 files changed, 15

[PATCH 4/4] KVM: PPC: epapr: Update other hypercall invoking

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Discard the old way that invoke hypercall, instead, use epapr paravirt. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: kconfig fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v8: no changes arch/powerpc

[PATCH v8 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether host support EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: fixes for conditions allowing idle] Signed-off-by: Stuart Yoder stuart.yo

[PATCH v8 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com from the kvm guest paravirt init code. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: misc minor fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v8: no changes arch/powerpc/include/asm/epapr_hcalls.h |2

[PATCH 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com If the guest hypervisor node contains has-idle property. Signed-off-by: Liu Yu yu@freescale.com --- -v8: no changes arch/powerpc/include/asm/epapr_hcalls.h | 11 ++- arch/powerpc/kernel/epapr_hcalls.S | 27

[PATCH v8 0/4] KVM: PPC: Add ePAPR idle hcall support

2012-03-07 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com -v8 -updates hcall instruction for e500mc Liu Yu-B13201 (4): KVM: PPC: epapr: Factor out the epapr init KVM: PPC: epapr: Add idle hcall support for host KVM: PPC: epapr: install ev_idle hcall for e500 guest KVM: PPC: epapr: Update other

[PATCH v9 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com from the kvm guest paravirt init code. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: misc minor fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v9: no changes arch/powerpc/include/asm/epapr_hcalls.h |2

[PATCH v9 4/4] KVM: PPC: epapr: Update other hypercall invoking

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Discard the old way that invoke hypercall, instead, use epapr paravirt. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: kconfig fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v9: no changes arch/powerpc/include

[PATCH v9 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether host support EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: fixes for conditions allowing idle] Signed-off-by: Stuart Yoder stuart.yo

[PATCH v9 0/4] KVM: PPC: Add ePAPR idle hcall support

2012-03-07 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com -v9 -pad hcall instruction array with nops Liu Yu-B13201 (4): KVM: PPC: epapr: Factor out the epapr init KVM: PPC: epapr: Add idle hcall support for host KVM: PPC: epapr: install ev_idle hcall for e500 guest KVM: PPC: epapr: Update other

[PATCH v9 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com If the guest hypervisor node contains has-idle property. Signed-off-by: Liu Yu yu@freescale.com --- v9: no changes arch/powerpc/include/asm/epapr_hcalls.h | 11 ++- arch/powerpc/kernel/epapr_hcalls.S | 27 +++

[PATCH 4/4] KVM: PPC: epapr: Update other hypercall invoking

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Discard the old way that invoke hypercall, instead, use epapr paravirt. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: kconfig fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v8: no changes arch/powerpc

[PATCH v8 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether host support EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: fixes for conditions allowing idle] Signed-off-by: Stuart Yoder stuart.yo

[PATCH v8 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com from the kvm guest paravirt init code. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: misc minor fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v8: no changes arch/powerpc/include/asm/epapr_hcalls.h |2

[PATCH 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com If the guest hypervisor node contains has-idle property. Signed-off-by: Liu Yu yu@freescale.com --- -v8: no changes arch/powerpc/include/asm/epapr_hcalls.h | 11 ++- arch/powerpc/kernel/epapr_hcalls.S | 27

[PATCH v9 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com from the kvm guest paravirt init code. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: misc minor fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -v9: no changes arch/powerpc/include/asm/epapr_hcalls.h |2

[PATCH v9 4/4] KVM: PPC: epapr: Update other hypercall invoking

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com Discard the old way that invoke hypercall, instead, use epapr paravirt. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: kconfig fixes] Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- v9: no changes arch/powerpc/include

[PATCH v9 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com And add a new flag definition in kvm_ppc_pvinfo to indicate whether host support EV_IDLE hcall. Signed-off-by: Liu Yu yu@freescale.com [stuart.yo...@freescale.com: fixes for conditions allowing idle] Signed-off-by: Stuart Yoder stuart.yo

[PATCH v9 0/4] KVM: PPC: Add ePAPR idle hcall support

2012-03-07 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com -v9 -pad hcall instruction array with nops Liu Yu-B13201 (4): KVM: PPC: epapr: Factor out the epapr init KVM: PPC: epapr: Add idle hcall support for host KVM: PPC: epapr: install ev_idle hcall for e500 guest KVM: PPC: epapr: Update other

[PATCH v9 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-03-07 Thread Stuart Yoder
From: Liu Yu-B13201 yu@freescale.com If the guest hypervisor node contains has-idle property. Signed-off-by: Liu Yu yu@freescale.com --- v9: no changes arch/powerpc/include/asm/epapr_hcalls.h | 11 ++- arch/powerpc/kernel/epapr_hcalls.S | 27 +++

[PATCH 0/4 v7] KVM: PPC: Add ePAPR idle hcall support

2012-03-06 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com -version 7 of this patchset -version 7 changes KVM: PPC: epapr: Factor out the epapr init -used ENODEV return code in epapr_paravirt_init -improved error checkign logic as per review comments -fixed spelling errors KVM: PPC

  1   2   >