[patch added to the 3.12 stable tree] MIPS: KVM: Remove redundant NULL checks before kfree()

2014-07-18 Thread Jiri Slaby
From: James Hogan james.ho...@imgtec.com This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit c6c0a6637f9da54f9472144d44f71cf847f92e20 upstream. The kfree() function already NULL checks the parameter so remove the redundant

Re: [PATCH] CMA: generalize CMA reserved area management functionality (fixup)

2014-07-18 Thread Marek Szyprowski
Hello, On 2014-07-18 00:06, Andrew Morton wrote: On Thu, 17 Jul 2014 11:36:07 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: MAX_CMA_AREAS is used by other subsystems (i.e. arch/arm/mm/dma-mapping.c), so we need to provide correct definition even if CMA is disabled. This patch fixes

Re: [PATCH v2 5/5] kvm, mem-hotplug: Do not pin apic access page in memory.

2014-07-18 Thread Tang Chen
Hi Gleb, On 07/17/2014 09:57 PM, Gleb Natapov wrote: On Thu, Jul 17, 2014 at 09:34:20PM +0800, Tang Chen wrote: Hi Gleb, On 07/15/2014 08:40 PM, Gleb Natapov wrote: .. And yes, we have the problem you said here. We can migrate the page while L2 vm is running. So I think we should

RE: [PATCH v5 4/5] KVM: PPC: Alow kvmppc_get_last_inst() to fail

2014-07-18 Thread mihai.cara...@freescale.com
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Thursday, July 17, 2014 5:21 PM To: Caraman Mihai Claudiu-B02008; kvm-...@vger.kernel.org Cc: kvm@vger.kernel.org; linuxppc-...@lists.ozlabs.org Subject: Re: [PATCH v5 4/5] KVM: PPC: Alow kvmppc_get_last_inst() to

RE: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering guest

2014-07-18 Thread bharat.bhus...@freescale.com
-Original Message- From: Wood Scott-B07421 Sent: Friday, July 18, 2014 6:19 AM To: Alexander Graf Cc: Bhushan Bharat-R65777; kvm-...@vger.kernel.org; kvm@vger.kernel.org; Yoder Stuart-B08248 Subject: Re: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering guest On Fri,

Re: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering guest

2014-07-18 Thread Alexander Graf
On 18.07.14 11:57, bharat.bhus...@freescale.com wrote: -Original Message- From: Wood Scott-B07421 Sent: Friday, July 18, 2014 6:19 AM To: Alexander Graf Cc: Bhushan Bharat-R65777; kvm-...@vger.kernel.org; kvm@vger.kernel.org; Yoder Stuart-B08248 Subject: Re: [PATCH] kvm: ppc: booke:

Re: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering guest

2014-07-18 Thread Alexander Graf
On 18.07.14 02:49, Scott Wood wrote: On Fri, 2014-07-18 at 02:37 +0200, Alexander Graf wrote: On 18.07.14 02:36, Scott Wood wrote: On Fri, 2014-07-18 at 02:33 +0200, Alexander Graf wrote: On 18.07.14 02:28, Scott Wood wrote: On Thu, 2014-07-17 at 18:29 +0200, Alexander Graf wrote: On

Re: [PATCH v2 5/5] kvm, mem-hotplug: Do not pin apic access page in memory.

2014-07-18 Thread Gleb Natapov
On Fri, Jul 18, 2014 at 05:05:20PM +0800, Tang Chen wrote: Hi Gleb, On 07/17/2014 09:57 PM, Gleb Natapov wrote: On Thu, Jul 17, 2014 at 09:34:20PM +0800, Tang Chen wrote: Hi Gleb, On 07/15/2014 08:40 PM, Gleb Natapov wrote: .. And yes, we have the problem you said here. We can

CPU Overcommitting question

2014-07-18 Thread Riccardo Brunetti
Dear KVM community people, we are running on a kvm hypervisor with the following configuration: CPU : Dual socket 6 cores: Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz RAM : 48 GB OS: CentOS release 6.5 2 very cpu intensive virtual machines and we are trying to find the best way to optimize the

RE: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering guest

2014-07-18 Thread bharat.bhus...@freescale.com
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, July 18, 2014 4:25 PM To: Bhushan Bharat-R65777; Wood Scott-B07421 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; Yoder Stuart-B08248 Subject: Re: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering

RE: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering guest

2014-07-18 Thread bharat.bhus...@freescale.com
On 18.07.14 11:57, bharat.bhus...@freescale.com wrote: -Original Message- From: Wood Scott-B07421 Sent: Friday, July 18, 2014 6:19 AM To: Alexander Graf Cc: Bhushan Bharat-R65777; kvm-...@vger.kernel.org; kvm@vger.kernel.org; Yoder Stuart-B08248 Subject: Re:

[PATCH 3.12 050/170] MIPS: KVM: Remove redundant NULL checks before kfree()

2014-07-18 Thread Jiri Slaby
From: James Hogan james.ho...@imgtec.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit c6c0a6637f9da54f9472144d44f71cf847f92e20 upstream. The kfree() function already NULL checks the parameter so remove the redundant NULL checks before

Re: [GIT PULL 0/5] KVM: s390: Let user space control the cpu states

2014-07-18 Thread Paolo Bonzini
Il 15/07/2014 15:27, Christian Borntraeger ha scritto: Paolo, The following changes since commit 9f6226a762c7ae02f6a23a3d4fc552dafa57ea23: arch: x86: kvm: x86.c: Cleaning up variable is set more than once (2014-06-30 16:52:04 +0200) are available in the git repository at:

[GIT PULL] KVM changes for 3.16-rc6

2014-07-18 Thread Paolo Bonzini
Linus, The following changes since commit cd3de83f147601356395b57a8673e9c5ff1e59d1: Linux 3.16-rc4 (2014-07-06 12:37:51 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to

Re: CPU Overcommitting question

2014-07-18 Thread Paolo Bonzini
Il 18/07/2014 15:06, Riccardo Brunetti ha scritto: 1) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) = total number of physical cores (12) (both VMs have 12 vCPUs) (ie. 8+4) 2) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) total number of physical cores (12) (both VMs have = 12 vCPUs) (ie.

Re: CPU Overcommitting question

2014-07-18 Thread riccardo . brunetti
Hi Paolo, thanks for the prompt reply. On 2014-07-18 17:30, Paolo Bonzini wrote: Il 18/07/2014 15:06, Riccardo Brunetti ha scritto: 1) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) = total number of physical cores (12) (both VMs have 12 vCPUs) (ie. 8+4) 2) Assign vCPUs so that vCPU(VM1) +

Re: CPU Overcommitting question

2014-07-18 Thread Paolo Bonzini
Il 18/07/2014 18:49, riccardo.brune...@dnshosting.it ha scritto: So, it should be ok to have the first two options, but also considering that with hyperthreading instead of 12 cores we can consider 24? Thus we can go with: 1) Assign vCPUs so that vCPU(VM1) + vCPU(VM2) = total number of cores

[PATCH] kvm-all: Use 'tmpcpu' instead of 'cpu' in sub-looping to avoid 'cpu' be NULL

2014-07-18 Thread Chen Gang
If kvm_arch_remove_sw_breakpoint() in CPU_FOREACH() always be fail, it will let 'cpu' NULL. And the next kvm_arch_remove_sw_breakpoint() in QTAILQ_FOREACH_SAFE() will get NULL parameter for 'cpu'. And kvm_arch_remove_sw_breakpoint() can assumes 'cpu' must never be NULL, so need define additional

Re: [PATCH] CMA: generalize CMA reserved area management functionality (fixup)

2014-07-18 Thread Marek Szyprowski
Hello, On 2014-07-18 00:06, Andrew Morton wrote: On Thu, 17 Jul 2014 11:36:07 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: MAX_CMA_AREAS is used by other subsystems (i.e. arch/arm/mm/dma-mapping.c), so we need to provide correct definition even if CMA is disabled. This patch fixes

Re: [PATCH v4 1/2] Split out struct kvmppc_vcore creation to separate function

2014-07-18 Thread Paul Mackerras
On Fri, Jul 18, 2014 at 02:18:42PM +1000, Stewart Smith wrote: No code changes, just split it out to a function so that with the addition of micro partition prefetch buffer allocation (in subsequent patch) looks neater and doesn't require excessive indentation. Signed-off-by: Stewart Smith

Re: [PATCH v4 2/2] Use the POWER8 Micro Partition Prefetch Engine in KVM HV on POWER8

2014-07-18 Thread Paul Mackerras
On Fri, Jul 18, 2014 at 02:18:43PM +1000, Stewart Smith wrote: The POWER8 processor has a Micro Partition Prefetch Engine, which is a fancy way of saying has way to store and load contents of L2 or L2+MRU way of L3 cache. We initiate the storing of the log (list of addresses) using the logmpp

RE: [PATCH v5 4/5] KVM: PPC: Alow kvmppc_get_last_inst() to fail

2014-07-18 Thread mihai.cara...@freescale.com
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Thursday, July 17, 2014 5:21 PM To: Caraman Mihai Claudiu-B02008; kvm-ppc@vger.kernel.org Cc: k...@vger.kernel.org; linuxppc-...@lists.ozlabs.org Subject: Re: [PATCH v5 4/5] KVM: PPC: Alow kvmppc_get_last_inst() to

Re: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering guest

2014-07-18 Thread Alexander Graf
On 18.07.14 02:49, Scott Wood wrote: On Fri, 2014-07-18 at 02:37 +0200, Alexander Graf wrote: On 18.07.14 02:36, Scott Wood wrote: On Fri, 2014-07-18 at 02:33 +0200, Alexander Graf wrote: On 18.07.14 02:28, Scott Wood wrote: On Thu, 2014-07-17 at 18:29 +0200, Alexander Graf wrote: On

RE: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering guest

2014-07-18 Thread bharat.bhus...@freescale.com
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, July 18, 2014 4:25 PM To: Bhushan Bharat-R65777; Wood Scott-B07421 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Yoder Stuart-B08248 Subject: Re: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering

RE: [PATCH] kvm: ppc: booke: Restore SPRG3 when entering guest

2014-07-18 Thread bharat.bhus...@freescale.com
On 18.07.14 11:57, bharat.bhus...@freescale.com wrote: -Original Message- From: Wood Scott-B07421 Sent: Friday, July 18, 2014 6:19 AM To: Alexander Graf Cc: Bhushan Bharat-R65777; kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Yoder Stuart-B08248 Subject: Re: