[Qemu-devel] [PATCH 03/15] Make simple io mem handler endian aware

2010-11-24 Thread Alexander Graf
As an alternative to the 3 individual handlers, there is also a simplified io mem hook function. To be consistent, let's add an endianness parameter there too. Signed-off-by: Alexander Graf --- hw/apb_pci.c |3 ++- hw/pci_host.c | 12 hw/unin_pci.c |6 -- rwhandler.c

[Qemu-devel] [PATCH 09/15] versatile_pci: Declare as little endian

2010-11-24 Thread Alexander Graf
This patch replaces explicit bswaps with endianness hints to the mmio layer. Signed-off-by: Alexander Graf --- hw/versatile_pci.c | 14 +- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/hw/versatile_pci.c b/hw/versatile_pci.c index 3baad96..cc8f9f8 100644 --- a/hw/

[Qemu-devel] [PATCH 11/15] openpic: Replace explicit byte swap with endian hints

2010-11-24 Thread Alexander Graf
This patch replaces explicit bswaps with endianness hints to the mmio layer. Signed-off-by: Alexander Graf --- hw/openpic.c | 23 ++- 1 files changed, 2 insertions(+), 21 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index 0e287bd..7b75d3f 100644 --- a/hw/openpic.c

[Qemu-devel] [PATCH 06/11] pci: add storage class for sata

2010-11-24 Thread Alexander Graf
This patch adds the storage sata class id. Signed-off-by: Alexander Graf --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index 82cba7e..ea3418c 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -15,6 +15,7 @@ #define PCI_CLAS

[Qemu-devel] [PATCH 02/11] ide: fix whitespace gap in ide_exec_cmd

2010-11-24 Thread Alexander Graf
Now that we have the function split out, we have to reindent it. In order to increase the readability of the actual functional change, this is split out. Signed-off-by: Alexander Graf --- hw/ide/core.c | 734 1 files changed, 367 insertio

[Qemu-devel] [PATCH 13/15] heathrow_pic: Declare as little endian

2010-11-24 Thread Alexander Graf
This patch replaces explicit bswaps with endianness hints to the mmio layer. Signed-off-by: Alexander Graf --- hw/heathrow_pic.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/hw/heathrow_pic.c b/hw/heathrow_pic.c index 390b63c..b19b754 100644 --- a/hw/heathrow_pic.c

[Qemu-devel] [PATCH 05/15] pci-host: Delegate bswap to mmio layer

2010-11-24 Thread Alexander Graf
The only reason we have bswap versions of the pci host code is that most pci host devices are little endian. The ppc e500 is the only odd one here, being big endian. So let's directly pass the endianness down to the mmio layer and not worry about it on the pci host layer. Signed-off-by: Alexander

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

2010-11-24 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 88997f9..8ef4760 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2116,7 +2116,7 @@ static void tcp_chr_telnet_init(int

[Qemu-devel] [PATCH 07/15] e1000: Make little endian

2010-11-24 Thread Alexander Graf
The e1000 has compatibility code to handle big endianness which makes it mandatory to be recompiled on different targets. With the generic mmio endianness solution, there's no need for that anymore. We just declare all mmio to be little endian and call it a day. Because we don't depend on the tar

[Qemu-devel] [PATCH 00/11] AHCI emulation support v5

2010-11-24 Thread Alexander Graf
This patch adds support for AHCI emulation. I have tested and verified it works in Linux, OpenBSD, Windows Vista and Windows 7. This AHCI emulation supports NCQ, so multiple read or write requests can be outstanding at the same time. The code is however not fully optimized yet. I'm fairly sure tha

[Qemu-devel] [PATCH 04/15] dbdma: Make little endian

2010-11-24 Thread Alexander Graf
The device is only used on big endian systems, but always byte swaps. That's a very good indicator that it's actually a little endian device ;-). Signed-off-by: Alexander Graf --- hw/mac_dbdma.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/hw/mac_dbdma.c b/hw/mac_

[Qemu-devel] [PATCH 05/21] virtio: modify save/load handler to handle inuse varialble.

2010-11-24 Thread Yoshiaki Tamura
Modify inuse type to uint16_t, let save/load to handle, and revert last_avail_idx with inuse if there are outstanding emulation. Signed-off-by: Yoshiaki Tamura --- hw/virtio.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c index 849a60f.

[Qemu-devel] [PATCH 04/11] ide: add DMA hooks to bus ops

2010-11-24 Thread Alexander Graf
For DMA operations, we need to hook into even more IDE functionality. This patch adds the respective hooking points, allowing us to handle SG lists ourselves in the AHCI code. Signed-off-by: Roland Elek Signed-off-by: Alexander Graf --- v1 -> v2: - make dma hooks explicit by putting them i

[Qemu-devel] [PATCH 11/11] ide: move pata specific parts to pata.c

2010-11-24 Thread Alexander Graf
Due to popular request, this patch moves pieces that are successfully identified as PATA only to a new file called pata.c. Signed-off-by: Alexander Graf --- Makefile.objs |2 +- hw/ide/core.c | 144 +-- hw/ide/internal.h |3 + hw/ide/pata.

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

2010-11-24 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 db9ff55..fd8823e 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@ #include "osdep.h" #include "kvm.h

[Qemu-devel] [PATCH 07/11] pci: add ich7 pci id

2010-11-24 Thread Alexander Graf
We need a PCI ID for our new AHCI adapter. I just picked an ICH-7M because that's the one built into the first Macbooks. This patch adds a PCI ID define for an ICH-7M AHCI adapter. Signed-off-by: Alexander Graf --- v3 -> v4: - add ICH7 instead of ICH7M (herbszt) v4 -> v5: - rename to IC

[Qemu-devel] [PATCH 09/11] ahci: add -drive support

2010-11-24 Thread Alexander Graf
We need to be able to spawn new AHCI drives, so let's add AHCI support to the -drive option. Signed-off-by: Alexander Graf --- blockdev.c|6 +- blockdev.h|1 + qemu-common.h |2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/blockdev.c b/blockdev.c inde

[Qemu-devel] [PATCH 10/11] ahci: spawn controller on demand

2010-11-24 Thread Alexander Graf
When we add a device using -drive to the guest, we also need to create a new SATA bus to handle the device. This patch adds a function call that every machine that likes to have IF_SATA support can call to get full device creation by keeping the actual qdev code clean. Signed-off-by: Alexander Gra

[Qemu-devel] [PATCH 19/21] 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-11-24 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 16/21] e1000: replace qemu_send_packet() with qemu_send_packet_proxy().

2010-11-24 Thread Yoshiaki Tamura
Replace replace qemu_send_packet() with qemu_send_packet_proxy() to let event-tap capture events from e1000. Signed-off-by: Yoshiaki Tamura --- hw/e1000.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index 7811699..51a35ec 100644 --- a/hw/e1

[Qemu-devel] [PATCH 01/11] ide: split ide command interpretation off

2010-11-24 Thread Alexander Graf
The ATA command interpretation code can be used for PATA and SATA interfaces alike. So let's split it out into a separate function. Signed-off-by: Alexander Graf --- hw/ide/core.c | 20 ++-- hw/ide/internal.h |2 ++ 2 files changed, 16 insertions(+), 6 deletions(-) dif

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

2010-11-24 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 01/21] Make QEMUFile buf expandable, and introduce qemu_realloc_buffer() and qemu_clear_buffer().

2010-11-24 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 | 21 - 2 files changed, 22 insertions(+), 1 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 9d2cfc2..b67f504 100644 --- a/hw

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

2010-11-24 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 05/11] ide: add ncq identify data for ahci sata drives

2010-11-24 Thread Alexander Graf
From: Roland Elek I modified ide_identify() to include the zero-based queue length value in word 75, and set bit 8 in word 76 to signal NCQ support in the identify data for AHCI SATA drives. Signed-off-by: Roland Elek --- hw/ide/core.c |7 +++ hw/ide/internal.h |2 ++ 2 files c

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

2010-11-24 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 06/21] vl: add a tmp pointer so that a handler can delete the entry to which it belongs.

2010-11-24 Thread Yoshiaki Tamura
By copying the next entry to a tmp pointer, qemu_del_vm_change_state_handler() can be called in the handler. Signed-off-by: Yoshiaki Tamura --- vl.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 805e11f..6b6aec0 100644 --- a/vl.c +++ b/vl.c @@ -10

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

2010-11-24 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 08/21] savevm: introduce util functions to control ft_trans_file from savevm layer.

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

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

2010-11-24 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 21/21] migration: add a parser to accept FT migration incoming mode.

2010-11-24 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 f0cfa37..58f1158 100644 --- a/migration.c +++ b/migration.c @@ -42,9 +42,16 @@ static Migrat

[Qemu-devel] [PATCH 13/21] dma-helpers: replace bdrv_aio_writev() with bdrv_aio_writev_proxy().

2010-11-24 Thread Yoshiaki Tamura
Replace bdrv_aio_writev() with bdrv_aio_writev_proxy() to let event-tap capture events from dma-helpers. Signed-off-by: Yoshiaki Tamura --- dma-helpers.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dma-helpers.c b/dma-helpers.c index 712ed89..8ab2c26 100644 --- a/

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

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

2010-11-24 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 6b6aec0..ea6fe71 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 17/21] savevm: introduce qemu_savevm_trans_{begin, commit}.

2010-11-24 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 00/21] Kemari for KVM 0.2

2010-11-24 Thread Yoshiaki Tamura
Hi, This patch series is a revised version of Kemari for KVM, which applied comments for the previous post and KVM Forum 2010. The current code is based on qemu.git f711df67d611e4762966a249742a5f7499e19f99. For general information about Kemari, I've made a wiki page at qemu.org. http://wiki.qem

[Qemu-devel] [PATCH 14/21] virtio-blk: replace bdrv_aio_multiwrite() with bdrv_aio_multiwrite_proxy().

2010-11-24 Thread Yoshiaki Tamura
Replace replace bdrv_aio_multiwrite() with bdrv_aio_multiwrite_proxy() to let event-tap capture events from virtio-blk. Signed-off-by: Yoshiaki Tamura --- hw/virtio-blk.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index e5f9b27..aa

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

2010-11-24 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 15/21] virtio-net: replace qemu_sendv_packet_async() with qemu_sendv_packet_async_proxy().

2010-11-24 Thread Yoshiaki Tamura
Replace replace qemu_sendv_packet_async() with qemu_sendv_packet_async_proxy() to let event-tap capture events from virtio-net. Signed-off-by: Yoshiaki Tamura --- hw/virtio-net.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 1

Re: [Qemu-devel] [PATCH 1/1] iscsi: add iSCSI block device support

2010-11-24 Thread ronnie sahlberg
Nicholas, below. On Thu, Nov 25, 2010 at 3:32 PM, Nicholas A. Bellinger wrote: > But existing code aside, I think having a small userspace iSCSI > initiator built into QEMU that 'just works' across all host environments > would be a pretty useful thing, even if the scalibility / scope is > limit

Re: [Qemu-devel] [PATCH 1/1] iscsi: add iSCSI block device support

2010-11-24 Thread Nicholas A. Bellinger
On Wed, 2010-11-24 at 19:14 +, Stefan Hajnoczi wrote: > On Wed, Nov 24, 2010 at 5:04 PM, Christoph Hellwig wrote: > > Do you have any performance numbers showing why the addition of the > > code is nessecary over just using the kernel iscsi initiator? Which > > btw, is a lot more flexible as

Re: [Qemu-devel] [PATCH 1/5] block: Add top level BSG support

2010-11-24 Thread Nicholas A. Bellinger
On Wed, 2010-11-24 at 17:48 +0100, Christoph Hellwig wrote: > Nick, > > can we wait a bit with this series? With the threadlets currently > pending for inclusion I can get my rewrite of the generic-generic > to not abuse the qemu block layer out of the closet again, which > should simplify a lot

Re: [Qemu-devel] Re: [PATCH 0/5]

2010-11-24 Thread FUJITA Tomonori
On Wed, 24 Nov 2010 13:38:59 + Stefan Hajnoczi wrote: > > This series adds rebased support for the hw/scsi-bsg.c backstore for > > scsi-bus > > compatible HBA emulation in QEMU-KVM on Linux hosts supporting the BSG > > driver > > against current mainline qemu-kvm.git/master code. > > I don

[Qemu-devel] helper qemu-0.13.0 make error

2010-11-24 Thread ly
hi everyone i try to make qemu-0.13.0 ./configure --target-list=i386-linux-user make the report :Makefile:84: *** missing `endif'. Stop. my gcc version :gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) thanks

[Qemu-devel] [PATCH v2] correct migrate_set_speed's args_type

2010-11-24 Thread Wen Congyang
The args_type of migrate_set_speed in qmp-commands.hx is wrong. When we set migrate speed by json, qemu will be core dumped. This bug was caused by 07de3e60b05 and hence affects master only. Signed-off-by: Wen Congyang --- qmp-commands.hx |2 +- 1 files changed, 1 insertions(+), 1 deletion

[Qemu-devel] [Bug 427612] Re: kvm sends caps lock key up event twice

2010-11-24 Thread Serge Hallyn
** Changed in: qemu-kvm (Ubuntu) Assignee: Serge Hallyn (serge-hallyn) => (unassigned) -- kvm sends caps lock key up event twice https://bugs.launchpad.net/bugs/427612 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU:

[Qemu-devel] [PATCH 4/4] cpu model corrections/updates: add verbose config file handling

2010-11-24 Thread john cooper
Failure by qemu to open a default config file isn't cause to error exit -- it just quietly continues on. After puzzling issues with otherwise opaque config file locations and startup handling numerous times, some help from qemu seemed justified. The prior version of this patch overloaded "-readc

[Qemu-devel] [PATCH 2/4] cpu model corrections/updates: add kvm_early_init_vcpu()

2010-11-24 Thread john cooper
Allow an optional qemu_early_init_vcpu() such that kvm_arch_get_supported_cpuid() can be used from cpu_x86_register(). Without this minimal setup kvm_arch_get_supported_cpuid() gags kvm_ioctl() via passing a NULL initialized KVMState *. Signed-off-by: john cooper --- diff --git a/cpus.c b/cpus.

[Qemu-devel] [PATCH 3/4] cpu model corrections/updates: support kvm emulated flags

2010-11-24 Thread john cooper
Add kvm emulated x2apic flag to config defined cpu models and general support for such hypervisor emulated flags. In addition to checking user request flags against the host we also selectively check against kvm for emulated flags. Signed-off-by: john cooper --- diff --git a/hw/pc.c b/hw/pc.c i

[Qemu-devel] [PATCH 1/4] cpu model corrections/updates: fix Intel "model" fields

2010-11-24 Thread john cooper
Correct archaic CPU model "model" field for Intel CPUs. The old "model" values caused two known problems: - Skype crashes on a winxp guest if model < 6, due to syscall vs. sysenter confusion. - 32 bit windows doesn't enable MSI support if model < 13. After consulting wi

[Qemu-devel] [PATCH 0/4] cpu model corrections/updates

2010-11-24 Thread john cooper
[Resend of series which has been updated to apply to the current tree. Associated discussion may be found in the mail list archives.] This series is a synopsis of several patches correcting problems found during use and test of the cpu model config definitions and usability in general. Please re

[Qemu-devel] [PATCH] Fix commandline handling for ARM semihosted executables, on Linux and BSD hosts

2010-11-24 Thread Schildbach, Wolfgang
This reuses the commandline copy setup in user space by loader_build_argptr() and fixes https://bugs.launchpad.net/qemu/+bug/673613 . Signed-off-by: Wolfgang Schildbach --- arm-semi.c | 79 +-- bsd-user/bsdload.c |2 - bsd-user/qe

RE: [Qemu-devel] [PATCH] Fix commandline handling for ARM semihosted executables, on Linux and BSD hosts

2010-11-24 Thread Schildbach, Wolfgang
OK, I declare defeat :-) I'll followup with a patch that special-cases an empty command line. - Wolfgang -Original Message- From: Peter Maydell [mailto:peter.mayd...@linaro.org] Sent: Wednesday, November 24, 2010 1:53 PM To: Schildbach, Wolfgang Cc: qemu-devel@nongnu.org Subject: Re:

[Qemu-devel] [Bug 427612] Re: kvm sends caps lock key up event twice

2010-11-24 Thread Benjamin Drung
Attached a new version of my patch. You find two branches linked to this bug for maverick and natty. The patch sets SDL_DISABLE_LOCK_KEYS and get rid of the complete workaround in qemu-kvm. This requires SDL >= 1.2.14. Stefan Weil wrote: >The patch might fix part of the problem, but there remain m

[Qemu-devel] [PULL] More format checking

2010-11-24 Thread Stefan Weil
Hello, with these patches, hopefully all functions with printf like arguments use gcc's format checking, so the TODO comment in HACKING can be removed. The patch series was tested with a default build configuration on linux and windows hosts (including some cross compilations for arm, mips and

[Qemu-devel] [Bug 427612] Re: kvm sends caps lock key up event twice

2010-11-24 Thread Launchpad Bug Tracker
** Branch linked: lp:~bdrung/qemu-kvm/caps-lock-key-up-event.maverick -- kvm sends caps lock key up event twice https://bugs.launchpad.net/bugs/427612 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Status in “libsdl

[Qemu-devel] [Bug 427612] Re: kvm sends caps lock key up event twice

2010-11-24 Thread Benjamin Drung
** Also affects: libsdl1.2 (Ubuntu Maverick) Importance: Undecided Status: New ** Also affects: qemu-kvm (Ubuntu Maverick) Importance: Undecided Status: New ** Changed in: libsdl1.2 (Ubuntu Maverick) Status: New => Invalid -- kvm sends caps lock key up event twice htt

[Qemu-devel] [Bug 427612] Re: kvm sends caps lock key up event twice

2010-11-24 Thread Launchpad Bug Tracker
** Branch linked: lp:~bdrung/qemu-kvm/caps-lock-key-up-event -- kvm sends caps lock key up event twice https://bugs.launchpad.net/bugs/427612 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Status in “libsdl1.2” pack

Re: [Qemu-devel] Re: [PATCH 10/12] config: Add header file for device config options

2010-11-24 Thread Blue Swirl
On Wed, Nov 24, 2010 at 10:54 AM, Alexander Graf wrote: > > On 24.11.2010, at 03:22, Juan Quintela wrote: > >> Alexander Graf wrote: >>> So far we have C preprocessor defines for target and host config >>> options, but we're lacking any information on which devices are >>> available. >>> >>> We d

Re: [Xen-devel] Re: [Qemu-devel] [PATCH] qemu and qemu-xen: support empty write barriers in xen_disk

2010-11-24 Thread Stefano Stabellini
On Wed, 24 Nov 2010, Christoph Hellwig wrote: > On Wed, Nov 24, 2010 at 10:18:40AM -0800, Jeremy Fitzhardinge wrote: > > Linux wants is a useful thing to do and implement (especially since it > > amounts to standardising the ?BSD extension). I'm not sure of their > > precise semantics (esp WRT ord

[Qemu-devel] Issue with qemu-kvm.git + kvm.git - Machine shutdown doesn't terminate qemu-kvm process, guest RHEL 6

2010-11-24 Thread Lucas Meneghel Rodrigues
Hi folks, I've noticed an issue during our sanity testing for upstream. On a RHEL 6 VM, After we issue the shutdown command, the qemu-kvm process is still alive for some reason, making autotest fail the test. More info: VM serial console: 2010-11-24 15:15:16: initctl: Event failed 2010-11-24 15:1

Re: [Qemu-devel] [PATCH] Add qemu_read_full

2010-11-24 Thread Stefan Hajnoczi
On Wed, Nov 24, 2010 at 5:18 PM, M. Mohan Kumar wrote: > Add qemu_read_full function > > Signed-off-by: M. Mohan Kumar > --- >  osdep.c       |   29 + >  qemu-common.h |    2 ++ >  2 files changed, 31 insertions(+), 0 deletions(-) > > diff --git a/osdep.c b/osdep.c > i

Re: [Qemu-devel] [PATCH 1/1] iscsi: add iSCSI block device support

2010-11-24 Thread Stefan Hajnoczi
On Wed, Nov 24, 2010 at 5:04 PM, Christoph Hellwig wrote: > Do you have any performance numbers showing why the addition of the > code is nessecary over just using the kernel iscsi initiator?  Which > btw, is a lot more flexible as it also supports SG_IO passthrough > and thus accessing other devi

Re: [Xen-devel] Re: [Qemu-devel] [PATCH] qemu and qemu-xen: support empty write barriers in xen_disk

2010-11-24 Thread Christoph Hellwig
On Wed, Nov 24, 2010 at 10:18:40AM -0800, Jeremy Fitzhardinge wrote: > Linux wants is a useful thing to do and implement (especially since it > amounts to standardising the ?BSD extension). I'm not sure of their > precise semantics (esp WRT ordering), but I think its already OK. The nice bit is t

Re: [Qemu-devel] [PATCH 3/3] vnc/spice: add set_passwd monitor command.

2010-11-24 Thread malc
On Wed, 24 Nov 2010, Gerd Hoffmann wrote: > This patch adds new set_password and expire_password monitor commands > which allows to change and expire the password for spice and vnc > connections. See the doc update patch chunk for details. > This has tabs. [..snip..] -- mailto:av1...@comtv.r

[Qemu-devel] [PATCH] Add qemu_read_full

2010-11-24 Thread M. Mohan Kumar
Add qemu_read_full function Signed-off-by: M. Mohan Kumar --- osdep.c | 29 + qemu-common.h |2 ++ 2 files changed, 31 insertions(+), 0 deletions(-) diff --git a/osdep.c b/osdep.c index 327583b..7046b32 100644 --- a/osdep.c +++ b/osdep.c @@ -127,6 +127,35

Re: [Qemu-devel] [PATCH] qemu and qemu-xen: support empty write barriers in xen_disk

2010-11-24 Thread Christoph Hellwig
I had the discussion with Jeremy in Boston before, but let's repeat it here: - is there actually any pre-existing xen backend that does properly implement empty barries. Back then we couldn't find any. - if this is a new concept to Xen please do not define an empty barrier primitive, but

Re: [Qemu-devel] [PATCH 00/15] Megasas HBA emulation and SCSI update v.3

2010-11-24 Thread Christoph Hellwig
Btw, it might make sense to split this series into two. Patches 1 to 11 are genuine improvements to the SCSI code, which I'd like to see merged ASAP. The rest is the actual megasas driver, which I still want to see, but haven't even gotten to review yet.

[Qemu-devel] Re: [PATCH] correct migrate_set_speed's args_type

2010-11-24 Thread Luiz Capitulino
On Wed, 24 Nov 2010 09:28:54 +0800 Wen Congyang wrote: > At 2010年11月23日 21:31, Luiz Capitulino Write: > > On Tue, 23 Nov 2010 10:43:48 -0200 > > Luiz Capitulino wrote: > > > >> On Tue, 23 Nov 2010 13:41:26 +0800 > >> Wen Congyang wrote: > >> > >>> The args_type of migrate_set_speed in qmp-comm

Re: [Xen-devel] Re: [Qemu-devel] [PATCH] qemu and qemu-xen: support empty write barriers in xen_disk

2010-11-24 Thread Jeremy Fitzhardinge
On 11/24/2010 08:58 AM, Christoph Hellwig wrote: > I had the discussion with Jeremy in Boston before, but let's repeat it > here: > > - is there actually any pre-existing xen backend that does properly >implement empty barries. Back then we couldn't find any. > - if this is a new concept to

Re: [Qemu-devel] [PATCH 13/15] scsi: Implement alloc_req_iov callback

2010-11-24 Thread Christoph Hellwig
On Wed, Nov 24, 2010 at 12:16:08PM +0100, Hannes Reinecke wrote: > Add callback to create a request with a predefined iovec. > This is required for drivers which can use the iovec > of a command directly. What happend to my comment that the iov and non-iov case should share code? Also what happen

Re: [Qemu-devel] [PATCH 02/15] scsi: Return SAM status codes

2010-11-24 Thread Christoph Hellwig
On Wed, Nov 24, 2010 at 12:15:57PM +0100, Hannes Reinecke wrote: > Traditionally, the linux stack is using SCSI status codes > which are shifted by one as compared to those defined in SAM. > A SCSI emulation should naturally return the SAM defined codes, > not the linux ones. > So to avoid any conf

[Qemu-devel] [PATCH 3/3] vnc/spice: add set_passwd monitor command.

2010-11-24 Thread Gerd Hoffmann
This patch adds new set_password and expire_password monitor commands which allows to change and expire the password for spice and vnc connections. See the doc update patch chunk for details. Signed-off-by: Gerd Hoffmann --- hmp-commands.hx | 54 + monitor.c

Re: [Qemu-devel] [PATCH 1/1] iscsi: add iSCSI block device support

2010-11-24 Thread Christoph Hellwig
I don't really see the point of this. It's implemented as a protocol, and thus the bottom of the qemu protocol stack. So we might get SCSI commands in from the guest, decode them, just to re-encode them again and send them off to the network all inside qemu. Do you have any performance numbers s

[Qemu-devel] [PATCH 0/3] vnc/spice: add monitor commands to change+expire passwords.

2010-11-24 Thread Gerd Hoffmann
This patch series adds new monitor commands to set and expire the password: set-password $protocol $secret expire-password $protocol [ now | never | +secs | secs ] The time when the password expires can be specified either relative (+60 == password expires in 60 seconds from now) or absolute

[Qemu-devel] [PATCH 1/3] vnc: auth reject cleanup

2010-11-24 Thread Gerd Hoffmann
protocol_client_auth_vnc() has two places where the auth can fail, with identical code sending the reject message to the client. Move the common code to the end of the function and make both error paths jump there. No functional change. Signed-off-by: Gerd Hoffmann --- ui/vnc.c | 30 +

[Qemu-devel] [PATCH 2/3] vnc: support password expire

2010-11-24 Thread Gerd Hoffmann
This patch adds support for expiring passwords to vnc. It adds a new vnc_display_pw_expire() function which specifies the time when the password will expire. Signed-off-by: Gerd Hoffmann --- console.h |1 + qemu-common.h |3 +++ ui/vnc.c | 14 ++ ui/vnc.h |

Re: [Qemu-devel] [PATCH 1/5] block: Add top level BSG support

2010-11-24 Thread Christoph Hellwig
Nick, can we wait a bit with this series? With the threadlets currently pending for inclusion I can get my rewrite of the generic-generic to not abuse the qemu block layer out of the closet again, which should simplify a lot of the things you're touching here.

Re: [Qemu-devel] Re: [PATCH 0/5]

2010-11-24 Thread Christoph Hellwig
On Wed, Nov 24, 2010 at 01:38:59PM +, Stefan Hajnoczi wrote: > I don't know the Linux SCSI stack, so some basic questions for you :). > > With scsi-generic I can send SCSI commands to a device. How is bsg > different? The bsg code looks cleaner than sg but they both boil down > to issuing SC

Re: [Qemu-devel] [PATCH] qemu and qemu-xen: support empty write barriers in xen_disk

2010-11-24 Thread Stefano Stabellini
On Wed, 24 Nov 2010, Kevin Wolf wrote: > > On 11/24/10 14:08, Stefano Stabellini wrote: > >> this patch can be applied to both qemu-xen and qemu and adds support > >> for empty write barriers to xen_disk. > > > > Looks good. > > > > Acked-by: Gerd Hoffmann > > Thanks, applied to the block branc

[Qemu-devel] Re: [PATCH][qemu-iotests] filter IMGFMT correctly in 019

2010-11-24 Thread Christoph Hellwig
On Wed, Nov 24, 2010 at 03:38:46PM +, Stefan Hajnoczi wrote: > Test 019 can be run with qcow2 and qed image formats. Replace the > specific image format value with "IMGFMT" so the golden output does not > hardcode qcow2 or qed. > > This patch also includes a typo fix for "occurrences". Thank

[Qemu-devel] Re: [PATCH] ide: convert bmdma address ioport to ioport_register()

2010-11-24 Thread Kevin Wolf
Am 21.11.2010 17:29, schrieb Avi Kivity: > cmd646, via compile tested, pci lightly boot tested. > > Signed-off-by: Avi Kivity Thanks, applied to the block branch. Kevin

Re: [Qemu-devel] [PATCH] qemu and qemu-xen: support empty write barriers in xen_disk

2010-11-24 Thread Kevin Wolf
Am 24.11.2010 15:23, schrieb Gerd Hoffmann: > On 11/24/10 14:08, Stefano Stabellini wrote: >> this patch can be applied to both qemu-xen and qemu and adds support >> for empty write barriers to xen_disk. > > Looks good. > > Acked-by: Gerd Hoffmann Thanks, applied to the block branch. Kevin

[Qemu-devel] [PATCHv2 1/6] virtio-net: don't dma while vm is stopped

2010-11-24 Thread Michael S. Tsirkin
DMA into memory while VM is stopped makes it hard to debug migration (consequitive saves result in different files). Fixing this completely is a large effort, this patch does this for virtio-net. Signed-off-by: Michael S. Tsirkin Tested-by: Jason Wang --- hw/virtio-net.c |3 +++ 1 files cha

[Qemu-devel] [PATCHv2 2/6] cpus: flush all requests on each vm stop

2010-11-24 Thread Michael S. Tsirkin
Make sure disk is in consistent state. Signed-off-by: Michael S. Tsirkin Tested-by: Jason Wang --- cpus.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/cpus.c b/cpus.c index 91a0fb1..d421a96 100644 --- a/cpus.c +++ b/cpus.c @@ -110,6 +110,8 @@ static void do_vm_stop(

[Qemu-devel] [PATCHv2 5/6] migration: stable ram block ordering

2010-11-24 Thread Michael S. Tsirkin
This makes ram block ordering under migration stable, ordered by offset. This is especially useful for migration to exec, for debugging. Signed-off-by: Michael S. Tsirkin Tested-by: Jason Wang --- arch_init.c | 35 +++ cpu-common.h |3 +++ exec.c |

[Qemu-devel] [PATCHv2 0/6] stable migration image on a stopped vm

2010-11-24 Thread Michael S. Tsirkin
I sent the exact same patches offline to some of the Cc'd, there's been no change but they have been tested by Jason now. I'll queue them up unless there are some comments. What these patches do is arrive at a state where migrate to exec with vm stopped produces a stable result. With these patche

[Qemu-devel] [PATCHv2 4/6] virtio-net: stop/start bh on vm start/stop

2010-11-24 Thread Michael S. Tsirkin
Avoid sending out packets, and modifying device state, when VM is stopped. Add a bunch or assert statements to verify this does not happen. Signed-off-by: Michael S. Tsirkin Tested-by: Jason Wang --- hw/virtio-net.c | 36 ++-- 1 files changed, 26 insertions(+)

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-11-24 Thread Michael S. Tsirkin
On Wed, Nov 24, 2010 at 04:16:04PM +0100, Paolo Bonzini wrote: > On 11/24/2010 12:14 PM, Michael S. Tsirkin wrote: > >>> buffered_file timer runs each 100ms. And we "try" to measure channel > >>> bandwidth from there. If we are not able to run the timer, all the > >>> calculations are wrong, a

[Qemu-devel] [PATCHv2 3/6] migration/savevm: no need to flush requests

2010-11-24 Thread Michael S. Tsirkin
There's no need to flush requests after vmstop as vmstop does it for us automatically now. Signed-off-by: Michael S. Tsirkin Tested-by: Jason Wang --- migration.c |2 -- savevm.c|4 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/migration.c b/migration.c index 9

[Qemu-devel] [PATCHv2 6/6] migration: allow rate > 4g

2010-11-24 Thread Michael S. Tsirkin
I'd like to disable bandwidth limit or make it very high, Use int64_t all over to make values >= 4g work. Signed-off-by: Michael S. Tsirkin Tested-by: Jason Wang --- buffered_file.c |9 ++--- hw/hw.h |8 migration.c |6 -- savevm.c|4 ++-- 4

[Qemu-devel] [PULL] virtio, e1000, pci aer, pci reset

2010-11-24 Thread Michael S. Tsirkin
Note: to avoid conflict in a merge I cherry-picked a patch by Stefan from master to my branch. git seems to resolve this without effort. The following changes since commit e927d48722fdcba50f82d653c5a1927752483054: pci: allow hotplug removal of cold-plugged devices (2010-11-16 14:55:23 +0200)

[Qemu-devel] [PATCH][qemu-iotests] filter IMGFMT correctly in 019

2010-11-24 Thread Stefan Hajnoczi
Test 019 can be run with qcow2 and qed image formats. Replace the specific image format value with "IMGFMT" so the golden output does not hardcode qcow2 or qed. This patch also includes a typo fix for "occurrences". Signed-off-by: Stefan Hajnoczi --- 019 |2 +- 019.out |

[Qemu-devel] [PATCH 5/6] ARM: linux-user: Expose iWMMXT registers to signal handlers

2010-11-24 Thread Peter Maydell
Signed-off-by: Peter Maydell --- linux-user/signal.c | 37 + 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 5e8cbeb..3d0233d 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -1130,7

[Qemu-devel] [PATCH 6/6] ARM: linux-user: Restore iWMMXT state from ucontext on sigreturn

2010-11-24 Thread Peter Maydell
Signed-off-by: Peter Maydell --- linux-user/signal.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 3d0233d..bd0dbc1 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -1602,6 +1602,

[Qemu-devel] [PATCH 1/6] ARM: linux-user: Correct size of padding in target_ucontext_v2

2010-11-24 Thread Peter Maydell
The padding in the target_ucontext_v2 is defined by the size of the target's sigset_t type, not the host's. (This bug only causes problems when we start using the uc_regspace[] array to expose VFP registers to userspace signal handlers.) Signed-off-by: Peter Maydell --- linux-user/signal.c |

[Qemu-devel] [PATCH 3/6] ARM: linux-user: Expose VFP registers to signal handlers

2010-11-24 Thread Peter Maydell
For ARM linux-user mode signal handlers, fill in the ucontext with VFP register contents in the same way that the kernel does. We only do this for v2 format sigframe (2.6.12 and above); this is actually bug-for-bug compatible with the older kernels, which don't save and restore VFP registers either

[Qemu-devel] [PATCH 2/6] ARM: Expose vfp_get_fpscr() and vfp_set_fpscr() to C code

2010-11-24 Thread Peter Maydell
Expose the vfp_get_fpscr() and vfp_set_fpscr() functions to C code as well as generated code, so we can use them to read and write the FPSCR when saving and restoring VFP registers across signal handlers in linux-user mode. Signed-off-by: Peter Maydell --- target-arm/cpu.h|4 target

[Qemu-devel] [PATCH 4/6] ARM: linux-user: Restore VFP state from ucontext on sigreturn

2010-11-24 Thread Peter Maydell
Restore the VFP registers from the ucontext on return from a signal handler in linux-user mode. This means that signal handlers cannot accidentally corrupt the interrupted code's VFP state, and allows them to deliberately modify the state via the ucontext structure. Signed-off-by: Peter Maydell -

[Qemu-devel] [PATCH 0/6] ARM: linux-user: save/restore fpu regs to signal context

2010-11-24 Thread Peter Maydell
This patchset fixes the ARM-specific parts of the linux-user signal handling code to save the VFP and iWMMXT registers to the signal context struct when invoking a signal handler, and restore them afterwards. (This omission was previously marked with a 'FIXME' comment, and meant that signal handler

  1   2   >