Re: [PATCH] Revert "qemu-kvm: Bring qemu_init_vcpu back home"

2011-02-23 Thread Jan Kiszka
On 2011-02-24 02:29, Ryousei Takano wrote: > Hi Jan, > > Thanks for your help. > > On Thu, Feb 24, 2011 at 2:26 AM, Jan Kiszka wrote: >> On 2011-02-23 16:53, Ryousei Takano wrote: >>> Hi Jan, >>> >>> On Wed, Feb 23, 2011 at 11:47 PM, Jan Kiszka wrote: On 2011-02-23 15:38, Ryousei Takano wr

Re: [Qemu-devel] Re: [PATCH V6 1/4 resend] nmi: convert cpu_index to cpu-index

2011-02-23 Thread Markus Armbruster
Luiz Capitulino writes: > On Mon, 21 Feb 2011 09:37:57 +0800 > Lai Jiangshan wrote: > >> Hi, Luiz Capitulino >> >> Any problem? > > Sorry for the delay. Looks good in general to me know, there's only one > small problem and it's the error message: > > (qemu) nmi 100 > Parameter 'cpu-index'

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

2011-02-23 Thread Yoshiaki Tamura
Currently FdMigrationState doesn't support read(), and this patch introduces it to get response from the other side. Note that this won't change the existing migration protocol to be bi-directional. Signed-off-by: Yoshiaki Tamura --- migration-tcp.c | 15 +++ migration.c | 1

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

2011-02-23 Thread Yoshiaki Tamura
event-tap function is called only when it is on. Signed-off-by: Yoshiaki Tamura --- net.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index ec4745d..724b549 100644 --- a/net.c +++ b/net.c @@ -36,6 +36,7 @@ #include "qemu-common.h" #include "qe

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

2011-02-23 Thread Yoshiaki Tamura
event-tap function is called only when it is on, and requests were sent from device emulators. Signed-off-by: Yoshiaki Tamura Acked-by: Kevin Wolf --- block.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index f7d91a2..b19729a 100644

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

2011-02-23 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura --- vl.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 0bda77d..0ea1fb7 100644 --- a/vl.c +++ b/vl.c @@ -162,6 +162,7 @@ int main(int argc, char **argv) #include "qemu-queue.h" #include "cpus.h" #include "arch_init.h

[PATCH 17/18] 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-02-23 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. vm_change_

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

2011-02-23 Thread Yoshiaki Tamura
Introduce qemu_savevm_trans_{begin,commit} to send the memory and device info together, while avoiding cancelling memory state tracking. This patch also abstracts common code between qemu_savevm_state_{begin,iterate,commit}. Signed-off-by: Yoshiaki Tamura --- savevm.c | 157

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

2011-02-23 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 --- vl.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/vl.c b/vl.c index b436952..0bda77d 100644

[PATCH 18/18] Introduce "kemari:" to enable FT migration mode (Kemari).

2011-02-23 Thread Yoshiaki Tamura
When "kemari:" is set in front of URI of migrate command, it will turn on ft_mode to start FT migration mode (Kemari). On the receiver side, the option looks like, -incoming kemari::: Signed-off-by: Yoshiaki Tamura Acked-by: Paolo Bonzini --- hmp-commands.hx |4 +++- migration.c | 12

[PATCH 09/18] Introduce event-tap.

2011-02-23 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 Signed-off-by: OHMURA Kei --- Makefile.targe

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

2011-02-23 Thread Yoshiaki Tamura
Record mmio write event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- exec.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index d611100..e192eec 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@ #include "osdep.h" #include "kvm.h

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

2011-02-23 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 from

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

2011-02-23 Thread Yoshiaki Tamura
Currently buf size is fixed at 32KB. It would be useful if it could be flexible. Signed-off-by: Yoshiaki Tamura --- 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 5e24329..a168a37 100644 --- a/hw/

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

2011-02-23 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura --- 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 bd4e944..c4f1940 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2111,7 +2111,7 @@ static void tcp_chr_telnet_init(int

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

2011-02-23 Thread Yoshiaki Tamura
Record ioport event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- 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 @@ #include "ioport.h" #include

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

2011-02-23 Thread Yoshiaki Tamura
To utilize ft_trans_file function, savevm needs interfaces to be exported. Signed-off-by: Yoshiaki Tamura --- hw/hw.h |5 ++ savevm.c | 150 ++ 2 files changed, 155 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h ind

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

2011-02-23 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 Signed-off-by: OHMURA Kei --- Makefile.objs

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

2011-02-23 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 to

[PATCH 00/18] Kemari for KVM v0.2.12

2011-02-23 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 9a31334f419c1d773cf4b4bfbbdace96fbf8a4f4. The changes from v0.2.11 -> v0.2.12 are: - fix vm_state_notify() to use QLIST_FOREACH_SAFE (Juan) - introdu

[PATCH 03/18] Introduce qemu_loadvm_state_no_header() and make qemu_loadvm_state() a wrapper.

2011-02-23 Thread Yoshiaki Tamura
Introduce qemu_loadvm_state_no_header() so that it can be called iteratively without reading the header, and qemu_loadvm_state() becomes a wrapper of it. Signed-off-by: Yoshiaki Tamura --- savevm.c | 45 +++-- 1 files changed, 27 insertions(+), 18 deleti

Re: [PATCH 07/18] Introduce fault tolerant VM transaction QEMUFile and ft_mode.

2011-02-23 Thread Yoshiaki Tamura
Juan Quintela wrote: Yoshiaki Tamura wrote: 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. Could you explain what is the

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

2011-02-23 Thread Yoshiaki Tamura
Juan Quintela wrote: Yoshiaki Tamura wrote: 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 --- vl.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --gi

Re: [PATCH 03/18] Introduce skip_header parameter to qemu_loadvm_state().

2011-02-23 Thread Yoshiaki Tamura
Juan Quintela wrote: Yoshiaki Tamura wrote: Introduce skip_header parameter to qemu_loadvm_state() so that it can be called iteratively without reading the header. Signed-off-by: Yoshiaki Tamura --- migration.c |2 +- savevm.c| 24 +--- sysemu.h|2 +-

Re: [PATCH] Revert "qemu-kvm: Bring qemu_init_vcpu back home"

2011-02-23 Thread Ryousei Takano
Hi Jan, Thanks for your help. On Thu, Feb 24, 2011 at 2:26 AM, Jan Kiszka wrote: > On 2011-02-23 16:53, Ryousei Takano wrote: >> Hi Jan, >> >> On Wed, Feb 23, 2011 at 11:47 PM, Jan Kiszka wrote: >>> On 2011-02-23 15:38, Ryousei Takano wrote: This reverts commit c65827770b5e7282b5fb9da29c1d

regression - 2.6.36 -> 2.6.37 - kvm - 32bit SMP guests don't boot

2011-02-23 Thread Nikola Ciprich
Hello Avi et al, seems like I've hit regression in 2.6.37: 32bit SMP centos guest stopped booting, they just hang during initrd phase. (haven't tried different distros) UP guest are OK. when I (forcibly) compiled kvm-kmod-2.6.36.2 and used it in 2.6.37, even the SMP guests boot fine. does somebody

Re: [v3 RFC PATCH 0/4] Implement multiqueue virtio-net

2011-02-23 Thread Simon Horman
On Wed, Feb 23, 2011 at 10:52:09AM +0530, Krishna Kumar2 wrote: > Simon Horman wrote on 02/22/2011 01:17:09 PM: > > Hi Simon, > > > > I have a few questions about the results below: > > > > 1. Are the (%) comparisons between non-mq and mq virtio? > > Yes - mainline kernel with transmit-only MQ

Re: [PATCH 07/18] Introduce fault tolerant VM transaction QEMUFile and ft_mode.

2011-02-23 Thread Juan Quintela
Yoshiaki Tamura wrote: > 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. Could you explain what is the difference with

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

2011-02-23 Thread Juan Quintela
Yoshiaki Tamura wrote: > 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 > --- > vl.c | 13 + > 1 files changed, 9 insertions(+), 4 deletions(-) > > diff --git a/vl.c

Re: [PATCH 03/18] Introduce skip_header parameter to qemu_loadvm_state().

2011-02-23 Thread Juan Quintela
Yoshiaki Tamura wrote: > Introduce skip_header parameter to qemu_loadvm_state() so that it can > be called iteratively without reading the header. > > Signed-off-by: Yoshiaki Tamura > --- > migration.c |2 +- > savevm.c| 24 +--- > sysemu.h|2 +- > 3 files c

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

2011-02-23 Thread Alex Williamson
On Mon, 2011-01-31 at 17:18 -0200, Marcelo Tosatti wrote: > On Mon, Jan 24, 2011 at 10:37:56PM -0700, Alex Williamson wrote: > > On Mon, 2011-01-24 at 08:44 -0700, Alex Williamson wrote: > > > I'll look at how we might be > > > able to allocate slots on demand. Thanks, > > > > Here's a first cut

Re: [Qemu-devel] [PATCH V6 3/4] qmp, nmi: convert do_inject_nmi() to QObject

2011-02-23 Thread Luiz Capitulino
On Wed, 23 Feb 2011 13:25:38 -0600 Anthony Liguori wrote: > On 01/27/2011 02:20 AM, Lai Jiangshan wrote: > > Make we can inject NMI via qemu-monitor-protocol. > > We use "inject-nmi" for the qmp command name, the meaning is clearer. > > > > Signed-off-by: Lai Jiangshan > > --- > > diff --git a/h

Re: [RFC PATCH 1/3] Weight-balanced tree

2011-02-23 Thread Alex Williamson
On Wed, 2011-02-23 at 19:08 +0200, Avi Kivity wrote: > On 02/23/2011 07:02 PM, Alex Williamson wrote: > > > > > > obj-$(CONFIG_WEIGHT_BALANCED_TREE) += wbtree.o > > > > > > then kvm can select it, and the impact on non-kvm kernels is removed. > > > > Then we'd have issues trying to build an exter

Re: PCI Passthrough, error: The driver 'pci-stub' is occupying your device 0000:08:06.2

2011-02-23 Thread James Neave
On Wed, Feb 23, 2011 at 7:44 PM, James Neave wrote: > On Wed, Feb 23, 2011 at 12:11 AM, Chris Wright wrote: >> * James Neave (robo...@gmail.com) wrote: >>> On Tue, Feb 22, 2011 at 1:51 AM, Chris Wright wrote: >>> > * James Neave (robo...@gmail.com) wrote: >>> >> Does anybody know the debug kerne

Re: PCI Passthrough, error: The driver 'pci-stub' is occupying your device 0000:08:06.2

2011-02-23 Thread James Neave
On Wed, Feb 23, 2011 at 12:11 AM, Chris Wright wrote: > * James Neave (robo...@gmail.com) wrote: >> On Tue, Feb 22, 2011 at 1:51 AM, Chris Wright wrote: >> > * James Neave (robo...@gmail.com) wrote: >> >> Does anybody know the debug kernel switches for iommu? >> > >> > Two helpful kernel commandl

Re: [RFC PATCH 0/3] Weight-balanced binary tree + KVM growable memory slots using wbtree

2011-02-23 Thread Alex Williamson
On Wed, 2011-02-23 at 11:06 -0700, Alex Williamson wrote: > On Wed, 2011-02-23 at 15:12 +0200, Avi Kivity wrote: > > On 02/22/2011 08:54 PM, Alex Williamson wrote: > > > This series introduces a new weight-balanced binary tree (wbtree) for > > > general use. It's largely leveraged from the rbtree,

Re: [Qemu-devel] [PATCH V6 3/4] qmp, nmi: convert do_inject_nmi() to QObject

2011-02-23 Thread Anthony Liguori
On 01/27/2011 02:20 AM, Lai Jiangshan wrote: Make we can inject NMI via qemu-monitor-protocol. We use "inject-nmi" for the qmp command name, the meaning is clearer. Signed-off-by: Lai Jiangshan --- diff --git a/hmp-commands.hx b/hmp-commands.hx index ec1a4db..e763bf9 100644 --- a/hmp-commands.h

Re: [PATCH 2/3] KVM: Emulate MSI-X table in kernel

2011-02-23 Thread Alex Williamson
On Wed, 2011-02-23 at 20:39 +0200, Michael S. Tsirkin wrote: > On Wed, Feb 23, 2011 at 09:34:19AM -0700, Alex Williamson wrote: > > On Wed, 2011-02-23 at 14:59 +0800, Sheng Yang wrote: > > > On Wednesday 23 February 2011 08:19:21 Alex Williamson wrote: > > > > On Sun, 2011-01-30 at 13:11 +0800, She

Re: [PATCH V6 1/4 resend] nmi: convert cpu_index to cpu-index

2011-02-23 Thread Luiz Capitulino
On Mon, 21 Feb 2011 09:37:57 +0800 Lai Jiangshan wrote: > Hi, Luiz Capitulino > > Any problem? Sorry for the delay. Looks good in general to me know, there's only one small problem and it's the error message: (qemu) nmi 100 Parameter 'cpu-index' expects a CPU number (qemu) I would expe

Re: [ISC-Bugs #22806] [PATCH] lfp: fix AF_INET checksum with csum offloading

2011-02-23 Thread Michael S. Tsirkin
No answer from isc so far. I think it's a problem that the popular dhclient has had this bug for so long. Anyone knows what else can be done? On Mon, Dec 27, 2010 at 07:16:32PM +0200, Michael S. Tsirkin wrote: > When an AF_INET socket is used, linux would sometimes > return a packet without the c

Re: Is PCI pass-through possible with host+kvm on latest linux but guest on an older linux?

2011-02-23 Thread Chigurupati, Chaks
Thanks Chris. On 2/23/11 10:30 AM, "Chris Wright" wrote: >* Chigurupati, Chaks (ch...@wichorus.com) wrote: >> If my hardware is VT-d capable and the host is latest linux+kvm with all >> the needed VT-d support but the guest is an older linux (say 2.6.27), >>will >> I be able to use PCI pass-thro

Re: [PATCH 2/3] KVM: Emulate MSI-X table in kernel

2011-02-23 Thread Michael S. Tsirkin
On Wed, Feb 23, 2011 at 09:34:19AM -0700, Alex Williamson wrote: > On Wed, 2011-02-23 at 14:59 +0800, Sheng Yang wrote: > > On Wednesday 23 February 2011 08:19:21 Alex Williamson wrote: > > > On Sun, 2011-01-30 at 13:11 +0800, Sheng Yang wrote: > > > > +static int msix_table_mmio_read(struct kvm_io

Re: Is PCI pass-through possible with host+kvm on latest linux but guest on an older linux?

2011-02-23 Thread Chris Wright
* Chigurupati, Chaks (ch...@wichorus.com) wrote: > If my hardware is VT-d capable and the host is latest linux+kvm with all > the needed VT-d support but the guest is an older linux (say 2.6.27), will > I be able to use PCI pass-through to hot-plug a PCI device from one guest > to another guest? An

Re: [RFC PATCH 0/3] Weight-balanced binary tree + KVM growable memory slots using wbtree

2011-02-23 Thread Alex Williamson
On Wed, 2011-02-23 at 15:12 +0200, Avi Kivity wrote: > On 02/22/2011 08:54 PM, Alex Williamson wrote: > > This series introduces a new weight-balanced binary tree (wbtree) for > > general use. It's largely leveraged from the rbtree, copying it's > > rotate functions, while introducing different re

[PATCH] expose kvmclock upper msr set.

2011-02-23 Thread Glauber Costa
We've been supporting kvmclock MSRs in the 0x4b564d00-0x4b564dff range for a while now, but we're not exposing it yet, meaning nobody is using it. This simple patch takes care of that. Signed-off-by: Glauber Costa --- arch/x86/kvm/x86.c |1 + include/linux/kvm.h |1 + 2 files changed, 2

Re: [PATCH] Revert "qemu-kvm: Bring qemu_init_vcpu back home"

2011-02-23 Thread Jan Kiszka
On 2011-02-23 16:53, Ryousei Takano wrote: > Hi Jan, > > On Wed, Feb 23, 2011 at 11:47 PM, Jan Kiszka wrote: >> On 2011-02-23 15:38, Ryousei Takano wrote: >>> This reverts commit c65827770b5e7282b5fb9da29c1de85ed08e816e >> >> Reasoning would belong here, not below the separator. >> >>> >>> Signed

Re: [RFC PATCH 1/3] Weight-balanced tree

2011-02-23 Thread Avi Kivity
On 02/23/2011 07:02 PM, Alex Williamson wrote: > > obj-$(CONFIG_WEIGHT_BALANCED_TREE) += wbtree.o > > then kvm can select it, and the impact on non-kvm kernels is removed. Then we'd have issues trying to build an external kvm module for a pre-existing non-kvm kernel. Do we care? Officially,

Re: [RFC PATCH 1/3] Weight-balanced tree

2011-02-23 Thread Alex Williamson
On Wed, 2011-02-23 at 15:09 +0200, Avi Kivity wrote: > On 02/22/2011 08:55 PM, Alex Williamson wrote: > > Signed-off-by: Alex Williamson > > --- > > > > include/linux/wbtree.h | 55 > > lib/Makefile |3 + > > lib/wbtree.c | 170 > > ++

Re: [PATCH 2/3] KVM: Emulate MSI-X table in kernel

2011-02-23 Thread Alex Williamson
On Wed, 2011-02-23 at 14:59 +0800, Sheng Yang wrote: > On Wednesday 23 February 2011 08:19:21 Alex Williamson wrote: > > On Sun, 2011-01-30 at 13:11 +0800, Sheng Yang wrote: > > > +static int msix_table_mmio_read(struct kvm_io_device *this, gpa_t addr, > > > int len, +

Re: [v3 RFC PATCH 0/4] Implement multiqueue virtio-net

2011-02-23 Thread Michael S. Tsirkin
On Wed, Feb 23, 2011 at 12:18:36PM +0530, Krishna Kumar2 wrote: > > "Michael S. Tsirkin" wrote on 02/23/2011 12:09:15 PM: > > Hi Michael, > > > > Yes. Michael Tsirkin had wanted to see how the MQ RX patch > > > would look like, so I was in the process of getting the two > > > working together. T

Re: [PATCH] Revert "qemu-kvm: Bring qemu_init_vcpu back home"

2011-02-23 Thread Ryousei Takano
Hi Jan, On Wed, Feb 23, 2011 at 11:47 PM, Jan Kiszka wrote: > On 2011-02-23 15:38, Ryousei Takano wrote: >> This reverts commit c65827770b5e7282b5fb9da29c1de85ed08e816e > > Reasoning would belong here, not below the separator. > >> >> Signed-off-by: Ryousei Takano >> --- >> I am trying to run Op

Re: Q: status of kvm/ subdir in qemu-kvm tarball?

2011-02-23 Thread Jan Kiszka
On 2011-02-23 15:30, Michael Tokarev wrote: > 23.02.2011 16:45, Jan Kiszka wrote: >> On 2011-02-23 14:15, Michael Tokarev wrote: > [] >>> It only matters if you want to build qemu-kvm for OLDER >>> kernel without support of some features which are used by >>> the userspace you're building. Provide

Re: [PATCH] Revert "qemu-kvm: Bring qemu_init_vcpu back home"

2011-02-23 Thread Jan Kiszka
On 2011-02-23 15:38, Ryousei Takano wrote: > This reverts commit c65827770b5e7282b5fb9da29c1de85ed08e816e Reasoning would belong here, not below the separator. > > Signed-off-by: Ryousei Takano > --- > I am trying to run OpenMP (i.e., multi-threaded) programs using Intel > Math Kernel Library (

[PATCH] Revert "qemu-kvm: Bring qemu_init_vcpu back home"

2011-02-23 Thread Ryousei Takano
This reverts commit c65827770b5e7282b5fb9da29c1de85ed08e816e Signed-off-by: Ryousei Takano --- I am trying to run OpenMP (i.e., multi-threaded) programs using Intel Math Kernel Library (MKL) on a guest OS. In the qemu-kvm-0.12.5, my program works fine. In the qemu-kvm-0.13.0, however, it does n

Re: Q: status of kvm/ subdir in qemu-kvm tarball?

2011-02-23 Thread Michael Tokarev
23.02.2011 16:45, Jan Kiszka wrote: > On 2011-02-23 14:15, Michael Tokarev wrote: [] >> It only matters if you want to build qemu-kvm for OLDER >> kernel without support of some features which are used by >> the userspace you're building. Provided 3 things: > > It also matters if you are building

[KVM-Autotest][PATCH][virtio-console] KVM-test: Add hotplug test.

2011-02-23 Thread Jiří Župka
Tests: Hotplug of virtioserial and console. Hotplug of virtio-serial-pci device. Signed-off-by: Jiří Župka --- client/tests/kvm/scripts/virtio_console_guest.py |3 +- client/tests/kvm/tests/virtio_console.py | 382 +- client/tests/kvm/tests_base.cfg.sampl

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

2011-02-23 Thread Yoshiaki Tamura
Currently FdMigrationState doesn't support read(), and this patch introduces it to get response from the other side. Note that this won't change the existing migration protocol to be bi-directional. Signed-off-by: Yoshiaki Tamura --- migration-tcp.c | 15 +++ migration.c | 1

[PATCH 09/18] Introduce event-tap.

2011-02-23 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 Signed-off-by: OHMURA Kei --- Makefile.targe

[PATCH 17/18] 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-02-23 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. vm_change_

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

2011-02-23 Thread Yoshiaki Tamura
Introduce qemu_savevm_trans_{begin,commit} to send the memory and device info together, while avoiding cancelling memory state tracking. This patch also abstracts common code between qemu_savevm_state_{begin,iterate,commit}. Signed-off-by: Yoshiaki Tamura --- savevm.c | 157

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

2011-02-23 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 --- migration.c |2 +- savevm.c| 24 +--- sysemu.h|2 +- 3 files changed, 15 insertions(+), 13 deletions(-)

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

2011-02-23 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura --- vl.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 4e263c3..614ac9c 100644 --- a/vl.c +++ b/vl.c @@ -162,6 +162,7 @@ int main(int argc, char **argv) #include "qemu-queue.h" #include "cpus.h" #include "arch_init.h

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

2011-02-23 Thread Yoshiaki Tamura
event-tap function is called only when it is on, and requests were sent from device emulators. Signed-off-by: Yoshiaki Tamura Acked-by: Kevin Wolf --- block.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index f7d91a2..b19729a 100644

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

2011-02-23 Thread Yoshiaki Tamura
Currently buf size is fixed at 32KB. It would be useful if it could be flexible. Signed-off-by: Yoshiaki Tamura --- 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 5e24329..a168a37 100644 --- a/hw/

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

2011-02-23 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura --- 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 bd4e944..c4f1940 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2111,7 +2111,7 @@ static void tcp_chr_telnet_init(int

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

2011-02-23 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 Signed-off-by: OHMURA Kei --- Makefile.objs

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

2011-02-23 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 from

[PATCH 18/18] Introduce "kemari:" to enable FT migration mode (Kemari).

2011-02-23 Thread Yoshiaki Tamura
When "kemari:" is set in front of URI of migrate command, it will turn on ft_mode to start FT migration mode (Kemari). On the receiver side, the option looks like, -incoming kemari::: Signed-off-by: Yoshiaki Tamura Acked-by: Paolo Bonzini --- hmp-commands.hx |4 +++- migration.c | 12

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

2011-02-23 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 to

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

2011-02-23 Thread Yoshiaki Tamura
event-tap function is called only when it is on. Signed-off-by: Yoshiaki Tamura --- net.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index ec4745d..724b549 100644 --- a/net.c +++ b/net.c @@ -36,6 +36,7 @@ #include "qemu-common.h" #include "qe

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

2011-02-23 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 --- vl.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index b436952..4e263c3 100644 ---

[PATCH 00/18] Kemari for KVM v0.2.11

2011-02-23 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 9a31334f419c1d773cf4b4bfbbdace96fbf8a4f4. The changes from v0.2.10 -> v0.2.11 are: - rebased to 0.14 - upon unregistering event-tap, set event_tap_st

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

2011-02-23 Thread Yoshiaki Tamura
Record ioport event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- 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 @@ #include "ioport.h" #include

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

2011-02-23 Thread Yoshiaki Tamura
Record mmio write event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- exec.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index d611100..e192eec 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@ #include "osdep.h" #include "kvm.h

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

2011-02-23 Thread Yoshiaki Tamura
To utilize ft_trans_file function, savevm needs interfaces to be exported. Signed-off-by: Yoshiaki Tamura --- hw/hw.h |5 ++ savevm.c | 149 ++ 2 files changed, 154 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h ind

Re: Q: status of kvm/ subdir in qemu-kvm tarball?

2011-02-23 Thread Jan Kiszka
On 2011-02-23 14:15, Michael Tokarev wrote: > 23.02.2011 15:58, Jan Kiszka wrote: >> On 2011-02-23 12:42, Michael Tokarev wrote: > [] - kvm/include (latest kernel headers) *) >>> >>> This directory is always used (in configure) >>> unless -kerneldir is specified - who uses that >>> nowadays?

Re: Problem with bridged tap interface

2011-02-23 Thread Daniel P. Berrange
On Wed, Feb 23, 2011 at 12:34:45PM +0100, andreas.a...@de.transport.bombardier.com wrote: > Hi all, > > sorry for the previous partial e-mail, I hit the send button accidentally > ;-). > > I have a setup with a kvm-based virtual machine running a stock RedHat 6.1 > (yes, that old) on a rather

Re: [PATCH] kvm,async_pf: add missing kvm_async_pf_hash_reset()

2011-02-23 Thread Gleb Natapov
On Mon, Feb 21, 2011 at 11:24:50AM +0800, Lai Jiangshan wrote: > On 02/21/2011 11:21 AM, Lai Jiangshan wrote: > > > > The hash array of async gfns may still contain some left gfns after > > kvm_clear_async_pf_completion_queue() called, need to clear them. > > > > sorry. > > Signed-off-by: Lai J

Re: Q: status of kvm/ subdir in qemu-kvm tarball?

2011-02-23 Thread Michael Tokarev
23.02.2011 15:58, Jan Kiszka wrote: > On 2011-02-23 12:42, Michael Tokarev wrote: [] >>> - kvm/include (latest kernel headers) *) >> >> This directory is always used (in configure) >> unless -kerneldir is specified - who uses that >> nowadays? I dunno. > > It may not be relevant to distros, provi

Re: [RFC PATCH 0/3] Weight-balanced binary tree + KVM growable memory slots using wbtree

2011-02-23 Thread Avi Kivity
On 02/22/2011 08:54 PM, Alex Williamson wrote: This series introduces a new weight-balanced binary tree (wbtree) for general use. It's largely leveraged from the rbtree, copying it's rotate functions, while introducing different rebalance and erase functions. This tree is particularly useful fo

Re: [RFC PATCH 1/3] Weight-balanced tree

2011-02-23 Thread Avi Kivity
On 02/22/2011 08:55 PM, Alex Williamson wrote: Signed-off-by: Alex Williamson --- include/linux/wbtree.h | 55 lib/Makefile |3 + lib/wbtree.c | 170 3 files changed, 227 insertions(+), 1 deletions(

Re: Q: status of kvm/ subdir in qemu-kvm tarball?

2011-02-23 Thread Jan Kiszka
On 2011-02-23 12:42, Michael Tokarev wrote: > 23.02.2011 14:31, Jan Kiszka wrote: >> On 2011-02-23 12:04, Michael Tokarev wrote: >>> What's the current status of files in kvm/ subdirectory >>> in the qemu-kvm distribution (0.14 or git) ? > [] >> I think there are a few bits still in use: >> >> - kv

Problem with bridged tap interface

2011-02-23 Thread andreas . ames
Hi all, sorry for the previous partial e-mail, I hit the send button accidentally ;-). I have a setup with a kvm-based virtual machine running a stock RedHat 6.1 (yes, that old) on a rather current debian host. 1. uname in host: 2.6.26-2-amd64 #1 SMP Wed May 12 18:03:14 UTC 2010 x86_64 GNU/Li

Re: Q: status of kvm/ subdir in qemu-kvm tarball?

2011-02-23 Thread Michael Tokarev
23.02.2011 14:31, Jan Kiszka wrote: > On 2011-02-23 12:04, Michael Tokarev wrote: >> What's the current status of files in kvm/ subdirectory >> in the qemu-kvm distribution (0.14 or git) ? [] > I think there are a few bits still in use: > > - kvm/kvm_stat this is a tiny useful tool, yes, and we p

Re: Q: status of kvm/ subdir in qemu-kvm tarball?

2011-02-23 Thread Jan Kiszka
On 2011-02-23 12:04, Michael Tokarev wrote: > What's the current status of files in kvm/ subdirectory > in the qemu-kvm distribution (0.14 or git) ? > > As far as I can see, all that is old and unused stuff, > which only confuses users. It is not used during build > the Makefiles are obsolete and

Q: status of kvm/ subdir in qemu-kvm tarball?

2011-02-23 Thread Michael Tokarev
What's the current status of files in kvm/ subdirectory in the qemu-kvm distribution (0.14 or git) ? As far as I can see, all that is old and unused stuff, which only confuses users. It is not used during build the Makefiles are obsolete and refers to non-existed files/directories, some remaining

Re: [PATCH 7/7] KVM: MMU: cache guest page number to guest frame number

2011-02-23 Thread Avi Kivity
On 02/23/2011 03:38 AM, Xiao Guangrong wrote: On 02/22/2011 10:32 PM, Avi Kivity wrote: > On 02/22/2011 10:16 AM, Xiao Guangrong wrote: >> Cache guest page number to guest frame number to avoid walk guest page table >> frequently, the 'vtlb' idea is from Xen. >> >> Note: >> we can't use vtlb

Re: [PATCH 2/3] KVM: Emulate MSI-X table in kernel

2011-02-23 Thread Michael S. Tsirkin
On Wed, Feb 23, 2011 at 02:59:04PM +0800, Sheng Yang wrote: > On Wednesday 23 February 2011 08:19:21 Alex Williamson wrote: > > On Sun, 2011-01-30 at 13:11 +0800, Sheng Yang wrote: > > > Then we can support mask bit operation of assigned devices now. > > > > Looks pretty good overall. A few comme

Re: [PATCH] qemu-kvm: Fix non-PCI target build

2011-02-23 Thread klondike
El 23/02/11 09:28, Jan Kiszka escribió: > On 2011-02-23 09:05, klondike wrote: >> El 23/02/11 08:49, Nikola Ciprich escribió: >>> Hello Avi, >> Hi, >>> when trying to compile(link) various targets, I get: >>> LINK sparc-softmmu/qemu-system-sparc >>> pci-stub.o: In function `do_pci_info_print': >

Re: [ANNOUNCE] qemu-kvm-0.14.0

2011-02-23 Thread klondike
El 23/02/11 09:29, Nikola Ciprich escribió: > well, now it seems I've got another problem here: > > In file included from /usr/src/redhat/BUILD/qemu-kvm-0.14.0/hw/pci.c:32: > /usr/src/redhat/BUILD/qemu-kvm-0.14.0/qemu-kvm.h:11:17: error: cpu.h: No such > file or directory > /usr/src/redhat/BUILD/q

Re: [ANNOUNCE] qemu-kvm-0.14.0

2011-02-23 Thread Nikola Ciprich
well, now it seems I've got another problem here: In file included from /usr/src/redhat/BUILD/qemu-kvm-0.14.0/hw/pci.c:32: /usr/src/redhat/BUILD/qemu-kvm-0.14.0/qemu-kvm.h:11:17: error: cpu.h: No such file or directory /usr/src/redhat/BUILD/qemu-kvm-0.14.0/qemu-kvm.h:630:21: error: attempt to use

[PATCH] qemu-kvm: Fix non-PCI target build

2011-02-23 Thread Jan Kiszka
On 2011-02-23 09:05, klondike wrote: > El 23/02/11 08:49, Nikola Ciprich escribió: >> Hello Avi, > Hi, >> when trying to compile(link) various targets, I get: >> LINK sparc-softmmu/qemu-system-sparc >> pci-stub.o: In function `do_pci_info_print': >> /usr/src/redhat/BUILD/qemu-kvm-0.14.0/hw/pci-s

Re: [ANNOUNCE] qemu-kvm-0.14.0

2011-02-23 Thread Nikola Ciprich
On Wed, Feb 23, 2011 at 09:05:37AM +0100, klondike wrote: > I hit this problem too and after a long night I tracked it back to some > odd merge, this patch solved the issue for me. > 2010-11-10Francisco Blas Izquierdo Riera > Somehow pci.o was added so it was needed on all targe

Re: [ANNOUNCE] qemu-kvm-0.14.0

2011-02-23 Thread klondike
El 23/02/11 08:49, Nikola Ciprich escribió: > Hello Avi, Hi, > when trying to compile(link) various targets, I get: > LINK sparc-softmmu/qemu-system-sparc > pci-stub.o: In function `do_pci_info_print': > /usr/src/redhat/BUILD/qemu-kvm-0.14.0/hw/pci-stub.c:36: multiple definition > of `do_pci_in