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

2010-12-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 8118194..0f57c95 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

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

2010-12-23 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 --- savevm.c | 88 ++ sysemu.h |2 + 2 files changed, 90 inser

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

2010-12-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 9ba5be2..1176124 100644 --- a/net.c +++ b/net.c @@ -36,6 +36,7 @@ #include "qemu-common.h" #include "qe

[Qemu-devel] [PATCH 09/19] Introduce event-tap.

2010-12-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

[Qemu-devel] [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.

2010-12-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. Signed-off

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

2010-12-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 | 148 ++ 2 files changed, 153 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h ind

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

2010-12-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

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

2010-12-23 Thread Yoshiaki Tamura
event-tap function is called only when it is on, and requests sent from device emulators. Signed-off-by: Yoshiaki Tamura --- block.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 9b5e9e1..39009fc 100644 --- a/block.c +++ b/block.c @@

[Qemu-devel] [PATCH 06/19] virtio: update last_avail_idx when inuse is decreased.

2010-12-23 Thread Yoshiaki Tamura
virtio save/load is currently sending last_avail_idx, but inuse isn't. This causes inconsistent state when using Kemari which replays outstanding requests on the secondary. By letting last_avail_idx to be updated after inuse is decreased, it would be possible to replay the outstanding requests. N

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

2010-12-23 Thread Yoshiaki Tamura
The option looks like, -incoming ::,ft_mode Signed-off-by: Yoshiaki Tamura --- migration.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/migration.c b/migration.c index 730af12..32fef86 100644 --- a/migration.c +++ b/migration.c @@ -42,9 +42,16 @@ static Migrat

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

2010-12-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 768dbf4..8118194 100644 ---

[Qemu-devel] [PATCH v11 5/5] pcie/aer: use fw device path as fallback for aer injection command

2010-12-23 Thread Isaku Yamahata
pcie_aer_inject command: When qdev id failed, try fw device path as fallback. Signed-off-by: Isaku Yamahata --- hmp-commands.hx |7 ++- hw/pcie_aer.c | 12 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 8d84ddc..92

[Qemu-devel] [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-23 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to start FT migration mode (Kemari). Signed-off-by: Yoshiaki Tamura --- hmp-commands.hx |7 --- migration.c |3 +++ qmp-commands.hx |7 --- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/hm

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

2010-12-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

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

2010-12-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 edc9ad6..737d347 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2116,7 +2116,7 @@ static void tcp_chr_telnet_init(int

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

2010-12-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 49c28b1..4a171cc 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@ #include "osdep.h" #include "kvm.h

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

2010-12-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

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

2010-12-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(-)

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

2010-12-23 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 --- migration-tcp.c | 15 +++ migration.c | 12 migration.h |3 +++ 3 files changed, 30 insertions(+), 0 de

Re: [Qemu-devel] [PATCH 00/19] Kemari for KVM v0.2.1

2010-12-23 Thread Yoshiaki Tamura
Oops. Some patches were missing. Will resend. Yoshi 2010/12/24 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 9ed5726c043958359b0f1fa44ab3e4f25f9d9a47. > > The changes

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

2010-12-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 77bfb58..468ec58 100644 --- a/hw/

[Qemu-devel] [PATCH v11 1/5] qdev: export qdev_find_recursive() for later use

2010-12-23 Thread Isaku Yamahata
This patch exports qdev_find_recursive() for later use. Signed-off-by: Isaku Yamahata --- hw/qdev.c |2 +- hw/qdev.h |2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 4747c67..31eb464 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -548,7 +548,7

[Qemu-devel] [PATCH 00/19] Kemari for KVM v0.2.1

2010-12-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 9ed5726c043958359b0f1fa44ab3e4f25f9d9a47. The changes from v0.2 -> v0.2.1 are: - Move event-tap to net/block layer and use stubs (Blue, Paul, MST, K

[Qemu-devel] [PATCH 07/17] Introduce fault tolerant VM transaction QEMUFile and ft_mode.

2010-12-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

[Qemu-devel] [PATCH v11 3/5] pcie/aer: glue aer error injection into qemu monitor

2010-12-23 Thread Isaku Yamahata
introduce pcie_aer_inject_error command. Signed-off-by: Isaku Yamahata --- Change v10 -> v11: - use qdev id Changes v9 -> v10: - use fw device path - error path - pci-stub.c for CONFIG_PCI=n Changes v8 -> v9: - revise error code Changes v7 -> v8: - use domain:slot.func:slot.func...:slot.func i

[Qemu-devel] [PATCH v11 2/5] pci: introduce a helper function to convert qdev id to PCIDevice

2010-12-23 Thread Isaku Yamahata
This patch introduce a helper function to get PCIDevice from qdev id. This function will be used later. Signed-off-by: Isaku Yamahata --- hw/pci.c | 35 +++ hw/pci.h |1 + 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c in

[Qemu-devel] [PATCH v11 0/5] pcie/aer: glue inject aer error into hmp

2010-12-23 Thread Isaku Yamahata
This patch series introduces hmp command to inject aer error. Now fw device path is used to specify pci function. Changes v10 -> v11: - use qdev id and use fw dev path as fallback Isaku Yamahata (5): qdev: export qdev_find_recursive() for later use pci: introduce a helper function to convert

[Qemu-devel] [PATCH 09/17] Introduce event-tap.

2010-12-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

[Qemu-devel] [PATCH 02/17] Introduce read() to FdMigrationState.

2010-12-23 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 --- migration-tcp.c | 15 +++ migration.c | 12 migration.h |3 +++ 3 files changed, 30 insertions(+), 0 de

[Qemu-devel] [PATCH v11 4/5] pci: introduce a parser for fw device path to pci device

2010-12-23 Thread Isaku Yamahata
Introduce a function to parse fw device path to pci device. the format is /p...@{, }/[]@,/.../[]@, = "i" = = slot number in hex = func number in hex Signed-off-by: Isaku Yamahata --- hw/pci.c | 129 ++ hw/pci.h |2 + 2 files

[Qemu-devel] [PATCH 03/17] Introduce skip_header parameter to qemu_loadvm_state().

2010-12-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(-)

[Qemu-devel] [PATCH 05/17] vl.c: add deleted flag for deleting the handler.

2010-12-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 768dbf4..8118194 100644 ---

[Qemu-devel] [PATCH 06/17] virtio: update last_avail_idx when inuse is decreased.

2010-12-23 Thread Yoshiaki Tamura
virtio save/load is currently sending last_avail_idx, but inuse isn't. This causes inconsistent state when using Kemari which replays outstanding requests on the secondary. By letting last_avail_idx to be updated after inuse is decreased, it would be possible to replay the outstanding requests. N

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

2010-12-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

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

2010-12-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 9ba5be2..1176124 100644 --- a/net.c +++ b/net.c @@ -36,6 +36,7 @@ #include "qemu-common.h" #include "qe

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

2010-12-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 8118194..0f57c95 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

[Qemu-devel] [PATCH 01/17] Make QEMUFile buf expandable, and introduce qemu_realloc_buffer() and qemu_clear_buffer().

2010-12-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 77bfb58..468ec58 100644 --- a/hw/

[Qemu-devel] [PATCH 08/17] savevm: introduce util functions to control ft_trans_file from savevm layer.

2010-12-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 | 148 ++ 2 files changed, 153 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h ind

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

2010-12-23 Thread Yoshiaki Tamura
event-tap function is called only when it is on, and requests sent from device emulators. Signed-off-by: Yoshiaki Tamura --- block.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 9b5e9e1..39009fc 100644 --- a/block.c +++ b/block.c @@

[Qemu-devel] [PATCH 12/17] Insert event_tap_mmio() to cpu_physical_memory_rw() in exec.c.

2010-12-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 49c28b1..4a171cc 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@ #include "osdep.h" #include "kvm.h

[Qemu-devel] [PATCH 11/17] ioport: insert event_tap_ioport() to ioport_write().

2010-12-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

[Qemu-devel] [PATCH 00/19] Kemari for KVM v0.2.1

2010-12-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 9ed5726c043958359b0f1fa44ab3e4f25f9d9a47. The changes from v0.2 -> v0.2.1 are: - Move event-tap to net/block layer and use stubs (Blue, Paul, MST, K

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

2010-12-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. Signed-off

[Qemu-devel] [PATCH 15/17] savevm: introduce qemu_savevm_trans_{begin, commit}.

2010-12-23 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 --- savevm.c | 88 ++ sysemu.h |2 + 2 files changed, 90 inser

[Qemu-devel] [PATCH 04/17] qemu-char: export socket_set_nodelay().

2010-12-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 edc9ad6..737d347 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2116,7 +2116,7 @@ static void tcp_chr_telnet_init(int

[Qemu-devel] Re: [PATCH 2/3] pci: introduce a parser for fw device path to pci device

2010-12-23 Thread Isaku Yamahata
On Wed, Dec 22, 2010 at 02:03:55PM +0200, Michael S. Tsirkin wrote: > On Wed, Dec 22, 2010 at 08:36:40PM +0900, Isaku Yamahata wrote: > > On Wed, Dec 22, 2010 at 01:04:43PM +0200, Michael S. Tsirkin wrote: > > > On Wed, Dec 22, 2010 at 07:54:49PM +0900, Isaku Yamahata wrote: > > > > Introduce a fun

[Qemu-devel] [Bug 604872] Re: qemu-system-arm segfaults emulating versatile machine after running debootstrap --second-stage inside vm

2010-12-23 Thread Peter Maydell
I've analysed this segfault. The problem is that we're not correctly taking account of the IT state on entry to a Thumb translation block if we're retranslating it for cpu_restore_state(). The offending TB here is: 0x0003dc00: movle r2, #0 0x0003dc02: ldrr1, [pc, #644] (0x3de88) 0x

Re: [Qemu-devel] Asynchronously Mirroring a Virtual Machine

2010-12-23 Thread Stefan Hajnoczi
On Thu, Dec 23, 2010 at 5:34 PM, Tomer Margalit wrote: > Thanks, I will check it out. > Do you know of any documentation for the migration? (In case I need to look > at it). I'm not sure what you mean - commands for live migration or internals of how migration works? Migration: 1. Start QEMU on

[Qemu-devel] LinkedIn Messages, 12/23/2010

2010-12-23 Thread LinkedIn Communication
LinkedIn REMINDERS: Invitation Reminders: * View Invitation from vishnumurthy prabhu http://www.linkedin.com/e/-kkb1ec-gi2a5dgq-56/qTMmi8QEI_f3FNXUkL1mvZgy00BGYniwg3/blk/I69963066_11/0NclYSdz0PdzAVdAALqnpPbOYWrSlI/svi/ * View Invitation from Anbang Rua

Re: [Qemu-devel] Re: [PATCH] scsi-generic: bugfixes for 'SCSIRequest' conversion

2010-12-23 Thread Nicholas A. Bellinger
On Tue, 2010-12-21 at 12:49 +1100, Benjamin Herrenschmidt wrote: > > Yep, so it appears that commit 89c0f6438d16 did introduce the bogus > > 'double complete' in scsi_read_complete, which I think was intended to > > handle residual counts for TYPE_TYPE... > > > > /* Cancel a pending data transfer

Re: [Qemu-devel] checking the number of target cpu cycles or instructions executed

2010-12-23 Thread Stefano Bonifazi
On 12/23/2010 06:42 PM, Andreas Färber wrote: Hi, Am 22.12.2010 um 13:19 schrieb Stefano Bonifazi: how can I check the number of target cpu cycles or target instructions executed inside qemu-user (i.e. qemu-ppc)? Is there any variable I can inspect for such informations? QEMU's emulation is

Re: [Qemu-devel] [RFC][PATCH 0/3] Let RTC follow backward jumps of host clock immediately

2010-12-23 Thread Zachary Amsden
On 12/17/2010 04:58 AM, Jan Kiszka wrote: By default, we base the mc146818 RTC on the host clock (CLOCK_REALTIME). This works fine if only the frequency of the host clock is tuned (e.g. by NTP) or if it is set to a future time. However, if the host is tuned backward, e.g. because NTP obtained the

Re: [Qemu-devel] checking the number of target cpu cycles or instructions executed

2010-12-23 Thread Andreas Färber
Hi, Am 22.12.2010 um 13:19 schrieb Stefano Bonifazi: how can I check the number of target cpu cycles or target instructions executed inside qemu-user (i.e. qemu-ppc)? Is there any variable I can inspect for such informations? QEMU's emulation is not cycle-accurate, so you will not be able t

Re: [Qemu-devel] Asynchronously Mirroring a Virtual Machine

2010-12-23 Thread Tomer Margalit
Thanks, I will check it out. Do you know of any documentation for the migration? (In case I need to look at it). Thanks, Tomer On Thu, Dec 23, 2010 at 4:34 AM, Stefan Hajnoczi wrote: > On Wed, Dec 22, 2010 at 12:43 PM, Tomer Margalit > wrote: > > What I would like to add to it is the ability

[Qemu-devel] [PATCH 7/8] pl080: Implement save/restore

2010-12-23 Thread Peter Maydell
Signed-off-by: Peter Maydell --- hw/pl080.c | 58 +++--- 1 files changed, 55 insertions(+), 3 deletions(-) diff --git a/hw/pl080.c b/hw/pl080.c index 1a3e06c..901f04a 100644 --- a/hw/pl080.c +++ b/hw/pl080.c @@ -52,6 +52,43 @@ typedef struct

[Qemu-devel] [PATCH 0/8] Add save/restore support to ARM versatilepb devices

2010-12-23 Thread Peter Maydell
This patchset adds save/restore support to the devices used by the ARM versatilepb board which didn't already support it. I did this in line with docs/migration.txt, and it seems to work OK. I'd appreciate some review from somebody with a better grasp of the APIs, though :-) In particular, am I sa

[Qemu-devel] [PATCH 6/8] pl110: Implement save/restore

2010-12-23 Thread Peter Maydell
Signed-off-by: Peter Maydell --- hw/pl110.c | 44 1 files changed, 40 insertions(+), 4 deletions(-) diff --git a/hw/pl110.c b/hw/pl110.c index a4adb63..06d2dfa 100644 --- a/hw/pl110.c +++ b/hw/pl110.c @@ -48,6 +48,28 @@ typedef struct { qemu_ir

[Qemu-devel] [PATCH 5/8] pl031: Implement save/restore

2010-12-23 Thread Peter Maydell
Signed-off-by: Peter Maydell --- hw/pl031.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/hw/pl031.c b/hw/pl031.c index e3700c1..c488f69 100644 --- a/hw/pl031.c +++ b/hw/pl031.c @@ -44,6 +44,21 @@ typedef struct { uint32_t is; } pl031_stat

Re: [Qemu-devel] SLIRP's DNS problem

2010-12-23 Thread Ireneusz Szcześniak
Thanks for your interest. Mulyadi Santosa wrote: The installer complains that a DNS server is missing, but it seems that the DHCP also doesn't provide a default gateway. what if you specificly mention the network type like below: qemu-kvm -cdrom centos-netinstall -net nic,model=e1000 -net us

[Qemu-devel] [PATCH 4/8] pl050: Implement save/restore

2010-12-23 Thread Peter Maydell
Signed-off-by: Peter Maydell --- hw/pl050.c | 35 ++- 1 files changed, 30 insertions(+), 5 deletions(-) diff --git a/hw/pl050.c b/hw/pl050.c index 0573839..b155cc0 100644 --- a/hw/pl050.c +++ b/hw/pl050.c @@ -21,6 +21,20 @@ typedef struct { int is_mouse; }

[Qemu-devel] [PATCH 2/8] vpb_sic: Implement save/restore

2010-12-23 Thread Peter Maydell
Signed-off-by: Peter Maydell --- hw/versatilepb.c | 24 +--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/hw/versatilepb.c b/hw/versatilepb.c index be758e4..9f1bfcf 100644 --- a/hw/versatilepb.c +++ b/hw/versatilepb.c @@ -30,6 +30,18 @@ typedef struct vpb_

[Qemu-devel] [PATCH 1/8] pl190: Implement save/restore

2010-12-23 Thread Peter Maydell
Signed-off-by: Peter Maydell --- hw/pl190.c | 36 1 files changed, 32 insertions(+), 4 deletions(-) diff --git a/hw/pl190.c b/hw/pl190.c index e04e6c1..17c279b 100644 --- a/hw/pl190.c +++ b/hw/pl190.c @@ -212,8 +212,9 @@ static CPUWriteMemoryFunc * const pl

[Qemu-devel] [PATCH 8/8] stc91c111: Implement save/restore

2010-12-23 Thread Peter Maydell
Signed-off-by: Peter Maydell --- hw/smc91c111.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/hw/smc91c111.c b/hw/smc91c111.c index fc714d7..dafea5c 100644 --- a/hw/smc91c111.c +++ b/hw/smc91c111.c @@ -46,6 +46,35 @@ typedef struct { i

[Qemu-devel] [PATCH 3/8] arm_sysctl: Implement save/restore

2010-12-23 Thread Peter Maydell
Signed-off-by: Peter Maydell --- hw/arm_sysctl.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index bd0664f..d8b062c 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -28,6 +28,22 @@ typedef struct { uint32_t

Re: [Qemu-devel] SLIRP's DNS problem

2010-12-23 Thread Mulyadi Santosa
Hi... On Thu, Dec 23, 2010 at 20:49, Irek Szczesniak wrote: > DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 > DHCPOFFER from 10.0.2.2 > DHCPREQUEST on eth0 to 255.255.255.255 port 67 > DHCPACK from 10.0.2.2 > bound to 10.0.2.15 -- renewal in 33026 seconds. > DHCPv4 eth0 - obtained le

[Qemu-devel] [PATCH] add event queueing to USB HID

2010-12-23 Thread Paolo Bonzini
The polling nature of the USB HID device makes it very hard to double click or drag while on a high-latency VNC connection. This patch, based on work done in the Xen qemu-dm tree by Ian Jackson, fixes this bug by adding an event queue to the device. The event queue associates each movement with t

Re: [Qemu-devel] [PATCH 0/2] ARM: fix commandline handling forsemihosted executables

2010-12-23 Thread Peter Maydell
Riku, did you want to pick this one up as a linux-user patch? Otherwise it's on my list of "patches which got no comments and will go into the next arm pull request" -- although that won't be until early next year and I expect 0.14 will have branched by then. -- PMM On 23 December 2010 12:58, Sch

[Qemu-devel] SLIRP's DNS problem

2010-12-23 Thread Irek Szczesniak
Hi, I have a problem with the SLIRP's DNS server. I built from sources QEMU v 0.13 on Linux debian 2.6.26-2-686 with gcc version 4.3.2 (Debian 4.3.2-1.1). When I don't pass any network options to QEMU, then I should get a user networking with SLIRP. According to the man page, QEMU should create

RE: [Qemu-devel] [PATCH 0/2] ARM: fix commandline handling forsemihosted executables

2010-12-23 Thread Schildbach, Wolfgang
Ping -- I have not seen any corresponding commit in the qemu master repository. Anthony, could you please consider this for inclusion into 0.14? Thanks, - Wolfgang -Original Message- From: qemu-devel-bounces+wschi=dolby@nongnu.org [mailto:qemu-devel-bounces+wschi=dolby@nongnu.org

[Qemu-devel] [PATCH 7/8] remove text_console_opts

2010-12-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- console.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/console.c b/console.c index 60b80ee..57d6eb5 100644 --- a/console.c +++ b/console.c @@ -1437,7 +1437,6 @@ void console_color_init(DisplayState *ds) static int n_text_conso

[Qemu-devel] [PATCH 6/8] add set_echo implementation for text consoles

2010-12-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- console.c | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/console.c b/console.c index 42c2ee3..60b80ee 100644 --- a/console.c +++ b/console.c @@ -137,6 +137,7 @@ struct TextConsole { TextAttributes t_attrib; /* curren

[Qemu-devel] [PATCH 8/8] fix QemuOpts leak

2010-12-23 Thread Paolo Bonzini
Now that no backend's open function saves the passed QemuOpts, fix a leak in the qemu_chr_open backwards-compatible parser. Signed-off-by: Paolo Bonzini --- qemu-char.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 7b61a62..b99b77b 10064

[Qemu-devel] [PATCH 5/8] create TextConsole together with the CharDeviceState

2010-12-23 Thread Paolo Bonzini
A nicer solution would be to get rid of the opaque pointer and use containment, but it would also be a much bigger patch. Signed-off-by: Paolo Bonzini --- console.c| 56 +++- 2 files changed, 32 insertions(+), 26 deletions(-) diff --git

[Qemu-devel] [PATCH 4/8] add set_echo implementation for qemu_chr_stdio

2010-12-23 Thread Paolo Bonzini
This also requires moving QemuOpts out of term_init. Clearing ISIG is independent of whether echo is enabled or disabled. Signed-off-by: Paolo Bonzini --- qemu-char.c | 26 -- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/qemu-char.c b/qemu-char.c in

[Qemu-devel] [PATCH 3/8] move atexit(term_exit) and O_NONBLOCK to qemu_chr_open_stdio

2010-12-23 Thread Paolo Bonzini
In the next patch, term_init will be changed to enable or disable echo at will. Move extraneous stuff out of it. Signed-off-by: Paolo Bonzini --- qemu-char.c | 18 -- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index e2a5e91..cc20f

[Qemu-devel] [PATCH 2/8] add qemu_chr_set_echo

2010-12-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- monitor.c |1 + qemu-char.c |7 +++ qemu-char.h |2 ++ 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 5d74fe3..7bb54b8 100644 --- a/monitor.c +++ b/monitor.c @@ -5004,6 +5004,7 @@ void monitor_init(Cha

[Qemu-devel] [PATCH 1/8] remove broken code for tty

2010-12-23 Thread Paolo Bonzini
This code is taking the settings for a serial port and moving it to fd 0 when qemu exits. This is likely just cut-and-paste, rip it. Signed-off-by: Paolo Bonzini --- qemu-char.c | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index ed

[Qemu-devel] [PATCH 0/8] make -qmp stdio usable

2010-12-23 Thread Paolo Bonzini
This patch series is a rewritten version of the patch to disable raw mode on the terminal when "-qmp stdio" is given on the command-line. The rewritten series has several advantages, including working for text consoles ("-qmp vc2") and especially working with -chardev/-mon without the need to add

[Qemu-devel] [PATCH v3 15/15] make trace options use autoconfy names

2010-12-23 Thread Paolo Bonzini
These are not in any release, so I am just renaming them. Signed-off-by: Paolo Bonzini --- configure |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index cd8a6e6..42f5daa 100755 --- a/configure +++ b/configure @@ -515,9 +515,9 @@ for opt do

[Qemu-devel] [PATCH v3 13/15] move --srcdir detection earlier

2010-12-23 Thread Paolo Bonzini
This will help getting config.guess and config.sub from the srcdir. Signed-off-by: Paolo Bonzini --- configure | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configure b/configure index b3f771b..d0fbcef 100755 --- a/configure +++ b/configure @@ -75,6 +75,7 @@

[Qemu-devel] [PATCH v3 11/15] move "ln -sf" emulation to a function

2010-12-23 Thread Paolo Bonzini
"ln -sf" does not really do anything more than "ln -s" on Solaris. Signed-off-by: Paolo Bonzini --- configure | 26 +++--- 1 files changed, 11 insertions(+), 15 deletions(-) diff --git a/configure b/configure index 959bc97..a9c0219 100755 --- a/configure +++ b/configure @@

[Qemu-devel] [PATCH v3 12/15] remove source_path_used

2010-12-23 Thread Paolo Bonzini
Not necessary since we use mkdir -p and from this patch test -f. Also, dirname returns "." if a path has no directory component, as is the case for "sh configure". Signed-off-by: Paolo Bonzini --- configure | 45 - 1 files changed, 16 insertions(+),

[Qemu-devel] [PATCH v3 09/15] do not default to non-prefixed pkg-config when cross compiling

2010-12-23 Thread Paolo Bonzini
This can still be requested with PKG_CONFIG=/path/to/pkg-config. Just do not use it as a default, and print a warning. Signed-off-by: Paolo Bonzini --- configure |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index aeda349..a9423b9 100755 --- a/

[Qemu-devel] [PATCH v3 07/15] provide portable HOST_LONG_BITS test

2010-12-23 Thread Paolo Bonzini
Do not hardcode the list of 64-bit CPUs. Use sizeof(void *) to compute it. Renaming it to HOST_LONG_BITS to HOST_POINTER_BITS is left for later. Signed-off-by: Paolo Bonzini --- configure | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/configure b/config

[Qemu-devel] [PATCH v3 08/15] fix spelling of $pkg_config, move default together with other cross tools

2010-12-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 34 +- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/configure b/configure index a3ff503..aeda349 100755 --- a/configure +++ b/configure @@ -209,6 +209,7 @@ objcopy="${cross_prefix}${OBJCOPY-objcopy}

[Qemu-devel] [PATCH v3 10/15] reorganize sdl-config tests

2010-12-23 Thread Paolo Bonzini
This also allows overriding it with SDL_CONFIG, and warning in suspicious cross-compilation scenarios. Signed-off-by: Paolo Bonzini --- configure | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/configure b/configure index a9423b9..959bc97 10075

[Qemu-devel] [PATCH v3 06/15] do not pass bogus $(SRC_PATH) include paths to cc during configure

2010-12-23 Thread Paolo Bonzini
Non-existent -I paths are dropped silently by the compiler, but still it is not polite to pass bogus options. Configure-time tests do not need any include files from the source path, so only include -I flags at make time (when they're properly expanded). Signed-off-by: Paolo Bonzini --- configu

[Qemu-devel] [PATCH v3 04/15] fix sparse support (?)

2010-12-23 Thread Paolo Bonzini
I didn't test with sparse, but the old code using += before a variable was set was wrong. Sparse support should probably be ripped out or redone, but this at least keeps some sanity. Signed-off-by: Paolo Bonzini --- configure | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-)

[Qemu-devel] [PATCH v3 05/15] test cc with the complete set of chosen flags

2010-12-23 Thread Paolo Bonzini
The "test the C compiler works ok" comes before a bunch of flags are added for --cpu or just depending on the host. It helps debugging if the test is done after these flags are (unconditionally) added. Signed-off-by: Paolo Bonzini --- configure | 50 +--

[Qemu-devel] [PATCH v3 02/15] default make and install to environment variables

2010-12-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/configure b/configure index 5ebae99..fdd6aed 100755 --- a/configure +++ b/configure @@ -79,8 +79,6 @@ audio_card_list="ac97 es1370 sb16 hda" audio_possible_cards

[Qemu-devel] [PATCH v3 03/15] move feature variables to the top

2010-12-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 164 ++-- 1 files changed, 82 insertions(+), 82 deletions(-) diff --git a/configure b/configure index fdd6aed..5237b6e 100755 --- a/configure +++ b/configure @@ -86,6 +86,88 @@ audio_pt_int=""

[Qemu-devel] [PATCH v3 14/15] remove HOST_CC mention from roms/{sea, vga}bios/config.mak

2010-12-23 Thread Paolo Bonzini
Not used in the submodules. Signed-off-by: Paolo Bonzini --- configure |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/configure b/configure index d0fbcef..cd8a6e6 100755 --- a/configure +++ b/configure @@ -3216,7 +3216,6 @@ for rom in seabios vgabios ; do echo "CPP

[Qemu-devel] [PATCH v3 00/15] preparation for autoconfy configure script

2010-12-23 Thread Paolo Bonzini
This is part two of the configure series. It does various miscellaneous changes to the configure script that make it possible to later handle an autoconfy command-line. The rest is left for after 0.14, unless the release takes much more than expected. v1->v2 misc comments addressed v2->v3 r

[Qemu-devel] [PATCH v3 01/15] default compilation tools to environment variables

2010-12-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 20 +++- 1 files changed, 7 insertions(+), 13 deletions(-) diff --git a/configure b/configure index 47e4cf0..5ebae99 100755 --- a/configure +++ b/configure @@ -74,19 +74,13 @@ interp_prefix="/usr/gnemul/qemu-%M" static="no" sparc_c

[Qemu-devel] Re: [PATCH] ahci: Fix cpu_physical_memory_unmap() argument ordering

2010-12-23 Thread Alexander Graf
On 23.12.2010, at 09:53, Stefan Hajnoczi wrote: > The len and is_write arguments to cpu_physical_memory_unmap() were > swapped. This patch changes calls to use the correct argument ordering. > > Signed-off-by: Stefan Hajnoczi Ouch :). Acked-by: Alexander Graf Alex

Re: [Qemu-devel] [PATCH 1/8] ahci: split ICH9 from core

2010-12-23 Thread Alexander Graf
Am 23.12.2010 um 09:23 schrieb Stefan Hajnoczi : > On Mon, Dec 20, 2010 at 9:13 PM, Alexander Graf wrote: >> From: Sebastian Herbszt >> >> There are multiple ahci devices out there. The currently implemented ich-9 >> is only one of the many. So let's split that one out into a separate file >>

[Qemu-devel] [PATCH] ahci: Fix cpu_physical_memory_unmap() argument ordering

2010-12-23 Thread Stefan Hajnoczi
The len and is_write arguments to cpu_physical_memory_unmap() were swapped. This patch changes calls to use the correct argument ordering. Signed-off-by: Stefan Hajnoczi --- This patch applies to agraf's ahci tree at git://repo.or.cz/qemu/ahci.git. hw/ide/ahci.c | 16 1 file

Re: [Qemu-devel] [PATCH 1/8] ahci: split ICH9 from core

2010-12-23 Thread Stefan Hajnoczi
On Mon, Dec 20, 2010 at 9:13 PM, Alexander Graf wrote: > From: Sebastian Herbszt > > There are multiple ahci devices out there. The currently implemented ich-9 > is only one of the many. So let's split that one out into a separate file > to stress the difference. > > Signed-off-by: Sebastian Herb