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

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 klond...@xiscosoft.es Somehow pci.o was added so it was

[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-stub.c:36:

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

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

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: [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 comments

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 in ept

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

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

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 package

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

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: - kvm/kvm_stat

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

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, provided they

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 Jiangshan

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: 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? I dunno. It may

[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 tamura.yoshi...@lab.ntt.co.jp --- hw/hw.h |5 ++ savevm.c | 149 ++ 2 files changed, 154 insertions(+), 0 deletions(-) diff

[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 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 d611100..e192eec 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@

[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 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 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

[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 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 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 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 ec4745d..724b549 100644 --- a/net.c +++ b/net.c @@ -36,6 +36,7 @@ #include

[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:protocol:address:port Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Acked-by: Paolo Bonzini

[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

[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

[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 tamura.yoshi...@lab.ntt.co.jp Signed-off-by:

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

2011-02-23 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 bd4e944..c4f1940 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2111,7 +2111,7 @@ static

[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 tamura.yoshi...@lab.ntt.co.jp Acked-by: Kevin Wolf kw...@redhat.com --- block.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git

[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 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 10/18] Call init handler of event-tap at main() in vl.c.

2011-02-23 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 4e263c3..614ac9c 100644 --- a/vl.c +++ b/vl.c @@ -162,6 +162,7 @@ int main(int argc, char **argv) #include qemu-queue.h #include

[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 tamura.yoshi...@lab.ntt.co.jp --- migration.c |2 +- savevm.c| 24 +--- sysemu.h|2 +- 3 files changed, 15

[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 tamura.yoshi...@lab.ntt.co.jp ---

[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 tamura.yoshi...@lab.ntt.co.jp Signed-off-by:

[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 tamura.yoshi...@lab.ntt.co.jp --- migration-tcp.c | 15

[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.

[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 jzu...@redhat.com --- client/tests/kvm/scripts/virtio_console_guest.py |3 +- client/tests/kvm/tests/virtio_console.py | 382 +-

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 for a

[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 takano-ryou...@aist.go.jp --- 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

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 takano-ryou...@aist.go.jp --- I am trying to run OpenMP (i.e., multi-threaded) programs using Intel

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. Provided 3 things:

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 jan.kis...@siemens.com 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

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 m...@redhat.com 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.

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, +void

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 Williamsonalex.william...@redhat.com --- include/linux/wbtree.h | 55 lib/Makefile |3 + lib/wbtree.c | 170

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: [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 jan.kis...@siemens.com wrote: On 2011-02-23 15:38, Ryousei Takano wrote: This reverts commit c65827770b5e7282b5fb9da29c1de85ed08e816e Reasoning would belong here, not below the separator.

[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 glom...@redhat.com --- arch/x86/kvm/x86.c |1 + include/linux/kvm.h |1 +

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: 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? Any

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_device

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 chr...@sous-sol.org 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

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

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 la...@cn.fujitsu.com 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

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, Sheng Yang

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 Jiangshanla...@cn.fujitsu.com --- diff --git a/hmp-commands.hx b/hmp-commands.hx index ec1a4db..e763bf9 100644

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 chr...@sous-sol.org wrote: * James Neave (robo...@gmail.com) wrote: On Tue, Feb 22, 2011 at 1:51 AM, Chris Wright chr...@sous-sol.org wrote: * James Neave (robo...@gmail.com) wrote: Does anybody know the debug kernel switches for iommu? Two

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 robo...@gmail.com wrote: On Wed, Feb 23, 2011 at 12:11 AM, Chris Wright chr...@sous-sol.org wrote: * James Neave (robo...@gmail.com) wrote: On Tue, Feb 22, 2011 at 1:51 AM, Chris Wright chr...@sous-sol.org wrote: * James Neave (robo...@gmail.com)

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 external kvm module

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 anth...@codemonkey.ws 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

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 just to see

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

2011-02-23 Thread Juan Quintela
Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp 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 tamura.yoshi...@lab.ntt.co.jp --- migration.c |2 +- savevm.c| 24

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

2011-02-23 Thread Juan Quintela
Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp 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 tamura.yoshi...@lab.ntt.co.jp --- vl.c | 13 + 1 files changed, 9

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

2011-02-23 Thread Juan Quintela
Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp 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

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 ho...@verge.net.au 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

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

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 jan.kis...@siemens.com wrote: On 2011-02-23 16:53, Ryousei Takano wrote: Hi Jan, On Wed, Feb 23, 2011 at 11:47 PM, Jan Kiszka jan.kis...@siemens.com wrote: On 2011-02-23 15:38, Ryousei Takano wrote: This reverts

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

2011-02-23 Thread Yoshiaki Tamura
Juan Quintela wrote: Yoshiaki Tamuratamura.yoshi...@lab.ntt.co.jp wrote: Introduce skip_header parameter to qemu_loadvm_state() so that it can be called iteratively without reading the header. Signed-off-by: Yoshiaki Tamuratamura.yoshi...@lab.ntt.co.jp --- migration.c |2 +- savevm.c

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

2011-02-23 Thread Yoshiaki Tamura
Juan Quintela wrote: Yoshiaki Tamuratamura.yoshi...@lab.ntt.co.jp 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 Tamuratamura.yoshi...@lab.ntt.co.jp --- vl.c | 13 +

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

2011-02-23 Thread Yoshiaki Tamura
Juan Quintela wrote: Yoshiaki Tamuratamura.yoshi...@lab.ntt.co.jp 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.

[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 tamura.yoshi...@lab.ntt.co.jp --- savevm.c | 45 +++-- 1 files

[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) -

[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

[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 tamura.yoshi...@lab.ntt.co.jp Signed-off-by:

[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 tamura.yoshi...@lab.ntt.co.jp --- hw/hw.h |5 ++ savevm.c | 150 ++ 2 files changed, 155 insertions(+), 0 deletions(-) diff

[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 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 04/18] qemu-char: export socket_set_nodelay().

2011-02-23 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 bd4e944..c4f1940 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2111,7 +2111,7 @@ static

[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 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 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

[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 tamura.yoshi...@lab.ntt.co.jp Signed-off-by:

[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:protocol:address:port Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Acked-by: Paolo Bonzini

[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 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 d611100..e192eec 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@

[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 tamura.yoshi...@lab.ntt.co.jp --- vl.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/vl.c b/vl.c

[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 tamura.yoshi...@lab.ntt.co.jp ---

[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.

[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 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 ec4745d..724b549 100644 --- a/net.c +++ b/net.c @@ -36,6 +36,7 @@ #include

[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 tamura.yoshi...@lab.ntt.co.jp Acked-by: Kevin Wolf kw...@redhat.com --- block.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git

[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 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 0bda77d..0ea1fb7 100644 --- a/vl.c +++ b/vl.c @@ -162,6 +162,7 @@ int main(int argc, char **argv) #include qemu-queue.h #include

[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 tamura.yoshi...@lab.ntt.co.jp --- migration-tcp.c | 15

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

2011-02-23 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: On Mon, 21 Feb 2011 09:37:57 +0800 Lai Jiangshan la...@cn.fujitsu.com 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

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 jan.kis...@siemens.com wrote: On 2011-02-23 16:53, Ryousei Takano wrote: Hi Jan, On Wed, Feb 23, 2011 at 11:47 PM, Jan Kiszka jan.kis...@siemens.com wrote: On 2011-02-23