Re: [PATCH 5/7] kvm tools: Add help and info messages to 'kvm setup'

2011-10-14 Thread Ingo Molnar
* Asias He asias.he...@gmail.com wrote: On 10/14/2011 02:22 AM, Pekka Enberg wrote: On Thu, Oct 13, 2011 at 7:52 PM, Ingo Molnar mi...@elte.hu wrote: Btw., will 'kvm run' select the last-created rootfs by default? No, it runs rootfs that's named 'default'. We can change that but I'm

Re: [PATCH 5/7] kvm tools: Add help and info messages to 'kvm setup'

2011-10-14 Thread Pekka Enberg
On Fri, Oct 14, 2011 at 9:08 AM, Ingo Molnar mi...@elte.hu wrote: The canonical extension of that would be to create .kvmtool/ in $CWD and to union-mount the files in the current directory on top of the .kvmtool 'binary environment' - or such. Union mount is off the table for now because

[PATCH 1/1 V4] qemu-kvm: fix improper nmi emulation

2011-10-14 Thread Lai Jiangshan
On 10/14/2011 01:53 PM, Jan Kiszka wrote: On 2011-10-14 02:53, Lai Jiangshan wrote: As explained in some other mail, we could then emulate the missing kernel feature by reading out the current in-kernel APIC state, testing if LINT1 is unmasked, and then delivering the NMI directly. Only

Re: [PATCH 1/1 V4] qemu-kvm: fix improper nmi emulation

2011-10-14 Thread Jan Kiszka
On 2011-10-14 08:36, Lai Jiangshan wrote: On 10/14/2011 01:53 PM, Jan Kiszka wrote: On 2011-10-14 02:53, Lai Jiangshan wrote: As explained in some other mail, we could then emulate the missing kernel feature by reading out the current in-kernel APIC state, testing if LINT1 is unmasked, and

Re: [PATCH 5/7] kvm tools: Add help and info messages to 'kvm setup'

2011-10-14 Thread Ingo Molnar
* Pekka Enberg penb...@cs.helsinki.fi wrote: On Fri, Oct 14, 2011 at 9:08 AM, Ingo Molnar mi...@elte.hu wrote: The canonical extension of that would be to create .kvmtool/ in $CWD and to union-mount the files in the current directory on top of the .kvmtool 'binary environment' - or such.

[PATCH] kvm tools: Enable fast string operations

2011-10-14 Thread Sasha Levin
Recent kernels check for MSR_IA32_MISC_ENABLE_FAST_STRING in the MSR_IA32_MISC_ENABLE MSR before enabling reps/movs memcpy. So far we didn't set it, and got a slower memcpy and a warning: [0.00] Disabled fast string operations This patch enables fast string operations.

Re: [PATCH 1/1 V4] qemu-kvm: fix improper nmi emulation

2011-10-14 Thread Lai Jiangshan
On 10/14/2011 02:49 PM, Jan Kiszka wrote: On 2011-10-14 08:36, Lai Jiangshan wrote: On 10/14/2011 01:53 PM, Jan Kiszka wrote: On 2011-10-14 02:53, Lai Jiangshan wrote: As explained in some other mail, we could then emulate the missing kernel feature by reading out the current in-kernel APIC

Re: [PATCH 1/1 V4] qemu-kvm: fix improper nmi emulation

2011-10-14 Thread Jan Kiszka
On 2011-10-14 09:43, Lai Jiangshan wrote: On 10/14/2011 02:49 PM, Jan Kiszka wrote: On 2011-10-14 08:36, Lai Jiangshan wrote: On 10/14/2011 01:53 PM, Jan Kiszka wrote: On 2011-10-14 02:53, Lai Jiangshan wrote: As explained in some other mail, we could then emulate the missing kernel

[PATCH 1/1 V5] kernel/kvm: introduce KVM_SET_LINT1 and fix improper nmi emulation

2011-10-14 Thread Lai Jiangshan
Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even when LINT1 is masked in LVT. For example, this causes the problem that

[PATCH 1/2 V5] qemu-kvm: Synchronize kernel headers

2011-10-14 Thread Lai Jiangshan
Synchronize newest kernel headers which have KVM_CAP_SET_LINT1 and KVM_SET_LINT1 by ./scripts/update-linux-headers.sh Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- linux-headers/asm-powerpc/kvm.h | 19 +-- linux-headers/asm-x86/kvm.h |1 +

[PATCH 2/2 V5] qemu-kvm: fix improper nmi emulation

2011-10-14 Thread Lai Jiangshan
Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even when LINT1 is masked in LVT. For example, this causes the problem that

[RFC/PATCH] kvm: Handle diagnose 0x10 (release pages)

2011-10-14 Thread Christian Borntraeger
Avi, Marcelo, below is a patch for the System z (s390x) ballooner (as defined by the other System z hypervisors). I want to push that patch via Martins tree, since the tricky part is in architecture specific memory management code. Can you ack/nack? Linux on System z uses a ballooner based on

Re: [PATCH 1/1 V5] kernel/kvm: introduce KVM_SET_LINT1 and fix improper nmi emulation

2011-10-14 Thread Jan Kiszka
On 2011-10-14 11:03, Lai Jiangshan wrote: Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even when LINT1 is masked in

Re: virtio localdisk performance

2011-10-14 Thread Stefan Hajnoczi
On Thu, Oct 13, 2011 at 05:03:53PM +0200, benoit ROUSSELLE wrote: On Thu, Oct 13, 2011 at 4:27 PM, Stefan Hajnoczi stefa...@gmail.com wrote: dd performs buffered I/O by default.  That means it just writes to the page cache and the kernel decides when to write out dirty pages. So your host

Re: [Qemu-devel] [PATCH 1/1 V5] kernel/kvm: introduce KVM_SET_LINT1 and fix improper nmi emulation

2011-10-14 Thread Lai Jiangshan
On 10/14/2011 05:07 PM, Jan Kiszka wrote: On 2011-10-14 11:03, Lai Jiangshan wrote: Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to

Re: [PATCH 2/2 V5] qemu-kvm: fix improper nmi emulation

2011-10-14 Thread Jan Kiszka
On 2011-10-14 11:03, Lai Jiangshan wrote: Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even when LINT1 is masked in

Re: [Qemu-devel] [PATCH 1/1 V5] kernel/kvm: introduce KVM_SET_LINT1 and fix improper nmi emulation

2011-10-14 Thread Jan Kiszka
On 2011-10-14 11:27, Lai Jiangshan wrote: On 10/14/2011 05:07 PM, Jan Kiszka wrote: On 2011-10-14 11:03, Lai Jiangshan wrote: Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers

[PATCH 1/1 V5 tuning] kernel/kvm: introduce KVM_SET_LINT1 and fix improper nmi emulation

2011-10-14 Thread Lai Jiangshan
Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even when LINT1 is masked in LVT. For example, this causes the problem that

[PATCH 1/2 V5 tuning] qemu-kvm: Synchronize kernel headers

2011-10-14 Thread Lai Jiangshan
Synchronize newest kernel headers which have KVM_CAP_SET_LINT1 and KVM_SET_LINT1 by ./scripts/update-linux-headers.sh Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- linux-headers/asm-powerpc/kvm.h | 19 +-- linux-headers/asm-x86/kvm_para.h | 14

Re: [Qemu-devel] [PATCH 1/1 V5 tuning] kernel/kvm: introduce KVM_SET_LINT1 and fix improper nmi emulation

2011-10-14 Thread Sasha Levin
On Fri, 2011-10-14 at 17:51 +0800, Lai Jiangshan wrote: Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even when LINT1

Re: [Qemu-devel] [PATCH 1/1 V5 tuning] kernel/kvm: introduce KVM_SET_LINT1 and fix improper nmi emulation

2011-10-14 Thread Jan Kiszka
On 2011-10-14 13:59, Sasha Levin wrote: On Fri, 2011-10-14 at 17:51 +0800, Lai Jiangshan wrote: Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is

Re: virtio localdisk performance

2011-10-14 Thread benoit ROUSSELLE
On Fri, Oct 14, 2011 at 9:33 AM, Stefan Hajnoczi stefa...@gmail.com wrote: The next step is trying QEMU's -drive aio=native, which uses Linux AIO instead of a custom userspace threadpool for doing I/O.  It is usually faster.  The libvirt domain XML is: disk ...    driver name='qemu'

Re: [PATCH v3 1/6] iommu/core: split mapping to page sizes as supported by the hardware

2011-10-14 Thread Roedel, Joerg
On Tue, Oct 11, 2011 at 01:01:23PM -0400, Ohad Ben-Cohen wrote: On Tue, Oct 11, 2011 at 12:38 PM, Roedel, Joerg joerg.roe...@amd.com wrote: You need to make sure that you don;t pass larger regions then requested to the low-level driver. Some logic like in the iommu_map function should do

Re: [PATCH RFC V5 00/11] Paravirtualized ticketlocks

2011-10-14 Thread Jason Baron
On Thu, Oct 13, 2011 at 09:44:48AM -0700, Jeremy Fitzhardinge wrote: On 10/13/2011 03:54 AM, Peter Zijlstra wrote: On Wed, 2011-10-12 at 17:51 -0700, Jeremy Fitzhardinge wrote: This is is all unnecessary complication if you're not using PV ticket locks, it also uses the jump-label machinery

Re: [PATCH 0/3] PCI: Rework config space locking, add INTx masking services

2011-10-14 Thread Jan Kiszka
On 2011-10-06 17:48, Jesse Barnes wrote: On Mon, 12 Sep 2011 18:54:01 +0200 Jan Kiszka jan.kis...@siemens.com wrote: This series tries to heal the currently broken locking scheme around PCI config space accesses. We have an interface lock out access via sysfs, but that service wrongly

Re: [PATCH 0/3] PCI: Rework config space locking, add INTx masking services

2011-10-14 Thread Brian King
On 10/06/2011 10:48 AM, Jesse Barnes wrote: On Mon, 12 Sep 2011 18:54:01 +0200 Jan Kiszka jan.kis...@siemens.com wrote: This series tries to heal the currently broken locking scheme around PCI config space accesses. We have an interface lock out access via sysfs, but that service wrongly

Re: [PATCH RFC V5 00/11] Paravirtualized ticketlocks

2011-10-14 Thread Jeremy Fitzhardinge
On 10/14/2011 07:17 AM, Jason Baron wrote: On Thu, Oct 13, 2011 at 09:44:48AM -0700, Jeremy Fitzhardinge wrote: pvops is basically a collection of ordinary _ops structures full of function pointers, but it has a layer of patching to help optimise it. In the common case, this just replaces an

Re: [PATCH v3 1/6] iommu/core: split mapping to page sizes as supported by the hardware

2011-10-14 Thread Ohad Ben-Cohen
On Fri, Oct 14, 2011 at 3:35 PM, Roedel, Joerg joerg.roe...@amd.com wrote: This patch looks good. Please include it in the page-size patch-set. will do. Hmm, I'd like to constify the iommu_ops structures in the future. This wouldn't work then anymore. How about renaming it to io_page_size

Re: [PATCH v3 1/6] iommu/core: split mapping to page sizes as supported by the hardware

2011-10-14 Thread Ohad Ben-Cohen
On Fri, Oct 14, 2011 at 7:03 PM, Ohad Ben-Cohen o...@wizery.com wrote: Btw, how have you tested this code? Of course. Every patch I send is always tested on... *oops I thought you asked Btw, have you tested this code?. I missed the how part :) -- To unsubscribe from this list: send the line

Re: [PATCH RFC V5 00/11] Paravirtualized ticketlocks

2011-10-14 Thread Jason Baron
On Fri, Oct 14, 2011 at 10:02:35AM -0700, Jeremy Fitzhardinge wrote: On 10/14/2011 07:17 AM, Jason Baron wrote: On Thu, Oct 13, 2011 at 09:44:48AM -0700, Jeremy Fitzhardinge wrote: pvops is basically a collection of ordinary _ops structures full of function pointers, but it has a layer of

Re: [PATCH RFC V5 00/11] Paravirtualized ticketlocks

2011-10-14 Thread H. Peter Anvin
On 10/14/2011 10:02 AM, Jeremy Fitzhardinge wrote: Jump labels are essentially binary: you can use path A or path B. pvops are multiway: there's no limit to the number of potential number of paravirtualized hypervisor implementations. At the moment we have 4: native, Xen, KVM and lguest.

Re: [PATCH RFC V5 00/11] Paravirtualized ticketlocks

2011-10-14 Thread H. Peter Anvin
On 10/14/2011 11:35 AM, Jason Baron wrote: A nice featuer of jump labels, is that it allows the various branches (currently we only support 2), to be written in c code (as opposed to asm), which means you can write your code as you normally would and access any parameters as you normally

Re: [PATCH RFC V5 00/11] Paravirtualized ticketlocks

2011-10-14 Thread Jeremy Fitzhardinge
On 10/14/2011 11:38 AM, H. Peter Anvin wrote: On 10/14/2011 11:35 AM, Jason Baron wrote: A nice featuer of jump labels, is that it allows the various branches (currently we only support 2), to be written in c code (as opposed to asm), which means you can write your code as you normally would

Re: [PATCH RFC V5 00/11] Paravirtualized ticketlocks

2011-10-14 Thread Jeremy Fitzhardinge
On 10/14/2011 11:35 AM, Jason Baron wrote: On Fri, Oct 14, 2011 at 10:02:35AM -0700, Jeremy Fitzhardinge wrote: On 10/14/2011 07:17 AM, Jason Baron wrote: On Thu, Oct 13, 2011 at 09:44:48AM -0700, Jeremy Fitzhardinge wrote: pvops is basically a collection of ordinary _ops structures full of

Re: [PATCH RFC V5 00/11] Paravirtualized ticketlocks

2011-10-14 Thread Jeremy Fitzhardinge
On 10/14/2011 11:37 AM, H. Peter Anvin wrote: On 10/14/2011 10:02 AM, Jeremy Fitzhardinge wrote: Jump labels are essentially binary: you can use path A or path B. pvops are multiway: there's no limit to the number of potential number of paravirtualized hypervisor implementations. At the

Re: [PATCH RFC V5 00/11] Paravirtualized ticketlocks

2011-10-14 Thread H. Peter Anvin
On 10/14/2011 12:10 PM, Jeremy Fitzhardinge wrote: We probably don't want all those implementations (near) inline, so they would end up being plain function calls anyway. I would not object if the native one was closer, though; especially in term of source text (the current level of

[PATCH] KVM test: Split base.cfg and create guest-hw.cfg

2011-10-14 Thread Lucas Meneghel Rodrigues
In order to preseve the original behavior of the KVM test variants, split base.cfg once again and create guest-hw.cfg, that contains (mostly) hardware related variants (and some others that don't quite fit into a new config file). This patch was sent as pull request