Re: [PATCH 0/3] Unmapped page cache control (v5)

2011-03-31 Thread Dave Chinner
On Fri, Apr 01, 2011 at 08:38:11AM +0530, Balbir Singh wrote: > * Dave Chinner [2011-04-01 08:40:33]: > > > On Wed, Mar 30, 2011 at 11:00:26AM +0530, Balbir Singh wrote: > > > > > > The following series implements page cache control, > > > this is a split out version of patch 1 of version 3 of t

Re: [PATCH 0/3] Unmapped page cache control (v5)

2011-03-31 Thread Balbir Singh
* Dave Chinner [2011-04-01 08:40:33]: > On Wed, Mar 30, 2011 at 11:00:26AM +0530, Balbir Singh wrote: > > > > The following series implements page cache control, > > this is a split out version of patch 1 of version 3 of the > > page cache optimization patches posted earlier at > > Previous post

Re: [PATCH 0/3] Unmapped page cache control (v5)

2011-03-31 Thread KOSAKI Motohiro
> On Wed, Mar 30, 2011 at 11:00:26AM +0530, Balbir Singh wrote: > > > > The following series implements page cache control, > > this is a split out version of patch 1 of version 3 of the > > page cache optimization patches posted earlier at > > Previous posting http://lwn.net/Articles/425851/ and

Re: [PATCH 0/3] Unmapped page cache control (v5)

2011-03-31 Thread Dave Chinner
On Wed, Mar 30, 2011 at 11:00:26AM +0530, Balbir Singh wrote: > > The following series implements page cache control, > this is a split out version of patch 1 of version 3 of the > page cache optimization patches posted earlier at > Previous posting http://lwn.net/Articles/425851/ and analysis > a

Guest virtual CPUs limited to only 50% of host CPU

2011-03-31 Thread Drew Johnson
Hi, I am using Qemu-KVM-0.12.5 on Intel Xeon (Vt-x enabled) processors and monitoring the system using htop on the host. On the processors that are running Qemu-KVM I am seeing a 50/50 split between userspace and guest ("gu:" in htop). I have pinned the vCPU qemu-kvm threads to specific host CPUs

Re: [PATCH 0/3] Unmapped page cache control (v5)

2011-03-31 Thread Christoph Lameter
On Thu, 31 Mar 2011, KOSAKI Motohiro wrote: > 1) zone reclaim doesn't work if the system has multiple node and the >workload is file cache oriented (eg file server, web server, mail server, > et al). >because zone recliam make some much free pages than zone->pages_min and >then new pa

[ANNOUNCE] Native Linux KVM tool

2011-03-31 Thread Pekka Enberg
Hi all, We’re proud to announce the native Linux KVM tool! The goal of this tool is to provide a clean, from-scratch, lightweight KVM host tool implementation that can boot Linux guest images (just a hobby, won't be big and professional like QEMU) with no BIOS dependencies and with only the minim

Re: KVM, iSCSI and High Availability

2011-03-31 Thread Guido Winkelmann
Am Thursday 31 March 2011 schrieben Sie: > That's what CLVM is for, it propagates the volume changes to every member > of the 'cluster'. Oh, right. I didn't know about clvm until now. It sounds very promising though, certainly better than working with the proprietary API of whoever your SAN-vend

Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit

2011-03-31 Thread Justin P. Mattock
On 03/31/2011 02:20 AM, Avi Kivity wrote: On 03/30/2011 07:42 PM, Justin P. Mattock wrote: On 03/30/2011 10:17 AM, Avi Kivity wrote: On 03/30/2011 06:30 PM, Justin P. Mattock wrote: On 03/30/2011 09:26 AM, Avi Kivity wrote: On 03/30/2011 06:19 PM, Justin P. Mattock wrote: The below patch cha

Re: KVM, iSCSI and High Availability

2011-03-31 Thread David Martin
That's what CLVM is for, it propagates the volume changes to every member of the 'cluster'. David Martin - Original Message - > Am Monday 28 March 2011 schrieb David Martin: > > - Original Message - > > > > > On 3/28/11 2:46 PM, Avi Kivity wrote: > > > > On 03/25/2011 10:26 PM, M

[PATCH 2/2 v3] kvm/x86: move and fix substitue search for missing CPUID entries

2011-03-31 Thread Andre Przywara
If KVM cannot find an exact match for a requested CPUID leaf, the code will try to find the closest match instead of simply confessing it's failure. The implementation was meant to satisfy the CPUID specification, but did not properly check for extended and standard leaves and also didn't account f

Re: [PATCH 2/2] kvm/x86: move and fix substitue search for missing CPUID entries

2011-03-31 Thread Andre Przywara
Avi Kivity wrote: On 03/31/2011 03:13 PM, Andre Przywara wrote: If KVM cannot find an exact match for a requested CPUID leaf, the code will try to find the closest match instead of simply confessing it's failure. The implementation was meant to satisfy the CPUID specification, but did not proper

Re: KVM, iSCSI and High Availability

2011-03-31 Thread Guido Winkelmann
Am Monday 28 March 2011 schrieb David Martin: > - Original Message - > > > On 3/28/11 2:46 PM, Avi Kivity wrote: > > > On 03/25/2011 10:26 PM, Marcin M. Jessa wrote: > > [...] > > > > > One LUN per image allows you to implement failover, LVM doesn't (but > > > cluster-LVM does). I recomme

Re: [PATCH 2/2] kvm/x86: move and fix substitue search for missing CPUID entries

2011-03-31 Thread Avi Kivity
On 03/31/2011 03:13 PM, Andre Przywara wrote: If KVM cannot find an exact match for a requested CPUID leaf, the code will try to find the closest match instead of simply confessing it's failure. The implementation was meant to satisfy the CPUID specification, but did not properly check for extend

[PATCH 2/2] kvm/x86: move and fix substitue search for missing CPUID entries

2011-03-31 Thread Andre Przywara
If KVM cannot find an exact match for a requested CPUID leaf, the code will try to find the closest match instead of simply confessing it's failure. The implementation was meant to satisfy the CPUID specification, but did not properly check for extended and standard leaves and also didn't account f

Re: [PATCH 2/2] kvm/x86: remove unneeded substitute search for missing CPUID entries

2011-03-31 Thread Avi Kivity
On 03/31/2011 12:12 PM, Andre Przywara wrote: Avi Kivity wrote: On 03/30/2011 03:01 PM, Andre Przywara wrote: If KVM cannot find an exact match for a requested CPUID leaf, the code will try to find the closest match instead of simply confessing it's failure. The heuristic is on one hand wrong n

Re: [PATCH 12/13] KVM: SVM: Add checks for IO instructions

2011-03-31 Thread Roedel, Joerg
On Thu, Mar 31, 2011 at 06:03:37AM -0400, Avi Kivity wrote: > On 03/31/2011 11:42 AM, Roedel, Joerg wrote: > > On Thu, Mar 31, 2011 at 05:18:28AM -0400, Avi Kivity wrote: > > > On 03/31/2011 09:14 AM, Roedel, Joerg wrote: > > > > On Mon, Mar 28, 2011 at 08:28:12AM -0400, Avi Kivity wrote: > > >

Re: [PATCH 2/2] kvm/x86: remove unneeded substitute search for missing CPUID entries

2011-03-31 Thread Andre Przywara
Avi Kivity wrote: On 03/30/2011 03:01 PM, Andre Przywara wrote: If KVM cannot find an exact match for a requested CPUID leaf, the code will try to find the closest match instead of simply confessing it's failure. The heuristic is on one hand wrong nowadays, since it does not take the KVM CPUID l

[PATCHv2] KVM: emulator: do not needlesly sync registers from emulator ctxt to vcpu

2011-03-31 Thread Gleb Natapov
Currently we sync registers back and forth before/after exiting to userspace for IO, but during IO device model shouldn't need to read/write the registers, so we can as well skip those sync points. The only exaception is broken vmware backdor interface. The new code sync registers content during IO

Re: [PATCH 12/13] KVM: SVM: Add checks for IO instructions

2011-03-31 Thread Avi Kivity
On 03/31/2011 11:42 AM, Roedel, Joerg wrote: On Thu, Mar 31, 2011 at 05:18:28AM -0400, Avi Kivity wrote: > On 03/31/2011 09:14 AM, Roedel, Joerg wrote: > > On Mon, Mar 28, 2011 at 08:28:12AM -0400, Avi Kivity wrote: > > > The spec indicates we need to check the TSS and IOPL based permissio

Re: KVM: x86: better fix for race between nmi injection and enabling nmi window

2011-03-31 Thread Gleb Natapov
On Thu, Mar 31, 2011 at 11:25:46AM +0200, Avi Kivity wrote: > On 03/31/2011 11:24 AM, Gleb Natapov wrote: > >On Thu, Mar 31, 2011 at 11:23:28AM +0200, Avi Kivity wrote: > >> On 03/30/2011 08:47 PM, Gleb Natapov wrote: > >> >On Wed, Mar 30, 2011 at 07:16:34PM +0200, Avi Kivity wrote: > >> >> On

Re: [PATCH 12/13] KVM: SVM: Add checks for IO instructions

2011-03-31 Thread Roedel, Joerg
On Thu, Mar 31, 2011 at 05:18:28AM -0400, Avi Kivity wrote: > On 03/31/2011 09:14 AM, Roedel, Joerg wrote: > > On Mon, Mar 28, 2011 at 08:28:12AM -0400, Avi Kivity wrote: > > > The spec indicates we need to check the TSS and IOPL based permissions > > > before the intercept (vmx agrees). With th

Re: KVM: x86: better fix for race between nmi injection and enabling nmi window

2011-03-31 Thread Marcelo Tosatti
On Wed, Mar 30, 2011 at 08:47:03PM +0200, Gleb Natapov wrote: > On Wed, Mar 30, 2011 at 07:16:34PM +0200, Avi Kivity wrote: > > On 03/30/2011 06:30 PM, Marcelo Tosatti wrote: > > >Based on Gleb's idea, fix race between nmi injection and enabling > > >nmi window in a simpler way. > > > > > >Signed-o

Re: KVM: x86: better fix for race between nmi injection and enabling nmi window

2011-03-31 Thread Marcelo Tosatti
On Thu, Mar 31, 2011 at 11:25:46AM +0200, Avi Kivity wrote: > >> >> >else if (kvm_cpu_has_interrupt(vcpu) || > >> req_int_win) > >> >> >kvm_x86_ops->enable_irq_window(vcpu); > >> >> > > >> >> > >> >> What about the check in inject_pendi

Re: KVM: x86: better fix for race between nmi injection and enabling nmi window

2011-03-31 Thread Avi Kivity
On 03/31/2011 11:24 AM, Gleb Natapov wrote: On Thu, Mar 31, 2011 at 11:23:28AM +0200, Avi Kivity wrote: > On 03/30/2011 08:47 PM, Gleb Natapov wrote: > >On Wed, Mar 30, 2011 at 07:16:34PM +0200, Avi Kivity wrote: > >> On 03/30/2011 06:30 PM, Marcelo Tosatti wrote: > >> >Based on Gleb's id

Re: KVM: x86: better fix for race between nmi injection and enabling nmi window

2011-03-31 Thread Gleb Natapov
On Thu, Mar 31, 2011 at 11:23:28AM +0200, Avi Kivity wrote: > On 03/30/2011 08:47 PM, Gleb Natapov wrote: > >On Wed, Mar 30, 2011 at 07:16:34PM +0200, Avi Kivity wrote: > >> On 03/30/2011 06:30 PM, Marcelo Tosatti wrote: > >> >Based on Gleb's idea, fix race between nmi injection and enabling > >>

Re: KVM: x86: better fix for race between nmi injection and enabling nmi window

2011-03-31 Thread Avi Kivity
On 03/30/2011 08:47 PM, Gleb Natapov wrote: On Wed, Mar 30, 2011 at 07:16:34PM +0200, Avi Kivity wrote: > On 03/30/2011 06:30 PM, Marcelo Tosatti wrote: > >Based on Gleb's idea, fix race between nmi injection and enabling > >nmi window in a simpler way. > > > >Signed-off-by: Marcelo Tosatti

Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit

2011-03-31 Thread Avi Kivity
On 03/30/2011 07:42 PM, Justin P. Mattock wrote: On 03/30/2011 10:17 AM, Avi Kivity wrote: On 03/30/2011 06:30 PM, Justin P. Mattock wrote: On 03/30/2011 09:26 AM, Avi Kivity wrote: On 03/30/2011 06:19 PM, Justin P. Mattock wrote: The below patch changes base_addresss to base_address. Note: I

Re: [PATCH 12/13] KVM: SVM: Add checks for IO instructions

2011-03-31 Thread Avi Kivity
On 03/31/2011 09:14 AM, Roedel, Joerg wrote: On Mon, Mar 28, 2011 at 08:28:12AM -0400, Avi Kivity wrote: > The spec indicates we need to check the TSS and IOPL based permissions > before the intercept (vmx agrees). With the code as is, it happens > afterwards. > > One way to do this is to ha

Re: [PATCH 0/3] Unmapped page cache control (v5)

2011-03-31 Thread Balbir Singh
* KOSAKI Motohiro [2011-03-31 14:40:33]: > > > > The following series implements page cache control, > > this is a split out version of patch 1 of version 3 of the > > page cache optimization patches posted earlier at > > Previous posting http://lwn.net/Articles/425851/ and analysis > > at http:

Re: [PATCH 12/13] KVM: SVM: Add checks for IO instructions

2011-03-31 Thread Roedel, Joerg
On Mon, Mar 28, 2011 at 08:28:12AM -0400, Avi Kivity wrote: > The spec indicates we need to check the TSS and IOPL based permissions > before the intercept (vmx agrees). With the code as is, it happens > afterwards. > > One way to do this is to have an ExtraChecks bit in the opcode::flags. >