Re: [PATCH 07/18] kvm: Add MCE signal support for !CONFIG_IOTHREAD

2011-01-26 Thread Jan Kiszka
On 2011-01-24 13:36, Jan Kiszka wrote: On 2011-01-24 12:17, Marcelo Tosatti wrote: On Mon, Jan 10, 2011 at 09:32:00AM +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com Currently, we only configure and process MCE-related SIGBUS events if CONFIG_IOTHREAD is enabled. Fix this by

Re: [Qemu-devel] Re: Errors on MMIO read access on VM suspend / resume operations

2011-01-26 Thread Jan Kiszka
On 2011-01-25 17:49, Stefan Berger wrote: On 01/25/2011 02:26 AM, Jan Kiszka wrote: Do you see a chance to look closer at the issue yourself? E.g. instrument the kernel's irqchip models and dump their states once your guest is stuck? The device runs on iRQ 3. So I applied this patch here.

Re: [RFC PATCH 0/2] Expose available KVM free memory slot count to help avoid aborts

2011-01-26 Thread Jan Kiszka
On 2011-01-25 20:13, Alex Williamson wrote: On Tue, 2011-01-25 at 17:35 +0100, Jan Kiszka wrote: On 2011-01-25 15:53, Avi Kivity wrote: On 01/25/2011 04:41 PM, Alex Williamson wrote: kvm: Allow memory slot array to grow on demand Remove fixed KVM_MEMORY_SLOTS limit, allowing

Re: Graphics pass-through

2011-01-26 Thread Gerd Hoffmann
Hi, The changes we made are very less, mostly disabling default QEMU VGA. But there are few problems that we are still working on 1. The display on the monitor, probably only appears after the KMS is enabled. It does not display the grub menu and booting log. Sounds like you're not

Re: [PATCH 3/3] KVM: Add documents for MSI-X MMIO API

2011-01-26 Thread Sheng Yang
On Tuesday 25 January 2011 20:47:38 Avi Kivity wrote: On 01/19/2011 10:21 AM, Sheng Yang wrote: We already got an guest MMIO address for that in the exit information. I've created a chain of handler in qemu to handle it. But we already decoded the table and entry... But

Re: [RFC PATCH 0/2] Expose available KVM free memory slot count to help avoid aborts

2011-01-26 Thread Avi Kivity
On 01/25/2011 07:58 PM, Michael S. Tsirkin wrote: On Tue, Jan 25, 2011 at 07:33:40PM +0200, Avi Kivity wrote: On 01/25/2011 04:59 PM, Michael S. Tsirkin wrote: On Tue, Jan 25, 2011 at 04:53:44PM +0200, Avi Kivity wrote: For the other lookups, which we believe will succeed, we can

Re: [RFC PATCH 0/2] Expose available KVM free memory slot count to help avoid aborts

2011-01-26 Thread Michael S. Tsirkin
On Wed, Jan 26, 2011 at 11:17:11AM +0200, Avi Kivity wrote: On 01/25/2011 07:58 PM, Michael S. Tsirkin wrote: On Tue, Jan 25, 2011 at 07:33:40PM +0200, Avi Kivity wrote: On 01/25/2011 04:59 PM, Michael S. Tsirkin wrote: On Tue, Jan 25, 2011 at 04:53:44PM +0200, Avi Kivity wrote: For

Re: [RFC PATCH 0/2] Expose available KVM free memory slot count to help avoid aborts

2011-01-26 Thread Avi Kivity
On 01/25/2011 07:43 PM, Alex Williamson wrote: On Tue, 2011-01-25 at 19:11 +0200, Avi Kivity wrote: On 01/25/2011 04:57 PM, Alex Williamson wrote: On Tue, 2011-01-25 at 12:23 +0200, Avi Kivity wrote: On 01/25/2011 07:37 AM, Alex Williamson wrote: On Mon, 2011-01-24 at

Re: [RFC PATCH 0/2] Expose available KVM free memory slot count to help avoid aborts

2011-01-26 Thread Avi Kivity
On 01/26/2011 11:20 AM, Michael S. Tsirkin wrote: On Wed, Jan 26, 2011 at 11:17:11AM +0200, Avi Kivity wrote: On 01/25/2011 07:58 PM, Michael S. Tsirkin wrote: On Tue, Jan 25, 2011 at 07:33:40PM +0200, Avi Kivity wrote: On 01/25/2011 04:59 PM, Michael S. Tsirkin wrote: On Tue, Jan

Re: [RFC PATCH 0/2] Expose available KVM free memory slot count to help avoid aborts

2011-01-26 Thread Avi Kivity
On 01/25/2011 08:00 PM, Michael S. Tsirkin wrote: I see now. Yes, a flag in spte would help. changes in slots would then have to update all these flags. That's easy, we drop all sptes. Ah, right. Hmm cpu has no flag to distinguish mmio sptes somehow already? No.

Re: [RFC PATCH 0/2] Expose available KVM free memory slot count to help avoid aborts

2011-01-26 Thread Michael S. Tsirkin
On Wed, Jan 26, 2011 at 11:23:21AM +0200, Avi Kivity wrote: On 01/26/2011 11:20 AM, Michael S. Tsirkin wrote: On Wed, Jan 26, 2011 at 11:17:11AM +0200, Avi Kivity wrote: On 01/25/2011 07:58 PM, Michael S. Tsirkin wrote: On Tue, Jan 25, 2011 at 07:33:40PM +0200, Avi Kivity wrote: On

[PATCH 12/19] Insert event_tap_mmio() to cpu_physical_memory_rw() in exec.c.

2011-01-26 Thread Yoshiaki Tamura
Record mmio write event to replay it upon failover. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- exec.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index e950df2..c81fd09 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@

[PATCH 13/19] net: insert event-tap to qemu_send_packet() and qemu_sendv_packet_async().

2011-01-26 Thread Yoshiaki Tamura
event-tap function is called only when it is on. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- net.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index 9ba5be2..1176124 100644 --- a/net.c +++ b/net.c @@ -36,6 +36,7 @@ #include

[PATCH 00/19] Kemari for KVM v0.2.7

2011-01-26 Thread Yoshiaki Tamura
Hi, This patch series is a revised version of Kemari for KVM, which applied comments for the previous post. The current code is based on qemu.git 0bfe006c5380c5f8a485a55ded3329fbbc224396. The changes from v0.2.6 - v0.2.7 are: - add AIOCB, AIOPool and cancel functions (Kevin) - insert event-tap

[PATCH 08/19] savevm: introduce util functions to control ft_trans_file from savevm layer.

2011-01-26 Thread Yoshiaki Tamura
To utilize ft_trans_file function, savevm needs interfaces to be exported. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- hw/hw.h |5 ++ savevm.c | 149 ++ 2 files changed, 154 insertions(+), 0 deletions(-) diff

[PATCH 19/19] migration: add a parser to accept FT migration incoming mode.

2011-01-26 Thread Yoshiaki Tamura
The option looks like, -incoming protocol:address:port,ft_mode Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- migration.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/migration.c b/migration.c index 1752cf4..29d4fb1 100644 --- a/migration.c +++

[PATCH 11/19] ioport: insert event_tap_ioport() to ioport_write().

2011-01-26 Thread Yoshiaki Tamura
Record ioport event to replay it upon failover. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- ioport.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ioport.c b/ioport.c index aa4188a..74aebf5 100644 --- a/ioport.c +++ b/ioport.c @@ -27,6 +27,7 @@

[PATCH 10/19] Call init handler of event-tap at main() in vl.c.

2011-01-26 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- vl.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 8bbb785..9faeb27 100644 --- a/vl.c +++ b/vl.c @@ -162,6 +162,7 @@ int main(int argc, char **argv) #include qemu-queue.h #include

[PATCH 14/19] block: insert event-tap to bdrv_aio_writev() and bdrv_aio_flush().

2011-01-26 Thread Yoshiaki Tamura
event-tap function is called only when it is on, and requests sent from device emulators. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- block.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index ff2795b..e4df9b6

[PATCH 02/19] Introduce read() to FdMigrationState.

2011-01-26 Thread Yoshiaki Tamura
Currently FdMigrationState doesn't support read(), and this patch introduces it to get response from the other side. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- migration-tcp.c | 15 +++ migration.c | 13 + migration.h |3 +++ 3 files

[PATCH 15/19] savevm: introduce qemu_savevm_trans_{begin,commit}.

2011-01-26 Thread Yoshiaki Tamura
Introduce qemu_savevm_state_{begin,commit} to send the memory and device info together, while avoiding cancelling memory state tracking. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- savevm.c | 93 ++ sysemu.h |

[PATCH 17/19] migration-tcp: modify tcp_accept_incoming_migration() to handle ft_mode, and add a hack not to close fd when ft_mode is enabled.

2011-01-26 Thread Yoshiaki Tamura
When ft_mode is set in the header, tcp_accept_incoming_migration() sets ft_trans_incoming() as a callback, and call qemu_file_get_notify() to receive FT transaction iteratively. We also need a hack no to close fd before moving to ft_transaction mode, so that we can reuse the fd for it.

[PATCH 09/19] Introduce event-tap.

2011-01-26 Thread Yoshiaki Tamura
event-tap controls when to start FT transaction, and provides proxy functions to called from net/block devices. While FT transaction, it queues up net/block requests, and flush them when the transaction gets completed. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Signed-off-by:

[PATCH 16/19] migration: introduce migrate_ft_trans_{put,get}_ready(), and modify migrate_fd_put_ready() when ft_mode is on.

2011-01-26 Thread Yoshiaki Tamura
Introduce migrate_ft_trans_put_ready() which kicks the FT transaction cycle. When ft_mode is on, migrate_fd_put_ready() would open ft_trans_file and turn on event_tap. To end or cancel FT transaction, ft_mode and event_tap is turned off. migrate_ft_trans_get_ready() is called to receive ack

[PATCH 03/19] Introduce skip_header parameter to qemu_loadvm_state().

2011-01-26 Thread Yoshiaki Tamura
Introduce skip_header parameter to qemu_loadvm_state() so that it can be called iteratively without reading the header. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- migration.c |2 +- savevm.c| 24 +--- sysemu.h|2 +- 3 files changed, 15

[PATCH 01/19] Make QEMUFile buf expandable, and introduce qemu_realloc_buffer() and qemu_clear_buffer().

2011-01-26 Thread Yoshiaki Tamura
Currently buf size is fixed at 32KB. It would be useful if it could be flexible. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- hw/hw.h |2 ++ savevm.c | 20 +++- 2 files changed, 21 insertions(+), 1 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index

[PATCH 06/19] virtio: decrement last_avail_idx with inuse before saving.

2011-01-26 Thread Yoshiaki Tamura
For regular migration inuse == 0 always as requests are flushed before save. However, event-tap log when enabled introduces an extra queue for requests which is not being flushed, thus the last inuse requests are left in the event-tap queue. Move the last_avail_idx value sent to the remote back

[PATCH 05/19] vl.c: add deleted flag for deleting the handler.

2011-01-26 Thread Yoshiaki Tamura
Make deleting handlers robust against deletion of any elements in a handler by using a deleted flag like in file descriptors. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- vl.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c

[PATCH 04/19] qemu-char: export socket_set_nodelay().

2011-01-26 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- qemu-char.c |2 +- qemu_socket.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index edc9ad6..737d347 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2116,7 +2116,7 @@ static

[PATCH 07/19] Introduce fault tolerant VM transaction QEMUFile and ft_mode.

2011-01-26 Thread Yoshiaki Tamura
This code implements VM transaction protocol. Like buffered_file, it sits between savevm and migration layer. With this architecture, VM transaction protocol is implemented mostly independent from other existing code. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Signed-off-by:

Re: EPT: Misconfiguration

2011-01-26 Thread Avi Kivity
On 01/25/2011 08:29 PM, Ruben Kerkhof wrote: When you say suddenly, this was with no changes to software and hardware? The host software and hardware hasn't changed in the two months since the machine has been running. 2.6.34.7 kernel and qemu-kvm 0.13. We host customer vms on it though, so

Re: [RFC PATCH 0/2] Expose available KVM free memory slot count to help avoid aborts

2011-01-26 Thread Avi Kivity
On 01/26/2011 11:39 AM, Michael S. Tsirkin wrote: On Wed, Jan 26, 2011 at 11:23:21AM +0200, Avi Kivity wrote: On 01/26/2011 11:20 AM, Michael S. Tsirkin wrote: On Wed, Jan 26, 2011 at 11:17:11AM +0200, Avi Kivity wrote: On 01/25/2011 07:58 PM, Michael S. Tsirkin wrote: On Tue, Jan

Re: [PATCH 16/16] KVM-GST: adjust scheduler cpu power

2011-01-26 Thread Peter Zijlstra
On Tue, 2011-01-25 at 19:27 -0200, Glauber Costa wrote: On Tue, 2011-01-25 at 22:07 +0100, Peter Zijlstra wrote: On Tue, 2011-01-25 at 18:47 -0200, Glauber Costa wrote: On Tue, 2011-01-25 at 21:13 +0100, Peter Zijlstra wrote: On Tue, 2011-01-25 at 18:02 -0200, Glauber Costa wrote:

Re: KVM call agenda for Jan 25

2011-01-26 Thread Avi Kivity
On 01/25/2011 04:35 PM, Stefan Hajnoczi wrote: On Tue, Jan 25, 2011 at 2:26 PM, Avi Kivitya...@redhat.com wrote: On 01/25/2011 12:06 AM, Anthony Liguori wrote: On 01/24/2011 07:25 AM, Chris Wright wrote: Please send in any agenda items you are interested in covering. - coroutines for

compilation problem

2011-01-26 Thread antoni artigues
Hello I have RHEL4 with kernel 2.6.9 I'm trying to compile kvm-kmod-2.6.30 After make command returns: - [root@maeko kvm-kmod-2.6.30]# make make -C /lib/modules/2.6.9-67.ELsmp/build M=`pwd` \ LINUXINCLUDE=-I`pwd`/include -Iinclude \ \

Re: [PATCH 01/16] KVM-HDR: register KVM basic header infrastructure

2011-01-26 Thread Avi Kivity
On 01/24/2011 08:06 PM, Glauber Costa wrote: KVM, which stands for KVM Virtual Memory (I wanted to call it KVM Virtual Mojito), is a piece of shared memory that is visible to both the hypervisor and the guest kernel - but not the guest userspace. The basic idea is that the guest can tell the

Re: [PATCH 03/16] KVM-HDR: KVM Userspace registering ioctl

2011-01-26 Thread Avi Kivity
On 01/24/2011 08:06 PM, Glauber Costa wrote: KVM, which stands for KVM Virtual Memory (I wanted to call it KVM Virtual Mojito), is a piece of shared memory that is visible to both the hypervisor and the guest kernel - but not the guest userspace. The basic idea is that the guest can tell the

Re: [PATCH 05/16] KVM-HDR: Implement wallclock over KVM - KVM Virtual Memory

2011-01-26 Thread Avi Kivity
On 01/24/2011 08:06 PM, Glauber Costa wrote: As a proof of concept to KVM - Kernel Virtual Memory, this patch implements wallclock grabbing on top of it. At first, it may seem as a waste of work to just redo it, since it is working well. But over the time, other MSRs were added - think ASYNC_PF

Re: compilation problem

2011-01-26 Thread Avi Kivity
On 01/26/2011 12:48 PM, antoni artigues wrote: Hello I have RHEL4 with kernel 2.6.9 I'm trying to compile kvm-kmod-2.6.30 2.6.9 is way too old for kvm-kmod. Any particular reason why you want kvm over such an old host? -- error compiling committee.c: too many arguments to function -- To

Re: ms_sysenter_eip zero value

2011-01-26 Thread Avi Kivity
On 01/23/2011 01:25 PM, Matteo Signorini wrote: Hi, I'm having some problems understanding the sysenter instruction. As far as I know, in order to successfully call the sysenter instruction, MSR_IA32_SYSENTER_CS and MSR_IA32_SYSENTER_EIP registers have to be correctly set. So I printed the

Re: compilation problem

2011-01-26 Thread antoni artigues
Hello Well, we have a 32 nodes cluster. With RHEL4 and 2.6.9 kernel in all the nodes. The cluster is in production. Now, is not possible to update each of the 32 nodes. We want to use opennebula with KVM in the cluster. So, we are trying to compile the kvm-kmod. Is not possible? Do we need to

Re: [PATCH 07/18] kvm: Add MCE signal support for !CONFIG_IOTHREAD

2011-01-26 Thread Marcelo Tosatti
On Wed, Jan 26, 2011 at 09:09:25AM +0100, Jan Kiszka wrote: On 2011-01-24 13:36, Jan Kiszka wrote: On 2011-01-24 12:17, Marcelo Tosatti wrote: On Mon, Jan 10, 2011 at 09:32:00AM +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com Currently, we only configure and process

Re: [Qemu-devel] Re: Errors on MMIO read access on VM suspend / resume operations

2011-01-26 Thread Stefan Berger
On 01/26/2011 03:14 AM, Jan Kiszka wrote: On 2011-01-25 17:49, Stefan Berger wrote: On 01/25/2011 02:26 AM, Jan Kiszka wrote: Do you see a chance to look closer at the issue yourself? E.g. instrument the kernel's irqchip models and dump their states once your guest is stuck? The device runs

Re: [PATCH 07/18] kvm: Add MCE signal support for !CONFIG_IOTHREAD

2011-01-26 Thread Jan Kiszka
On 2011-01-26 13:01, Marcelo Tosatti wrote: On Wed, Jan 26, 2011 at 09:09:25AM +0100, Jan Kiszka wrote: On 2011-01-24 13:36, Jan Kiszka wrote: On 2011-01-24 12:17, Marcelo Tosatti wrote: On Mon, Jan 10, 2011 at 09:32:00AM +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com

Re: [RFC PATCH 0/2] Expose available KVM free memory slot count to help avoid aborts

2011-01-26 Thread Michael S. Tsirkin
On Wed, Jan 26, 2011 at 11:54:21AM +0200, Avi Kivity wrote: On 01/26/2011 11:39 AM, Michael S. Tsirkin wrote: On Wed, Jan 26, 2011 at 11:23:21AM +0200, Avi Kivity wrote: On 01/26/2011 11:20 AM, Michael S. Tsirkin wrote: On Wed, Jan 26, 2011 at 11:17:11AM +0200, Avi Kivity wrote: On

Re: [Qemu-devel] Re: Errors on MMIO read access on VM suspend / resume operations

2011-01-26 Thread Jan Kiszka
On 2011-01-26 13:05, Stefan Berger wrote: On 01/26/2011 03:14 AM, Jan Kiszka wrote: On 2011-01-25 17:49, Stefan Berger wrote: On 01/25/2011 02:26 AM, Jan Kiszka wrote: Do you see a chance to look closer at the issue yourself? E.g. instrument the kernel's irqchip models and dump their states

Re: [PATCH 01/16] KVM-HDR: register KVM basic header infrastructure

2011-01-26 Thread Glauber Costa
On Wed, 2011-01-26 at 13:06 +0200, Avi Kivity wrote: On 01/24/2011 08:06 PM, Glauber Costa wrote: KVM, which stands for KVM Virtual Memory (I wanted to call it KVM Virtual Mojito), is a piece of shared memory that is visible to both the hypervisor and the guest kernel - but not the

Re: [PATCH 03/16] KVM-HDR: KVM Userspace registering ioctl

2011-01-26 Thread Glauber Costa
On Wed, 2011-01-26 at 13:12 +0200, Avi Kivity wrote: On 01/24/2011 08:06 PM, Glauber Costa wrote: KVM, which stands for KVM Virtual Memory (I wanted to call it KVM Virtual Mojito), is a piece of shared memory that is visible to both the hypervisor and the guest kernel - but not the

Re: [PATCH 05/16] KVM-HDR: Implement wallclock over KVM - KVM Virtual Memory

2011-01-26 Thread Glauber Costa
On Wed, 2011-01-26 at 13:13 +0200, Avi Kivity wrote: On 01/24/2011 08:06 PM, Glauber Costa wrote: As a proof of concept to KVM - Kernel Virtual Memory, this patch implements wallclock grabbing on top of it. At first, it may seem as a waste of work to just redo it, since it is working well.

Re: compilation problem

2011-01-26 Thread Avi Kivity
On 01/26/2011 01:37 PM, antoni artigues wrote: Hello Well, we have a 32 nodes cluster. With RHEL4 and 2.6.9 kernel in all the nodes. The cluster is in production. Now, is not possible to update each of the 32 nodes. We want to use opennebula with KVM in the cluster. So, we are trying to

Re: [RFC -v6 PATCH 7/8] kvm: keep track of which task is running a KVM vcpu

2011-01-26 Thread Avi Kivity
On 01/20/2011 11:36 PM, Rik van Riel wrote: Keep track of which task is running a KVM vcpu. This helps us figure out later what task to wake up if we want to boost a vcpu that got preempted. Unfortunately there are no guarantees that the same task always keeps the same vcpu, so we can only

Re: [Qemu-devel] Re: Errors on MMIO read access on VM suspend / resume operations

2011-01-26 Thread Stefan Berger
On 01/26/2011 07:09 AM, Jan Kiszka wrote: On 2011-01-26 13:05, Stefan Berger wrote: On 01/26/2011 03:14 AM, Jan Kiszka wrote: On 2011-01-25 17:49, Stefan Berger wrote: On 01/25/2011 02:26 AM, Jan Kiszka wrote: Do you see a chance to look closer at the issue yourself? E.g. instrument the

Re: [Qemu-devel] Re: Errors on MMIO read access on VM suspend / resume operations

2011-01-26 Thread Jan Kiszka
On 2011-01-26 14:08, Stefan Berger wrote: On 01/26/2011 07:09 AM, Jan Kiszka wrote: On 2011-01-26 13:05, Stefan Berger wrote: On 01/26/2011 03:14 AM, Jan Kiszka wrote: On 2011-01-25 17:49, Stefan Berger wrote: On 01/25/2011 02:26 AM, Jan Kiszka wrote: Do you see a chance to look closer at

Re: [Qemu-devel] Re: Errors on MMIO read access on VM suspend / resume operations

2011-01-26 Thread Jan Kiszka
On 2011-01-26 14:15, Jan Kiszka wrote: On 2011-01-26 14:08, Stefan Berger wrote: On 01/26/2011 07:09 AM, Jan Kiszka wrote: On 2011-01-26 13:05, Stefan Berger wrote: On 01/26/2011 03:14 AM, Jan Kiszka wrote: On 2011-01-25 17:49, Stefan Berger wrote: On 01/25/2011 02:26 AM, Jan Kiszka wrote:

Re: [Qemu-devel] Re: Errors on MMIO read access on VM suspend / resume operations

2011-01-26 Thread Stefan Berger
On 01/26/2011 08:31 AM, Jan Kiszka wrote: On 2011-01-26 14:15, Jan Kiszka wrote: On 2011-01-26 14:08, Stefan Berger wrote: On 01/26/2011 07:09 AM, Jan Kiszka wrote: On 2011-01-26 13:05, Stefan Berger wrote: On 01/26/2011 03:14 AM, Jan Kiszka wrote: On 2011-01-25 17:49, Stefan Berger wrote:

Re: EPT: Misconfiguration

2011-01-26 Thread Ruben Kerkhof
On Wed, Jan 26, 2011 at 10:52, Avi Kivity a...@redhat.com wrote: On 01/25/2011 08:29 PM, Ruben Kerkhof wrote:  When you say suddenly, this was with no changes to software and hardware? The host software and hardware hasn't changed in the two months since the machine has been running.

Re: [PATCH 01/16] KVM-HDR: register KVM basic header infrastructure

2011-01-26 Thread Avi Kivity
On 01/26/2011 02:13 PM, Glauber Costa wrote: - it doesn't lend itself will to live migration. Extra state must be maintained in the hypervisor. Yes, but can be queried at any time as well. I don't do it in this patch, but this is explicitly mentioned in my TODO. Using the existing method

Re: [PATCH 03/16] KVM-HDR: KVM Userspace registering ioctl

2011-01-26 Thread Avi Kivity
On 01/26/2011 02:14 PM, Glauber Costa wrote: On Wed, 2011-01-26 at 13:12 +0200, Avi Kivity wrote: On 01/24/2011 08:06 PM, Glauber Costa wrote: KVM, which stands for KVM Virtual Memory (I wanted to call it KVM Virtual Mojito), is a piece of shared memory that is visible to both the

Re: [PATCH 05/16] KVM-HDR: Implement wallclock over KVM - KVM Virtual Memory

2011-01-26 Thread Avi Kivity
On 01/26/2011 02:20 PM, Glauber Costa wrote: On Wed, 2011-01-26 at 13:13 +0200, Avi Kivity wrote: On 01/24/2011 08:06 PM, Glauber Costa wrote: As a proof of concept to KVM - Kernel Virtual Memory, this patch implements wallclock grabbing on top of it. At first, it may seem as a

Re: Network performance with small packets

2011-01-26 Thread Michael S. Tsirkin
On Tue, Jan 25, 2011 at 03:09:34PM -0600, Steve Dobbelstein wrote: I am working on a KVM network performance issue found in our lab running the DayTrader benchmark. The benchmark throughput takes a significant hit when running the application server in a KVM guest verses on bare metal. We

Re: [RFC -v6 PATCH 7/8] kvm: keep track of which task is running a KVM vcpu

2011-01-26 Thread Rik van Riel
On 01/26/2011 08:01 AM, Avi Kivity wrote: Suggest moving the code to vcpu_load(), where it can execute under the protection of vcpu-mutex. I've made the suggested changes by you and Peter, and will re-post the patch series in a bit... -- All rights reversed -- To unsubscribe from this list:

Re: [PATCH 03/16] KVM-HDR: KVM Userspace registering ioctl

2011-01-26 Thread Glauber Costa
On Wed, 2011-01-26 at 17:14 +0200, Avi Kivity wrote: On 01/26/2011 02:14 PM, Glauber Costa wrote: On Wed, 2011-01-26 at 13:12 +0200, Avi Kivity wrote: On 01/24/2011 08:06 PM, Glauber Costa wrote: KVM, which stands for KVM Virtual Memory (I wanted to call it KVM Virtual Mojito),

Re: [PATCH 01/16] KVM-HDR: register KVM basic header infrastructure

2011-01-26 Thread Glauber Costa
On Wed, 2011-01-26 at 17:12 +0200, Avi Kivity wrote: On 01/26/2011 02:13 PM, Glauber Costa wrote: - it doesn't lend itself will to live migration. Extra state must be maintained in the hypervisor. Yes, but can be queried at any time as well. I don't do it in this patch, but this

Re: [PATCH 16/16] KVM-GST: adjust scheduler cpu power

2011-01-26 Thread Glauber Costa
On Wed, 2011-01-26 at 10:57 +0100, Peter Zijlstra wrote: On Tue, 2011-01-25 at 19:27 -0200, Glauber Costa wrote: On Tue, 2011-01-25 at 22:07 +0100, Peter Zijlstra wrote: On Tue, 2011-01-25 at 18:47 -0200, Glauber Costa wrote: On Tue, 2011-01-25 at 21:13 +0100, Peter Zijlstra wrote:

Re: [PATCH 05/16] KVM-HDR: Implement wallclock over KVM - KVM Virtual Memory

2011-01-26 Thread Glauber Costa
On Wed, 2011-01-26 at 17:17 +0200, Avi Kivity wrote: On 01/26/2011 02:20 PM, Glauber Costa wrote: On Wed, 2011-01-26 at 13:13 +0200, Avi Kivity wrote: On 01/24/2011 08:06 PM, Glauber Costa wrote: As a proof of concept to KVM - Kernel Virtual Memory, this patch implements

Re: [PATCH 16/16] KVM-GST: adjust scheduler cpu power

2011-01-26 Thread Peter Zijlstra
On Wed, 2011-01-26 at 13:43 -0200, Glauber Costa wrote: yes, but once this delta is subtracted from rq-clock_task, this value is not used to dictate power, unless I am mistaken. power is adjusted according to scale_rt_power(), which does it using the values of rq-rt_avg, rq-age_stamp, and

Re: [PATCH 16/16] KVM-GST: adjust scheduler cpu power

2011-01-26 Thread Peter Zijlstra
On Wed, 2011-01-26 at 17:46 +0100, Peter Zijlstra wrote: it uses a per-cpu virt_steal_time() clock which is expected to return steal-time in ns. This clock should return u64 and wrap on u64 and be provided when CONFIG_SCHED_PARAVIRT. -- To unsubscribe from this list: send the line unsubscribe

KVM on old kernels pre-2.6.28

2011-01-26 Thread Asdo
Some time ago in this list it was mentioned that old kernels pre-2.6.28 don't work well with KVM. (in particular we have a machine with 2.6.24) Unfortunately the type of problem was not mentioned in the posts I could find. Is that a performance problem, a stability problem, or a data corruption

Re: [PATCH 1/3] Move zone_reclaim() outside of CONFIG_NUMA (v4)

2011-01-26 Thread Christoph Lameter
Reviewed-by: Christoph Lameter c...@linux.com -- 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 http://vger.kernel.org/majordomo-info.html

Re: [PATCH 16/16] KVM-GST: adjust scheduler cpu power

2011-01-26 Thread Glauber Costa
On Wed, 2011-01-26 at 17:46 +0100, Peter Zijlstra wrote: On Wed, 2011-01-26 at 13:43 -0200, Glauber Costa wrote: yes, but once this delta is subtracted from rq-clock_task, this value is not used to dictate power, unless I am mistaken. power is adjusted according to scale_rt_power(),

[RFC -v7 PATCH 6/7] kvm: keep track of which task is running a KVM vcpu

2011-01-26 Thread Rik van Riel
Keep track of which task is running a KVM vcpu. This helps us figure out later what task to wake up if we want to boost a vcpu that got preempted. Unfortunately there are no guarantees that the same task always keeps the same vcpu, so we can only track the task across a single run of the vcpu.

[RFC -v7 PATCH 3/7] sched: use a buddy to implement yield_task_fair

2011-01-26 Thread Rik van Riel
Use the buddy mechanism to implement yield_task_fair. This allows us to skip onto the next highest priority se at every level in the CFS tree, unless doing so would introduce gross unfairness in CPU time distribution. We order the buddy selection in pick_next_entity to check yield first, then

[RFC -v7 PATCH 7/7] kvm: use yield_to instead of sleep in kvm_vcpu_on_spin

2011-01-26 Thread Rik van Riel
Instead of sleeping in kvm_vcpu_on_spin, which can cause gigantic slowdowns of certain workloads, we instead use yield_to to get another VCPU in the same KVM guest to run sooner. This seems to give a 10-15% speedup in certain workloads. Signed-off-by: Rik van Riel r...@redhat.com Signed-off-by:

[RFC -v7 PATCH 0/7] directed yield for Pause Loop Exiting

2011-01-26 Thread Rik van Riel
When running SMP virtual machines, it is possible for one VCPU to be spinning on a spinlock, while the VCPU that holds the spinlock is not currently running, because the host scheduler preempted it to run something else. Both Intel and AMD CPUs have a feature that detects when a virtual CPU is

[RFC -v7 PATCH 1/7] sched: check the right -nr_running in yield_task_fair

2011-01-26 Thread Rik van Riel
With CONFIG_FAIR_GROUP_SCHED, each task_group has its own cfs_rq. Yielding to a task from another cfs_rq may be worthwhile, since a process calling yield typically cannot use the CPU right now. Therefor, we want to check the per-cpu nr_running, not the cgroup local one. Signed-off-by: Rik van

[RFC -v7 PATCH 2/7] sched: limit the scope of clear_buddies

2011-01-26 Thread Rik van Riel
The clear_buddies function does not seem to play well with the concept of hierarchical runqueues. In the following tree, task groups are represented by 'G', tasks by 'T', next by 'n' and last by 'l'. (nl) /\ G(nl) G / \ \ T(l) T(n) T This situation can arise when a

[RFC -v7 PATCH 4/7] Add yield_to(task, preempt) functionality.

2011-01-26 Thread Rik van Riel
From: Mike Galbraith efa...@gmx.de Currently only implemented for fair class tasks. Add a yield_to_task method() to the fair scheduling class. allowing the caller of yield_to() to accelerate another thread in it's thread group, task group. Implemented via a scheduler hint, using cfs_rq-next to

Re: [PATCH 3/3] Provide control over unmapped pages (v4)

2011-01-26 Thread Minchan Kim
Hi Balbir, On Tue, Jan 25, 2011 at 2:10 PM, Balbir Singh bal...@linux.vnet.ibm.com wrote: Changelog v4 1. Add max_unmapped_ratio and use that as the upper limit to check when to shrink the unmapped page cache (Christoph Lameter) Changelog v2 1. Use a config option to enable the code

Re: [PATCH v3 1/3] KVM: fix rcu usage warning in kvm_arch_vcpu_ioctl_set_sregs()

2011-01-26 Thread Xiao Guangrong
On 01/20/2011 11:27 PM, Marcelo Tosatti wrote: Sure :-), there is the simply test result of kernbench: Before patch: real5m6.493s user3m57.847s sys

Re: [PATCH 1/2] mm, Make __get_user_pages return -EHWPOISON for HWPOISON page optionally

2011-01-26 Thread Huang Ying
Hi, Andrew, On Thu, 2011-01-20 at 23:50 +0800, Marcelo Tosatti wrote: On Mon, Jan 17, 2011 at 08:47:39AM +0800, Huang Ying wrote: Hi, Andrew, On Sun, 2011-01-16 at 23:35 +0800, Avi Kivity wrote: On 01/14/2011 03:37 AM, Huang Ying wrote: On Thu, 2011-01-13 at 18:43 +0800, Avi Kivity