Re: [PATCH 04/11] KVM: PPC: Book3S HV: Add GET/SET_ONE_REG interface for LPCR

2013-09-14 Thread Paul Mackerras
On Sat, Sep 14, 2013 at 12:12:43AM -0500, Alexander Graf wrote: Am 13.09.2013 um 21:21 schrieb Paul Mackerras pau...@samba.org: In hardware there is in fact an LPCR per hardware CPU thread, though the architecture says that on threaded processors many of the fields have to be the same

Re: [PATCH v4] KVM: nVMX: Fully support of nested VMX preemption timer

2013-09-14 Thread Jan Kiszka
On 2013-09-13 19:15, Paolo Bonzini wrote: Il 06/09/2013 04:04, Arthur Chunqi Li ha scritto: +preempt_val_l1 = delta_tsc_l1 preempt_scale; +if (preempt_val_l2 = preempt_val_l1) +preempt_val_l2 = 0; +else +preempt_val_l2 -= preempt_val_l1; +

Re: [PATCH 04/11] KVM: PPC: Book3S HV: Add GET/SET_ONE_REG interface for LPCR

2013-09-14 Thread Alexander Graf
Am 14.09.2013 um 00:58 schrieb Paul Mackerras pau...@samba.org: On Sat, Sep 14, 2013 at 12:12:43AM -0500, Alexander Graf wrote: Am 13.09.2013 um 21:21 schrieb Paul Mackerras pau...@samba.org: In hardware there is in fact an LPCR per hardware CPU thread, though the architecture says

[PATCH 3/3] aarch64: kvm: introduce CONFIG_KVM_MAX_VCPUS

2013-09-14 Thread Andrew Jones
Take CONFIG_KVM_MAX_VCPUS from arm32, but set the default to 8. Signed-off-by: Andrew Jones drjo...@redhat.com --- arch/arm64/include/asm/kvm_host.h | 7 ++- arch/arm64/kvm/Kconfig| 11 +++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git

[PATCH 1/3] arm: kvm: clamp NR_VCPUS to MAX_VCPUS

2013-09-14 Thread Andrew Jones
Signed-off-by: Andrew Jones drjo...@redhat.com --- arch/arm/kvm/arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 741f66a2edbd7..9ebf8ac3a12ff 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -201,7 +201,7 @@ int

[PATCH 2/3] arm32: kvm: rename CONFIG_KVM_ARM_MAX_VCPUS

2013-09-14 Thread Andrew Jones
Drop the _ARM_ part of the name. We can then introduce a config option like this to aarch64 and other arches using the same name - allowing grep to show them all. Also update the help text to describe the option more completely. Signed-off-by: Andrew Jones drjo...@redhat.com ---

[PATCH 0/3] KVM_MAX_VCPUS related changes

2013-09-14 Thread Andrew Jones
Andrew Jones (3): arm: kvm: clamp NR_VCPUS to MAX_VCPUS arm32: kvm: rename CONFIG_KVM_ARM_MAX_VCPUS aarch64: kvm: introduce CONFIG_KVM_MAX_VCPUS arch/arm/include/asm/kvm_host.h | 4 ++-- arch/arm/kvm/Kconfig | 8 arch/arm/kvm/arm.c| 2 +-

Re: [PATCH 1/3] arm: kvm: clamp NR_VCPUS to MAX_VCPUS

2013-09-14 Thread Alexander Graf
Am 14.09.2013 um 07:10 schrieb Andrew Jones drjo...@redhat.com: Signed-off-by: Andrew Jones drjo...@redhat.com --- arch/arm/kvm/arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 741f66a2edbd7..9ebf8ac3a12ff 100644 ---

[PATCH] [RFC] x86: kvm: remove KVM_SOFT_MAX_VCPUS

2013-09-14 Thread Andrew Jones
This patch removes KVM_SOFT_MAX_VCPUS and uses num_online_cpus() for KVM_CAP_NR_VCPUS instead, as ARM does. While the API doc simply says KVM_CAP_NR_VCPUS should return the recommended maximum number of vcpus, it has been returning KVM_SOFT_MAX_VCPUS, which was defined as the maximum tested number

[PATCH] x86: kvm: introduce CONFIG_KVM_MAX_VCPUS

2013-09-14 Thread Andrew Jones
Take CONFIG_KVM_MAX_VCPUS from arm32, but set the default to 255. Signed-off-by: Andrew Jones drjo...@redhat.com --- arch/x86/include/asm/kvm_host.h | 5 +++-- arch/x86/kvm/Kconfig| 10 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 1/3] arm: kvm: clamp NR_VCPUS to MAX_VCPUS

2013-09-14 Thread Marc Zyngier
On 2013-09-14 13:14, Alexander Graf wrote: Am 14.09.2013 um 07:10 schrieb Andrew Jones drjo...@redhat.com: Signed-off-by: Andrew Jones drjo...@redhat.com --- arch/arm/kvm/arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index

Re: [PATCH 1/3] arm: kvm: clamp NR_VCPUS to MAX_VCPUS

2013-09-14 Thread Andrew Jones
On Sat, Sep 14, 2013 at 07:14:02AM -0500, Alexander Graf wrote: Am 14.09.2013 um 07:10 schrieb Andrew Jones drjo...@redhat.com: Signed-off-by: Andrew Jones drjo...@redhat.com --- arch/arm/kvm/arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[no subject]

2013-09-14 Thread Soumendu Satapathy (sosatapa)
Can anyone please let me know links providing \ info about ongoing/future kvm feature \ development?is the todo list in the main page upto date? -- 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

Re: [PATCH 19/23] KVM: PPC: Book3S: Select PR vs HV separately for each guest

2013-09-14 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt b...@kernel.crashing.org writes: On Fri, 2013-09-13 at 10:17 +1000, Paul Mackerras wrote: Aneesh and I are currently investigating an alternative approach, which is much more like the x86 way of doing things. We are looking at splitting the code into three modules: a

Re: [PATCH 19/23] KVM: PPC: Book3S: Select PR vs HV separately for each guest

2013-09-14 Thread Alexander Graf
Am 14.09.2013 um 13:33 schrieb Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com: Benjamin Herrenschmidt b...@kernel.crashing.org writes: On Fri, 2013-09-13 at 10:17 +1000, Paul Mackerras wrote: Aneesh and I are currently investigating an alternative approach, which is much more like

Re: [PATCH 20/23] KVM: PPC: Book3S PR: Better handling of host-side read-only pages

2013-09-14 Thread Alexander Graf
Am 14.09.2013 um 00:24 schrieb Paul Mackerras pau...@samba.org: On Thu, Sep 12, 2013 at 06:01:37PM -0500, Alexander Graf wrote: On 05.08.2013, at 23:27, Paul Mackerras wrote: Currently we request write access to all pages that get mapped into the guest, even if the guest is only loading

Re: [PATCH 04/11] KVM: PPC: Book3S HV: Add GET/SET_ONE_REG interface for LPCR

2013-09-14 Thread Alexander Graf
Am 14.09.2013 um 00:58 schrieb Paul Mackerras pau...@samba.org: On Sat, Sep 14, 2013 at 12:12:43AM -0500, Alexander Graf wrote: Am 13.09.2013 um 21:21 schrieb Paul Mackerras pau...@samba.org: In hardware there is in fact an LPCR per hardware CPU thread, though the architecture says

Re: [PATCH 19/23] KVM: PPC: Book3S: Select PR vs HV separately for each guest

2013-09-14 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt b...@kernel.crashing.org writes: On Fri, 2013-09-13 at 10:17 +1000, Paul Mackerras wrote: Aneesh and I are currently investigating an alternative approach, which is much more like the x86 way of doing things. We are looking at splitting the code into three modules: a

Re: [PATCH 19/23] KVM: PPC: Book3S: Select PR vs HV separately for each guest

2013-09-14 Thread Alexander Graf
Am 14.09.2013 um 13:33 schrieb Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com: Benjamin Herrenschmidt b...@kernel.crashing.org writes: On Fri, 2013-09-13 at 10:17 +1000, Paul Mackerras wrote: Aneesh and I are currently investigating an alternative approach, which is much more like

Re: [PATCH 20/23] KVM: PPC: Book3S PR: Better handling of host-side read-only pages

2013-09-14 Thread Alexander Graf
Am 14.09.2013 um 00:24 schrieb Paul Mackerras pau...@samba.org: On Thu, Sep 12, 2013 at 06:01:37PM -0500, Alexander Graf wrote: On 05.08.2013, at 23:27, Paul Mackerras wrote: Currently we request write access to all pages that get mapped into the guest, even if the guest is only loading