Re: [PATCH RFC V10 18/18] kvm hypervisor: Add directed yield in vcpu block path

2013-07-15 Thread Raghavendra K T
On 07/14/2013 07:48 PM, Gleb Natapov wrote: On Mon, Jun 24, 2013 at 06:14:15PM +0530, Raghavendra K T wrote: kvm hypervisor: Add directed yield in vcpu block path From: Raghavendra K T raghavendra...@linux.vnet.ibm.com We use the improved PLE handler logic in vcpu block patch for scheduling

[PATCH v3] KVM: nVMX: Set segment infomation of L1 when L2 exits

2013-07-15 Thread Arthur Chunqi Li
When L2 exits to L1, segment infomations of L1 are not set correctly. According to Intel SDM 27.5.2(Loading Host Segment and Descriptor Table Registers), segment base/limit/access right of L1 should be set to some designed value when L2 exits to L1. This patch fixes this. Signed-off-by: Arthur

Re: [PATCH v3] KVM: nVMX: Set segment infomation of L1 when L2 exits

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 02:34:01PM +0800, Arthur Chunqi Li wrote: When L2 exits to L1, segment infomations of L1 are not set correctly. According to Intel SDM 27.5.2(Loading Host Segment and Descriptor Table Registers), segment base/limit/access right of L1 should be set to some designed value

[PATCH v4] KVM: nVMX: Set segment infomation of L1 when L2 exits

2013-07-15 Thread Arthur Chunqi Li
When L2 exits to L1, segment infomations of L1 are not set correctly. According to Intel SDM 27.5.2(Loading Host Segment and Descriptor Table Registers), segment base/limit/access right of L1 should be set to some designed value when L2 exits to L1. This patch fixes this. Signed-off-by: Arthur

Re: [PATCH v4] KVM: nVMX: Set segment infomation of L1 when L2 exits

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 03:21:54PM +0800, Arthur Chunqi Li wrote: When L2 exits to L1, segment infomations of L1 are not set correctly. According to Intel SDM 27.5.2(Loading Host Segment and Descriptor Table Registers), segment base/limit/access right of L1 should be set to some designed value

Re: [PATCH v4 2/2] KVM: s390: use cookies for ioeventfd

2013-07-15 Thread Cornelia Huck
On Sun, 14 Jul 2013 13:19:59 +0300 Gleb Natapov g...@redhat.com wrote: On Sun, Jul 14, 2013 at 12:25:16PM +0300, Gleb Natapov wrote: 1/2 broke x86. QEMU prints Invalid read from memory region kvm-pic and guest hangs. Looks like IO is forwarded to userspace instead of in kernel device

[PATCH v5] KVM: nVMX: Set segment infomation of L1 when L2 exits

2013-07-15 Thread Arthur Chunqi Li
When L2 exits to L1, segment infomations of L1 are not set correctly. According to Intel SDM 27.5.2(Loading Host Segment and Descriptor Table Registers), segment base/limit/access right of L1 should be set to some designed value when L2 exits to L1. This patch fixes this. Signed-off-by: Arthur

Re: windows 2008 falling asleep under KVM

2013-07-15 Thread Nikola Ciprich
Hello Gleb, please note, it's windows 2008, not windows8, not sure whether there's some significant difference, though.. Disable device powersave: - Control Panel - Network Internet - Network Connections - Right-click on desired interface, and select Properties - Click the Configure button

Re: [PATCH RFC V10 15/18] kvm : Paravirtual ticketlocks support for linux guests running on KVM hypervisor

2013-07-15 Thread Raghavendra K T
On 07/14/2013 06:42 PM, Gleb Natapov wrote: On Mon, Jun 24, 2013 at 06:13:42PM +0530, Raghavendra K T wrote: kvm : Paravirtual ticketlocks support for linux guests running on KVM hypervisor From: Srivatsa Vaddagiri va...@linux.vnet.ibm.com trimming [...] + +static void

Re: [PATCH RFC V10 15/18] kvm : Paravirtual ticketlocks support for linux guests running on KVM hypervisor

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 03:20:06PM +0530, Raghavendra K T wrote: On 07/14/2013 06:42 PM, Gleb Natapov wrote: On Mon, Jun 24, 2013 at 06:13:42PM +0530, Raghavendra K T wrote: kvm : Paravirtual ticketlocks support for linux guests running on KVM hypervisor From: Srivatsa Vaddagiri

Re: [PATCH v5] KVM: nVMX: Set segment infomation of L1 when L2 exits

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 04:04:08PM +0800, Arthur Chunqi Li wrote: When L2 exits to L1, segment infomations of L1 are not set correctly. According to Intel SDM 27.5.2(Loading Host Segment and Descriptor Table Registers), segment base/limit/access right of L1 should be set to some designed value

[PATCH 1/5] powerpc: define ePAPR hcall exit interface

2013-07-15 Thread Bharat Bhushan
This patch defines the ePAPR hcall exit interface to guest user space. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- Documentation/virtual/kvm/api.txt | 20 include/uapi/linux/kvm.h |7 +++ 2 files changed, 27 insertions(+), 0 deletions(-)

[PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Bharat Bhushan
KVM_HC_VM_RESET: Requests that the virtual machine be reset. KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be powered-off/halted. These hcalls are handled by guest userspace. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- Documentation/virtual/kvm/hypercalls.txt | 16

[PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bharat Bhushan
Exit to guest user space if kvm does not implement the hcall. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/kvm/booke.c | 47 +-- arch/powerpc/kvm/powerpc.c |1 + include/uapi/linux/kvm.h |1 + 3 files changed,

[PATCH 0/5] powerpc: implement reset/shutdown hcalls

2013-07-15 Thread Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com This patchset implements the hcall exit interface to userspace. Also we added reset and shutdown hcall Bharat Bhushan (5): powerpc: define ePAPR hcall exit interface booke: exit to guest userspace for unimplemented hcalls in kvm booke:

[PATCH 4/5] powerpc: Resolve KVM_HC_FEATURES compilation dependeny

2013-07-15 Thread Bharat Bhushan
arch/powerpc/include/asm/kvm_para.h have dependency on uapi/linux/kvm_para.h for KVM_HC_FEATURES Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/kvm_para.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Bharat Bhushan
Detect the availability of the reset hcalls by looking at kvm,has-reset property on the /hypervisor node in the device tree passed to the VM and patches the reset mechanism to use reset hcall. This patch uses the reser hcall when kvm,has-reset is there in Signed-off-by: Bharat Bhushan

Re: [PATCH 1/5] powerpc: define ePAPR hcall exit interface

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:11, Bharat Bhushan wrote: This patch defines the ePAPR hcall exit interface to guest user space. The subject line is misleading. This is a kvm patch. Same applies for most other patches. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com ---

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote: KVM_HC_VM_RESET: Requests that the virtual machine be reset. KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be powered-off/halted. These hcalls are handled by guest userspace. Signed-off-by: Bharat Bhushan

RE: [PATCH 1/5] powerpc: define ePAPR hcall exit interface

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 4:51 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan Bharat-R65777 Subject: Re: [PATCH 1/5] powerpc: define

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:11, Bharat Bhushan wrote: Exit to guest user space if kvm does not implement the hcall. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/kvm/booke.c | 47 +-- arch/powerpc/kvm/powerpc.c |1 +

RE: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:02 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan Bharat-R65777 Subject: Re: [PATCH 2/5] booke: exit to

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote: KVM_HC_VM_RESET: Requests that the virtual machine be reset. KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be powered-off/halted. These hcalls are handled by guest

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:38, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:02 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan

Re: [PATCH 4/5] powerpc: Resolve KVM_HC_FEATURES compilation dependeny

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:11, Bharat Bhushan wrote: arch/powerpc/include/asm/kvm_para.h have dependency on uapi/linux/kvm_para.h for KVM_HC_FEATURES Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/kvm_para.h |1 + 1 files changed, 1 insertions(+), 0

Re: windows 2008 falling asleep under KVM

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 10:56:41AM +0200, Nikola Ciprich wrote: Hello Gleb, please note, it's windows 2008, not windows8, not sure whether there's some significant difference, though.. Heh, indeed. I wonder where I get this windows8 thing from. Windows 2008 is a server OS so much less tuned

Re: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:11, Bharat Bhushan wrote: Detect the availability of the reset hcalls by looking at kvm,has-reset property on the /hypervisor node in the device tree passed to the VM and patches the reset mechanism to use reset hcall. This patch uses the reser hcall when kvm,has-reset

Re: windows 2008 falling asleep under KVM

2013-07-15 Thread Nikola Ciprich
Hi, It is sound and _hardware_ not sure why MS separated sound from HW :) OK, I'll check it Try it and see if it changes anything. When you say it becomes unreachable over network what does it mean? Network share disappears or you could ping it before but cannot any more? OK, I'll report the

Re: [PATCH v4 2/2] KVM: s390: use cookies for ioeventfd

2013-07-15 Thread Paolo Bonzini
Il 14/07/2013 12:19, Gleb Natapov ha scritto: On Sun, Jul 14, 2013 at 12:25:16PM +0300, Gleb Natapov wrote: On Thu, Jul 04, 2013 at 08:54:32AM +0200, Paolo Bonzini wrote: Il 03/07/2013 18:33, Cornelia Huck ha scritto: On Wed, 03 Jul 2013 17:30:40 +0200 Paolo Bonzini pbonz...@redhat.com wrote:

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote: On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote: KVM_HC_VM_RESET: Requests that the virtual machine be reset. KVM_HC_VM_SHUTDOWN: Requests that the virtual machine

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 14:15, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote: On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote: KVM_HC_VM_RESET: Requests that the virtual machine be reset.

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 02:21:51PM +0200, Alexander Graf wrote: On 15.07.2013, at 14:15, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote: On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote:

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 14:24, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 02:21:51PM +0200, Alexander Graf wrote: On 15.07.2013, at 14:15, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote: On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 02:26:38PM +0200, Alexander Graf wrote: On 15.07.2013, at 14:24, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 02:21:51PM +0200, Alexander Graf wrote: On 15.07.2013, at 14:15, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote:

RE: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:16 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject: Re: [PATCH 2/5] booke: exit to guest userspace for

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 16:50, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:16 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject:

RE: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:20 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan Bharat-R65777 Subject: Re: [PATCH 5/5] powerpc: using

Re: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 17:05, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:20 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan

RE: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:27 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject: Re: [PATCH 2/5] booke: exit to guest userspace for

RE: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:40 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject: Re: [PATCH 5/5] powerpc: using reset hcall when

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 17:13, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:27 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject:

Re: [PATCH RFC V10 16/18] kvm hypervisor : Simplify kvm_for_each_vcpu with kvm_irq_delivery_to_apic

2013-07-15 Thread Raghavendra K T
On 07/14/2013 06:54 PM, Gleb Natapov wrote: On Mon, Jun 24, 2013 at 06:13:53PM +0530, Raghavendra K T wrote: Simplify kvm_for_each_vcpu with kvm_irq_delivery_to_apic From: Raghavendra K T raghavendra...@linux.vnet.ibm.com Note that we are using APIC_DM_REMRD which has reserved usage. In

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 17:35, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:59 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject:

RE: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:59 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject: Re: [PATCH 2/5] booke: exit to guest userspace for

Re: [PATCH RFC V10 16/18] kvm hypervisor : Simplify kvm_for_each_vcpu with kvm_irq_delivery_to_apic

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 09:06:13PM +0530, Raghavendra K T wrote: On 07/14/2013 06:54 PM, Gleb Natapov wrote: On Mon, Jun 24, 2013 at 06:13:53PM +0530, Raghavendra K T wrote: Simplify kvm_for_each_vcpu with kvm_irq_delivery_to_apic From: Raghavendra K T raghavendra...@linux.vnet.ibm.com

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Scott Wood
On 07/15/2013 06:11:16 AM, Bharat Bhushan wrote: Exit to guest user space if kvm does not implement the hcall. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/kvm/booke.c | 47 +-- arch/powerpc/kvm/powerpc.c |1 +

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Scott Wood
On 07/15/2013 06:30:20 AM, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote: KVM_HC_VM_RESET: Requests that the virtual machine be reset. KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be powered-off/halted. These hcalls are handled by guest

Re: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Scott Wood
On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:40 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248

[PULL] vhost: cleanups and fixes

2013-07-15 Thread Michael S. Tsirkin
The following changes since commit 09a34c8404c1d4c5782de319c02e1d742c57875c: vhost/test: update test after vhost cleanups (2013-07-07 18:02:25 +0300) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes

Re: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 20:21, Scott Wood wrote: On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:40 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org;

Re: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Scott Wood
On 07/15/2013 03:28:46 PM, Alexander Graf wrote: On 15.07.2013, at 20:21, Scott Wood wrote: On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote: + printk(error: system reset returned with error %ld\n, ret); So we should fall back to the normal reset handler here. Do you

Re: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 22:52, Scott Wood wrote: On 07/15/2013 03:28:46 PM, Alexander Graf wrote: On 15.07.2013, at 20:21, Scott Wood wrote: On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote: + printk(error: system reset returned with error %ld\n, ret); So we should fall back to

[PATCH] vfio-pci: VGA quirk update

2013-07-15 Thread Alex Williamson
Turns out all the suspicions for AMD devices were correct, everywhere we read a BAR address that the address matches the config space offset, there's full access to PCI config space. Attempt to generalize some helpers to allow quirks to easily be added for mirrors and windows. Also fill in

Re: [Qemu-devel] [PATCH] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-07-15 Thread Alex Williamson
On Sun, 2013-07-14 at 01:48 -0600, Vijay Mohan Pandarathil wrote: Add support for error containment when a VFIO device assigned to a KVM guest encounters an error. This is for PCIe devices/drivers that support AER functionality. When the host OS is notified of an error in a device either

Slow TCP performance from Win2k8R2 guests under Linux KVM

2013-07-15 Thread Gordon Messmer
Would anyone be so kind as to test the performance of TCP streams on Windows 2k8R2 guests of KVM virt servers? Red Hat's virtio-win-1.6.3 package was published to address a problem described as low performance on Win2k8 guests. Actual performance was not recorded in the bug report. On my

Re: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Scott Wood
On 07/15/2013 03:55:08 PM, Alexander Graf wrote: On 15.07.2013, at 22:52, Scott Wood wrote: On 07/15/2013 03:28:46 PM, Alexander Graf wrote: On 15.07.2013, at 20:21, Scott Wood wrote: On 07/15/2013 10:16:41 AM, Bhushan Bharat-R65777 wrote: + printk(error: system reset returned with

Re: [PATCH 4/4] kvm: Emulate MOVBE

2013-07-15 Thread Borislav Petkov
Fix kvm ML already. On Tue, Jul 16, 2013 at 12:39:30AM +0200, Borislav Petkov wrote: On Sun, Jul 07, 2013 at 01:18:27PM +0300, Gleb Natapov wrote: KVM does not enables emulation because QEMU called KVM_GET_EMULATED_CPUID. KVM enables emulation because QEMU sets MOVBE bit in a guest visible

[PATCH 03/10] vfio: add external user support

2013-07-15 Thread Alexey Kardashevskiy
VFIO is designed to be used via ioctls on file descriptors returned by VFIO. However in some situations support for an external user is required. The first user is KVM on PPC64 (SPAPR TCE protocol) which is going to use the existing VFIO groups for exclusive access in real/virtual mode on a host

[PATCH 10/10] KVM: PPC: Add hugepage support for IOMMU in-kernel handling

2013-07-15 Thread Alexey Kardashevskiy
This adds special support for huge pages (16MB) in real mode. The reference counting cannot be easily done for such pages in real mode (when MMU is off) so we added a hash table of huge pages. It is populated in virtual mode and get_page is called just once per a huge page. Real mode handlers

[PATCH 09/10] KVM: PPC: Add support for IOMMU in-kernel handling

2013-07-15 Thread Alexey Kardashevskiy
This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT and H_STUFF_TCE requests targeted an IOMMU TCE table without passing them to user space which saves time on switching to user space and back. Both real and virtual modes are supported. The kernel tries to handle a TCE request in

[PATCH 08/10] powerpc/iommu: rework to support realmode

2013-07-15 Thread Alexey Kardashevskiy
The TCE tables handling may differ for real and virtual modes so additional ppc_md.tce_build_rm/ppc_md.tce_free_rm/ppc_md.tce_flush_rm handlers were introduced earlier. So this adds the following: 1. support for the new ppc_md calls; 2. ability to iommu_tce_build to process mupltiple entries per

[PATCH 02/10] KVM: PPC: reserve a capability and ioctl numbers for realmode VFIO

2013-07-15 Thread Alexey Kardashevskiy
This is to reserve a capablity number for upcoming support of VFIO-IOMMU DMA operations in real mode. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Changes: 2013/07/16: * changed the number 2013/07/11: * changed order in a file, added comment about a gap in ioctl number Signed-off-by:

[PATCH 04/10] powerpc: Prepare to support kernel handling of IOMMU map/unmap

2013-07-15 Thread Alexey Kardashevskiy
The current VFIO-on-POWER implementation supports only user mode driven mapping, i.e. QEMU is sending requests to map/unmap pages. However this approach is really slow, so we want to move that to KVM. Since H_PUT_TCE can be extremely performance sensitive (especially with network adapters where

[PATCH 00/10 v6] KVM: PPC: IOMMU in-kernel handling

2013-07-15 Thread Alexey Kardashevskiy
The changes are: 1. rebased on v3.11-rc1 so the capability numbers changed again 2. fixed multiple comments from maintainers 3. KVM: PPC: Add support for IOMMU in-kernel handling is split into 2 patches, the new one is powerpc/iommu: rework to support realmode. 4. IOMMU_API is now always enabled

[PATCH 07/10] KVM: PPC: Add support for multiple-TCE hcalls

2013-07-15 Thread Alexey Kardashevskiy
This adds real mode handlers for the H_PUT_TCE_INDIRECT and H_STUFF_TCE hypercalls for user space emulated devices such as IBMVIO devices or emulated PCI. These calls allow adding multiple entries (up to 512) into the TCE table in one call which saves time on transition to/from real mode. This

[PATCH 06/10] KVM: PPC: enable IOMMU_API for KVM_BOOK3S_64 permanently

2013-07-15 Thread Alexey Kardashevskiy
It does not make much sense to have KVM in book3s-64bit and not to have IOMMU bits for PCI pass through support as it costs little and allows VFIO to function on book3s-kvm. Having IOMMU_API enabled will make it unnecessary to have a lot of IOMMU_API enabled, those files only accelerate user

[PATCH 05/10] powerpc: add real mode support for dma operations on powernv

2013-07-15 Thread Alexey Kardashevskiy
The existing TCE machine calls (tce_build and tce_free) only support virtual mode as they call __raw_writeq for TCE invalidation what fails in real mode. This introduces tce_build_rm and tce_free_rm real mode versions which do mostly the same but use Store Doubleword Caching Inhibited Indexed

[PATCH 01/10] KVM: PPC: reserve a capability number for multitce support

2013-07-15 Thread Alexey Kardashevskiy
This is to reserve a capablity number for upcoming support of H_PUT_TCE_INDIRECT and H_STUFF_TCE pseries hypercalls which support mulptiple DMA map/unmap operations per one call. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Changes: 2013/07/16: * changed the number Signed-off-by:

Re: [v1][PATCH 1/1] KVM: PPC: disable preemption when using hard_irq_disable()

2013-07-15 Thread tiejun.chen
On 07/16/2013 01:27 AM, Scott Wood wrote: On 07/14/2013 09:20:00 PM, tiejun.chen wrote: On 07/13/2013 07:05 AM, Benjamin Herrenschmidt wrote: On Fri, 2013-07-12 at 12:50 -0500, Scott Wood wrote: [1] SOFT_DISABLE_INTS seems an odd name for something that updates the software state to be

[v1][PATCH 1/1] powerpc/ppc64: rename SOFT_DISABLE_INTS with RECONCILE_IRQ_STATE

2013-07-15 Thread Tiejun Chen
The SOFT_DISABLE_INTS seems an odd name for something that updates the software state to be consistent with interrupts being hard disabled, so rename SOFT_DISABLE_INTS with RECONCILE_IRQ_STATE to avoid this confusion. Signed-off-by: Tiejun Chen tiejun.c...@windriver.com --- Ben, Looks currently

Re: [PATCH RFC V10 15/18] kvm : Paravirtual ticketlocks support for linux guests running on KVM hypervisor

2013-07-15 Thread Raghavendra K T
On 07/15/2013 04:06 PM, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 03:20:06PM +0530, Raghavendra K T wrote: On 07/14/2013 06:42 PM, Gleb Natapov wrote: On Mon, Jun 24, 2013 at 06:13:42PM +0530, Raghavendra K T wrote: kvm : Paravirtual ticketlocks support for linux guests running on KVM

RE: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Monday, July 15, 2013 11:38 PM To: Bhushan Bharat-R65777 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org; ag...@suse.de; Yoder Stuart- B08248; Bhushan Bharat-R65777; Bhushan Bharat-R65777 Subject: Re: [PATCH 2/5] booke: exit to

Disabling mergeable rx buffers for the guest

2013-07-15 Thread Naor Shlomo
Hi, I am trying to disable the mergeable rx buffers for a Linux guest but I am currently unable to do so. I tried looking in the code of libvirt in order to find the -global virtio-net-pci.mrg_rxbuf=off but the only globals configured are: PIIX4_PM.disable_s*, isa-fdc.drive, isa-fdc.bootindex,

[PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bharat Bhushan
Exit to guest user space if kvm does not implement the hcall. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/kvm/booke.c | 47 +-- arch/powerpc/kvm/powerpc.c |1 + include/uapi/linux/kvm.h |1 + 3 files changed,

[PATCH 1/5] powerpc: define ePAPR hcall exit interface

2013-07-15 Thread Bharat Bhushan
This patch defines the ePAPR hcall exit interface to guest user space. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- Documentation/virtual/kvm/api.txt | 20 include/uapi/linux/kvm.h |7 +++ 2 files changed, 27 insertions(+), 0 deletions(-)

[PATCH 4/5] powerpc: Resolve KVM_HC_FEATURES compilation dependeny

2013-07-15 Thread Bharat Bhushan
arch/powerpc/include/asm/kvm_para.h have dependency on uapi/linux/kvm_para.h for KVM_HC_FEATURES Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/kvm_para.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH 0/5] powerpc: implement reset/shutdown hcalls

2013-07-15 Thread Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com This patchset implements the hcall exit interface to userspace. Also we added reset and shutdown hcall Bharat Bhushan (5): powerpc: define ePAPR hcall exit interface booke: exit to guest userspace for unimplemented hcalls in kvm booke:

[PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Bharat Bhushan
KVM_HC_VM_RESET: Requests that the virtual machine be reset. KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be powered-off/halted. These hcalls are handled by guest userspace. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- Documentation/virtual/kvm/hypercalls.txt | 16

[PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Bharat Bhushan
Detect the availability of the reset hcalls by looking at kvm,has-reset property on the /hypervisor node in the device tree passed to the VM and patches the reset mechanism to use reset hcall. This patch uses the reser hcall when kvm,has-reset is there in Signed-off-by: Bharat Bhushan

Re: [PATCH 1/5] powerpc: define ePAPR hcall exit interface

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:11, Bharat Bhushan wrote: This patch defines the ePAPR hcall exit interface to guest user space. The subject line is misleading. This is a kvm patch. Same applies for most other patches. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com ---

RE: [PATCH 1/5] powerpc: define ePAPR hcall exit interface

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 4:51 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan Bharat-R65777 Subject: Re: [PATCH 1/5] powerpc: define

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:11, Bharat Bhushan wrote: Exit to guest user space if kvm does not implement the hcall. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/kvm/booke.c | 47 +-- arch/powerpc/kvm/powerpc.c |1 +

RE: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:02 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan Bharat-R65777 Subject: Re: [PATCH 2/5] booke: exit to

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote: KVM_HC_VM_RESET: Requests that the virtual machine be reset. KVM_HC_VM_SHUTDOWN: Requests that the virtual machine be powered-off/halted. These hcalls are handled by guest

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:38, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:02 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan

Re: [PATCH 4/5] powerpc: Resolve KVM_HC_FEATURES compilation dependeny

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:11, Bharat Bhushan wrote: arch/powerpc/include/asm/kvm_para.h have dependency on uapi/linux/kvm_para.h for KVM_HC_FEATURES Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/kvm_para.h |1 + 1 files changed, 1 insertions(+), 0

Re: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 13:11, Bharat Bhushan wrote: Detect the availability of the reset hcalls by looking at kvm,has-reset property on the /hypervisor node in the device tree passed to the VM and patches the reset mechanism to use reset hcall. This patch uses the reser hcall when kvm,has-reset

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote: On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote: KVM_HC_VM_RESET: Requests that the virtual machine be reset. KVM_HC_VM_SHUTDOWN: Requests that the virtual machine

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 14:15, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote: On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote: KVM_HC_VM_RESET: Requests that the virtual machine be reset.

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 02:21:51PM +0200, Alexander Graf wrote: On 15.07.2013, at 14:15, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote: On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 04:41:17PM +0530, Bharat Bhushan wrote:

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 14:24, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 02:21:51PM +0200, Alexander Graf wrote: On 15.07.2013, at 14:15, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote: On 15.07.2013, at 13:30, Gleb Natapov wrote: On Mon, Jul 15, 2013

Re: [PATCH 3/5] booke: define reset and shutdown hcalls

2013-07-15 Thread Gleb Natapov
On Mon, Jul 15, 2013 at 02:26:38PM +0200, Alexander Graf wrote: On 15.07.2013, at 14:24, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 02:21:51PM +0200, Alexander Graf wrote: On 15.07.2013, at 14:15, Gleb Natapov wrote: On Mon, Jul 15, 2013 at 01:44:46PM +0200, Alexander Graf wrote:

RE: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:16 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject: Re: [PATCH 2/5] booke: exit to guest userspace for

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 16:50, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:16 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject:

RE: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:20 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan Bharat-R65777 Subject: Re: [PATCH 5/5] powerpc: using

Re: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 17:05, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 5:20 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248; Bhushan

RE: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:27 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject: Re: [PATCH 2/5] booke: exit to guest userspace for

RE: [PATCH 5/5] powerpc: using reset hcall when kvm,has-reset

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:40 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject: Re: [PATCH 5/5] powerpc: using reset hcall when

Re: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Alexander Graf
On 15.07.2013, at 17:13, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:27 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject:

RE: [PATCH 2/5] booke: exit to guest userspace for unimplemented hcalls in kvm

2013-07-15 Thread Bhushan Bharat-R65777
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Monday, July 15, 2013 8:59 PM To: Bhushan Bharat-R65777 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org; Wood Scott-B07421; Yoder Stuart-B08248 Subject: Re: [PATCH 2/5] booke: exit to guest userspace for

  1   2   >