[Qemu-devel] [PATCH V5 13/28] qapi event: convert SUSPEND_DISK

2014-05-01 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- hw/acpi/core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/acpi/core.c b/hw/acpi/core.c index 79414b4..ace6438 100644 --- a/hw/acpi/core.c +++ b/hw/acpi/core.c @@ -22,11 +22,11 @@ #include hw/hw.h #include

[Qemu-devel] [PATCH V5 22/28] qapi event: convert NIC_RX_FILTER_CHANGED

2014-05-01 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- hw/net/virtio-net.c | 13 +++-- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 33bd233..216d4e1 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -22,7 +22,7

[Qemu-devel] [PATCH V5 16/28] qapi event: convert WATCHDOG

2014-05-01 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- hw/watchdog/watchdog.c | 23 +++ 1 files changed, 7 insertions(+), 16 deletions(-) diff --git a/hw/watchdog/watchdog.c b/hw/watchdog/watchdog.c index f28161b..9284d3f 100644 --- a/hw/watchdog/watchdog.c +++

[Qemu-devel] [PATCH V5 11/28] qapi event: convert RESUME

2014-05-01 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- vl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 717bfc1..3679588 100644 --- a/vl.c +++ b/vl.c @@ -1734,7 +1734,7 @@ void vm_start(void) runstate_set(RUN_STATE_RUNNING);

[Qemu-devel] [PATCH V5 12/28] qapi event: convert SUSPEND

2014-05-01 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- vl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 3679588..3ee2494 100644 --- a/vl.c +++ b/vl.c @@ -1907,7 +1907,7 @@ static void qemu_system_suspend(void) pause_all_vcpus();

[Qemu-devel] [PATCH V5 05/28] qapi: define events in qapi schema

2014-05-01 Thread Wenchao Xia
Some old type defines for spice and vnc are changed to let new event defines use them instead of redefine. Note that define of BlockErrorAction is moved from block.h to qapi schema, and it is not merged with BlockdevOnError. In schema NIC_RX_FILTER_CHANGED's param 'name' is changed as optional

[Qemu-devel] [PATCH v1 1/4] target-arm: Make vbar_write 64bit friendly on 32bit hosts

2014-05-01 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 43c1b4f..330bfc7 100644 ---

[Qemu-devel] [PATCH v1 0/4] Mixed ARM A64 fixes

2014-05-01 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Hi Peter, This series fixes a few things I've noticed when running and looking at the aarch64 port. Cheers, Edgar Edgar E. Iglesias (4): target-arm: Make vbar_write 64bit friendly on 32bit hosts target-arm: A64: Handle blr lr target-arm:

[Qemu-devel] [PATCH v1 2/4] target-arm: A64: Handle blr lr

2014-05-01 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com For linked branches, updates to the link register happen conceptually after the read of the branch target register. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/translate-a64.c | 3 ++- 1 file changed, 2

[Qemu-devel] [PATCH v1 3/4] target-arm: A64: Fix a typo when declaring TLBI ops

2014-05-01 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Harmless typo as opc1 defaults to zero and opc2 gets re-declared to its correct value. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/helper.c | 24 1 file changed, 12 insertions(+), 12

[Qemu-devel] [PATCH v1 4/4] target-arm: Correct a comment refering to EL0

2014-05-01 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c index 57e7d9c..fb90676 100644 ---

[Qemu-devel] [Bug 1314667] Re: PMPrebUSB - appcrash of qemu in Win-7-64bit

2014-05-01 Thread Steve Si
RMPrepUSB will run ON 32-bit and 64-bit Operating Systems. That is not the same thing as QEMU will run a 64-bit Operating System. There is a 64-bit version of QEMU but it is very buggy and won't even boot a 64-bit Vista/7 WinPE, so it is not included. As I said, normally when booting a 64-bit

Re: [Qemu-devel] [PATCH 1/3] curl: Fix parsing of readahead option from filename

2014-05-01 Thread Matthew Booth
On 30/04/14 16:16, Kevin Wolf wrote: Am 30.04.2014 um 16:20 hat Matthew Booth geschrieben: curl_parse_filename wasn't removing the option string from the url, resulting in a 404. This change is a essentially a rewrite of that function as I also need to extend it to handle more options. The

Re: [Qemu-devel] [PATCH v1 3/4] target-arm: A64: Fix a typo whendeclaring TLBI opss

2014-05-01 Thread Alex Bennée
Edgar E. Iglesias edgar.igles...@gmail.com writes: From: Edgar E. Iglesias edgar.igles...@xilinx.com Harmless typo as opc1 defaults to zero and opc2 gets re-declared to its correct value. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Alex Bennée

Re: [Qemu-devel] [PATCH v1 1/4] target-arm: Make vbar_write 64bitfriendly on 32bit hostss

2014-05-01 Thread Alex Bennée
Edgar E. Iglesias edgar.igles...@gmail.com writes: From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Alex Bennée alex.ben...@linaro.org --- target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [Qemu-devel] [PATCH v1 2/4] target-arm: A64: Handle blr lr

2014-05-01 Thread Alex Bennée
Edgar E. Iglesias edgar.igles...@gmail.com writes: From: Edgar E. Iglesias edgar.igles...@xilinx.com For linked branches, updates to the link register happen conceptually after the read of the branch target register. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com I'm trying to

Re: [Qemu-devel] [PATCH v1 2/4] target-arm: A64: Handle blr lr

2014-05-01 Thread Peter Maydell
On 1 May 2014 10:02, Alex Bennée alex.ben...@linaro.org wrote: Edgar E. Iglesias edgar.igles...@gmail.com writes: From: Edgar E. Iglesias edgar.igles...@xilinx.com For linked branches, updates to the link register happen conceptually after the read of the branch target register.

Re: [Qemu-devel] [PATCH 2/3] curl: Add sslverify option

2014-05-01 Thread Matthew Booth
On 30/04/14 16:32, Kevin Wolf wrote: Am 30.04.2014 um 16:20 hat Matthew Booth geschrieben: This allows qemu to use images over https with a self-signed certificate. It defaults to verifying the certificate. Signed-off-by: Matthew Booth mbo...@redhat.com --- block/curl.c | 33

Re: [Qemu-devel] [GSoC] Wanted: small warmup tasks

2014-05-01 Thread Le Tan
2014-04-24 19:38 GMT+08:00 Andreas Färber afaer...@suse.de: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 24.04.2014 08:19, schrieb Jan Kiszka: On 2014-04-23 11:25, Stefan Hajnoczi wrote: Dear QEMU, Libvirt, and KVM communities, We are participating in Google Summer of Code 2014

[Qemu-devel] [PATCH v7] spapr: Add support for time base offset migration

2014-05-01 Thread Alexey Kardashevskiy
This allows guests to have a different timebase origin from the host. This is needed for migration, where a guest can migrate from one host to another and the two hosts might have a different timebase origin. However, the timebase seen by the guest must not go backwards, and should go forwards

[Qemu-devel] [PATCH] Nowadays alsa and pulseaudio are most often the default soundsystem. When the headerfiles are found, enable the build of the alsa and pulseaudio audio driver for the default targe

2014-05-01 Thread Sander Eikelenboom
Signed-off-by: Sander Eikelenboom li...@eikelenboom.it --- configure |6 ++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 2fbec59..de87d38 100755 --- a/configure +++ b/configure @@ -637,6 +637,12 @@ Haiku) ;; *) audio_drv_list=oss + if test -f

Re: [Qemu-devel] [PATCH] Nowadays alsa and pulseaudio are most often the default soundsystem. When the headerfiles are found, enable the build of the alsa and pulseaudio audio driver for the default t

2014-05-01 Thread Peter Maydell
On 1 May 2014 11:56, Sander Eikelenboom li...@eikelenboom.it wrote: Signed-off-by: Sander Eikelenboom li...@eikelenboom.it --- configure |6 ++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 2fbec59..de87d38 100755 --- a/configure +++ b/configure @@

Re: [Qemu-devel] [PATCH v1 2/4] target-arm: A64: Handle blr lr

2014-05-01 Thread Edgar E. Iglesias
On Thu, May 01, 2014 at 10:31:06AM +0100, Peter Maydell wrote: On 1 May 2014 10:02, Alex Bennée alex.ben...@linaro.org wrote: Edgar E. Iglesias edgar.igles...@gmail.com writes: From: Edgar E. Iglesias edgar.igles...@xilinx.com For linked branches, updates to the link register happen

Re: [Qemu-devel] [PATCH 1/3] curl: Fix parsing of readahead option from filename

2014-05-01 Thread Eric Blake
On 05/01/2014 02:56 AM, Matthew Booth wrote: On 30/04/14 16:16, Kevin Wolf wrote: Am 30.04.2014 um 16:20 hat Matthew Booth geschrieben: curl_parse_filename wasn't removing the option string from the url, resulting in a 404. Alternatively I could completely change the syntax. However, the

Re: [Qemu-devel] [PATCH] Nowadays alsa and pulseaudio are most often the default soundsystem. When the headerfiles are found, enable the build of the alsa and pulseaudio audio driver for the default t

2014-05-01 Thread Eric Blake
On 05/01/2014 04:56 AM, Sander Eikelenboom wrote: Your subject line is extremely long. A good commit has a one-line summary with 60 chars or less, then a blank line, then the details. Look at 'git shortlog -30' for a good idea of subject lines. Signed-off-by: Sander Eikelenboom

Re: [Qemu-devel] [PATCH v10 1/4] qapi: [trivial] Break long command lines

2014-05-01 Thread Eric Blake
On 04/30/2014 01:09 PM, Lluís Vilanova wrote: Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Reviewed-by: Eric Blake ebl...@redhat.com --- Makefile | 24 ++-- tests/Makefile | 20 2 files changed, 34 insertions(+), 10 deletions(-) @@

Re: [Qemu-devel] [PATCH v10 3/4] qapi: Use an explicit input file

2014-05-01 Thread Eric Blake
On 04/30/2014 01:09 PM, Lluís Vilanova wrote: Use an explicit input file on the command-line instead of reading from standard input. It also outputs the proper file name when there's an error. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Reviewed-by: Eric Blake ebl...@redhat.com

Re: [Qemu-devel] [PATCH v10 4/4] qapi: Add a primitive to include other files from a QAPI schema file

2014-05-01 Thread Eric Blake
On 04/30/2014 01:09 PM, Lluís Vilanova wrote: The primitive uses JSON syntax, and include paths are relative to the file using the directive: { 'include': 'path/to/file.json' } Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- +++ b/tests/qapi-schema/include-after-err.json @@

Re: [Qemu-devel] [PULL 0/1] hda-audio: fix non-mixer codecs

2014-05-01 Thread Peter Maydell
On 29 April 2014 10:05, Gerd Hoffmann kra...@redhat.com wrote: Hi, pretty short audio patch queue, featuring a single hda-audio fix. please pull, Gerd The following changes since commit e2da502c003b9a91b4aea7684959192bd07c1f1d: Merge remote-tracking branch 'remotes/otubo/seccomp'

Re: [Qemu-devel] [PATCH v1 1/4] target-arm: Make vbar_write 64bit friendly on 32bit hosts

2014-05-01 Thread Peter Crosthwaite
On Thu, May 1, 2014 at 4:34 PM, Edgar E. Iglesias edgar.igles...@gmail.com wrote: From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- target-arm/helper.c | 2 +- 1 file

Re: [Qemu-devel] [PATCH] Nowadays alsa and pulseaudio are most often the default soundsystem. When the headerfiles are found, enable the build of the alsa and pulseaudio audio driver for the default t

2014-05-01 Thread Sander Eikelenboom
Thursday, May 1, 2014, 1:06:35 PM, you wrote: On 1 May 2014 11:56, Sander Eikelenboom li...@eikelenboom.it wrote: Signed-off-by: Sander Eikelenboom li...@eikelenboom.it --- configure |6 ++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 2fbec59..de87d38

Re: [Qemu-devel] [PATCH] Nowadays alsa and pulseaudio are most often the default soundsystem. When the headerfiles are found, enable the build of the alsa and pulseaudio audio driver for the default t

2014-05-01 Thread Peter Maydell
On 1 May 2014 13:56, Sander Eikelenboom li...@eikelenboom.it wrote: Thursday, May 1, 2014, 1:06:35 PM, you wrote: This is a lower-quality duplicate of the code we already have in configure for probing whether an audio backend is present (for instance it doesn't allow for the possibility that

Re: [Qemu-devel] [PULL 0/2] sdl patch queue

2014-05-01 Thread Peter Maydell
On 29 April 2014 11:18, Gerd Hoffmann kra...@redhat.com wrote: Hi, Two small improvements for SDL2: mouse wheel support and ui config notification. please pull, Gerd The following changes since commit e2da502c003b9a91b4aea7684959192bd07c1f1d: Merge remote-tracking branch

Re: [Qemu-devel] [PATCH] Nowadays alsa and pulseaudio are most often the default soundsystem. When the headerfiles are found, enable the build of the alsa and pulseaudio audio driver for the default t

2014-05-01 Thread Sander Eikelenboom
Thursday, May 1, 2014, 3:06:27 PM, you wrote: On 1 May 2014 13:56, Sander Eikelenboom li...@eikelenboom.it wrote: Thursday, May 1, 2014, 1:06:35 PM, you wrote: This is a lower-quality duplicate of the code we already have in configure for probing whether an audio backend is present (for

[Qemu-devel] [PATCH] arch_init: Be sure of only one exit entry with DPRINTF() for ram_load()

2014-05-01 Thread Chen Gang
When DPRINTF() has effect, the original author wants to print all ram_load() calling results. So need use 'goto' instead of 'return' within ram_load(), just like other areas have done. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- arch_init.c | 12 1 file changed, 8

Re: [Qemu-devel] [PATCH 0/3] hw/arm/virt: Support Cortex-A57

2014-05-01 Thread Peter Maydell
On 24 April 2014 18:54, Peter Maydell peter.mayd...@linaro.org wrote: This patchset wires up our new Cortex-A57 emulation into the virt machine model. Rather than the somewhat hacky approach in the previous system emulation patchsets, I've decided that our best approach is to have the board

Re: [Qemu-devel] [PATCH v1 2/4] target-arm: A64: Handle blr lr

2014-05-01 Thread Alex Bennée
Edgar E. Iglesias edgar.igles...@gmail.com writes: On Thu, May 01, 2014 at 10:31:06AM +0100, Peter Maydell wrote: On 1 May 2014 10:02, Alex Bennée alex.ben...@linaro.org wrote: Edgar E. Iglesias edgar.igles...@gmail.com writes: From: Edgar E. Iglesias edgar.igles...@xilinx.com For

Re: [Qemu-devel] [PATCH v5 05/10] XBZRLE: optimize XBZRLE to decrease the cache misses

2014-05-01 Thread Eric Blake
On 04/04/2014 03:57 AM, arei.gong...@huawei.com wrote: From: ChenLiang chenlian...@huawei.com Avoid hot pages being replaced by others to remarkably decrease cache misses Sample results with the test program which quote from xbzrle.txt ran in vm:(migrate bandwidth:1GE and xbzrle cache

[Qemu-devel] [PATCH] readline: Sort completions before printing them.

2014-05-01 Thread Hani Benhabiles
Signed-off-by: Hani Benhabiles h...@linux.com --- util/readline.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/util/readline.c b/util/readline.c index 8441be4..8d2a0d3 100644 --- a/util/readline.c +++ b/util/readline.c @@ -272,6 +272,11 @@ void

Re: [Qemu-devel] [PULL 0/8] gtk patch queue

2014-05-01 Thread Peter Maydell
On 29 April 2014 10:46, Gerd Hoffmann kra...@redhat.com wrote: Hi, Here comes the gtk patch queue, featuring a collection of fixes and cleanups by Cole Robinson. please pull, Gerd The following changes since commit e2da502c003b9a91b4aea7684959192bd07c1f1d: Merge remote-tracking

Re: [Qemu-devel] [PATCH v5 06/10] XBZRLE: rebuild the cache_is_cached function

2014-05-01 Thread Eric Blake
On 04/04/2014 03:57 AM, arei.gong...@huawei.com wrote: From: ChenLiang chenlian...@huawei.com Rebuild the cache_is_cached function by cache_get_by_addr. And drops the asserts because the caller is also asserting the same thing. Technically, the caller (parent - arch_init.c:save_xbzrle_page)

Re: [Qemu-devel] [PATCH V5 04/28] test: add test cases for qapi event

2014-05-01 Thread Eric Blake
On 04/30/2014 10:26 PM, Wenchao Xia wrote: These cases will verify whether the expected qdict is built. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- tests/Makefile | 14 ++- tests/qapi-schema/qapi-schema-test.json | 12 ++

Re: [Qemu-devel] [PATCH V5 07/28] qapi event: convert SHUTDOWN

2014-05-01 Thread Eric Blake
On 04/30/2014 10:26 PM, Wenchao Xia wrote: Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- vl.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) This, and many of the subsequent patches in the series, are a bit misleading; I have to go back to 5/28 to make sure that both

[Qemu-devel] [PATCH 00/22] dataplane: use QEMU block layer

2014-05-01 Thread Stefan Hajnoczi
This patch series switches virtio-blk data-plane from a custom Linux AIO request queue to the QEMU block layer. The previous raw files only limitation is lifted. All image formats and protocols can now be used with virtio-blk data-plane. How to review this series - I

[Qemu-devel] [PATCH 07/22] gluster: use BlockDriverState's AioContext

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Use aio_bh_new() instead of qemu_bh_new(). The .bdrv_detach_aio_context() and .bdrv_attach_aio_context() interfaces are not needed since no fd handlers, timers, or BHs stay registered when requests have been drained. Cc: Bharata B Rao

[Qemu-devel] [PULL 08/10] hw/arm/virt: Create the GIC ourselves rather than (ab)using a15mpcore_priv

2014-05-01 Thread Peter Maydell
Rather than having the virt machine model create an a15mpcore_priv device regardless of the actual CPU type in order to instantiate the GIC, move to having the machine model create the GIC directly. This corresponds to a system which uses a standalone GIC (eg the GIC-400) rather than the one built

[Qemu-devel] [PATCH 01/22] block: use BlockDriverState AioContext

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Convert qemu_aio_wait() to aio_poll() and qemu_bh_new() to aio_bh_new() so the BlockDriverState AioContext is used. Note there is still one qemu_aio_wait() left in bdrv_create() but we do not have a BlockDriverState there and only main

[Qemu-devel] [PATCH 03/22] block: add bdrv_set_aio_context()

2014-05-01 Thread Stefan Hajnoczi
Up until now all BlockDriverState instances have used the QEMU main loop for fd handlers, timers, and BHs. This is not scalable on SMP guests and hosts so we need to move to a model with multiple event loops on different host CPUs. bdrv_set_aio_context() assigns the AioContext event loop to use

[Qemu-devel] [PATCH 02/22] block: acquire AioContext in bdrv_close_all()

2014-05-01 Thread Stefan Hajnoczi
bdrv_close_all() closes all BlockDriverState instances. It is called from vl.c:main() and qemu-nbd when shutting down. Some BlockDriverState instances may be running in another AioContext. Make sure to acquire the AioContext before closing the BlockDriverState. This will protect against race

[Qemu-devel] [PATCH 05/22] blkverify: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Convert qemu_bh_new() to aio_bh_new() and qemu_aio_wait() to aio_poll() so we use the BlockDriverState's AioContext. Implement .bdrv_detach/attach_aio_context() interfaces to propagate detach/attach to BDRVBlkverifyState-test_file. The

[Qemu-devel] [PATCH 09/22] nbd: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Convert qemu_aio_set_fd_handler() calls to aio_set_fd_handler(). The .bdrv_detach/attach_aio_context() interfaces also need to be implemented to move the socket fd handler from the old to the new AioContext. Cc: Paolo Bonzini

[Qemu-devel] [PATCH 10/22] nfs: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. The following functions need to be converted: * qemu_bh_new() - aio_bh_new() * qemu_aio_set_fd_handler() - aio_set_fd_handler() * qemu_aio_wait() - aio_poll() The .bdrv_detach/attach_aio_context() interfaces also need to be implemented

[Qemu-devel] [PATCH 11/22] qed: use BlockDriverState's AioContext

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Convert qemu_bh_new() to aio_bh_new() and qemu_aio_wait() to aio_poll() so we're using the BlockDriverState's AioContext. Implement .bdrv_detach/attach_aio_context() interfaces to move the QED_F_NEED_CHECK timer from the old AioContext to

[Qemu-devel] [PATCH 04/22] blkdebug: use BlockDriverState's AioContext

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Convert qemu_bh_new() to aio_bh_new() so we use the BlockDriverState's AioContext. The .bdrv_detach_aio_context() and .bdrv_attach_aio_context() interfaces are not needed since no fd handlers, timers, or BHs stay registered when requests

[Qemu-devel] [PATCH 14/22] block/linux-aio: fix memory and fd leak

2014-05-01 Thread Stefan Hajnoczi
Hot unplugging -drive aio=native,file=test.img,format=raw images leaves the Linux AIO event notifier and struct qemu_laio_state allocated. Luckily nothing will use the event notifier after the BlockDriverState has been closed so the handler function is never called. It's still worth fixing this

[Qemu-devel] [PATCH 08/22] iscsi: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext for Linux AIO. Convert qemu_aio_set_fd_handler() to aio_set_fd_handler() and timer_new_ms() to aio_timer_new(). The .bdrv_detach/attach_aio_context() interfaces also need to be implemented to move the fd and timer from the old to the new

[Qemu-devel] [PATCH 17/22] ssh: use BlockDriverState's AioContext

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Use bdrv_get_aio_context() to register fd handlers in the right AioContext for this BlockDriverState. The .bdrv_detach_aio_context() and .bdrv_attach_aio_context() interfaces are not needed since no fd handlers, timers, or BHs stay

[Qemu-devel] [PATCH 20/22] dataplane: delete IOQueue since it is no longer used

2014-05-01 Thread Stefan Hajnoczi
This custom Linux AIO request queue is no longer used by virtio-blk data-plane. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/block/dataplane/Makefile.objs | 2 +- hw/block/dataplane/ioq.c | 117 --- hw/block/dataplane/ioq.h | 57

[Qemu-devel] [PATCH 22/22] raw-posix: drop raw_get_aio_fd() since it is no longer used

2014-05-01 Thread Stefan Hajnoczi
virtio-blk data-plane now uses the QEMU block layer for I/O. We do not need raw_get_aio_fd() anymore. It was a layering violation anyway, so let's get rid of it. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/raw-posix.c | 34 --

[Qemu-devel] [PATCH 13/22] block/raw-posix: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext for Linux AIO. Convert the Linux AIO event notifier to use aio_set_event_notifier(). The .bdrv_detach/attach_aio_context() interfaces also need to be implemented to move the event notifier handler from the old to the new AioContext.

[Qemu-devel] [PATCH 18/22] vmdk: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Stefan Hajnoczi
Implement .bdrv_detach/attach_aio_context() interfaces to propagate detach/attach to BDRVVmdkState-extents[].file. The block layer takes care of -file and -backing_hd but doesn't know about our extents BlockDriverStates, which is also part of the graph. Cc: Fam Zheng f...@redhat.com

[Qemu-devel] [PATCH 21/22] dataplane: implement async flush

2014-05-01 Thread Stefan Hajnoczi
Stop using the raw-posix file descriptor for synchronous qemu_fdatasync(). Use bdrv_aio_flush() instead and drop the VirtIOBlockDataPlane-fd field. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/block/dataplane/virtio-blk.c | 43 ++--- 1 file

[Qemu-devel] [PULL 02/10] armv7m_nvic: fix CPUID Base Register

2014-05-01 Thread Peter Maydell
From: Rabin Vincent ra...@rab.in cp15.c0_cpuid is never initialized for ARMv7-M; take the value directly from cpu-midr instead. Signed-off-by: Rabin Vincent ra...@rab.in Message-id: 1398036308-32166-1-git-send-email-ra...@rab.in Signed-off-by: Peter Maydell peter.mayd...@linaro.org ---

[Qemu-devel] [PULL 05/10] target-arm: A64: Handle blr lr

2014-05-01 Thread Peter Maydell
From: Edgar E. Iglesias edgar.igles...@xilinx.com For linked branches, updates to the link register happen conceptually after the read of the branch target register. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Alex Bennée alex.ben...@linaro.org Cc:

[Qemu-devel] [PULL 03/10] target-arm: implement WFE/YIELD as a yield for AArch64

2014-05-01 Thread Peter Maydell
From: Rob Herring rob.herr...@linaro.org Like was done for AArch32 for WFE, implement both WFE and YIELD as a yield operation. This speeds up multi-core system emulation. Signed-off-by: Rob Herring rob.herr...@linaro.org Message-id: 1397588401-20366-1-git-send-email-robherri...@gmail.com

Re: [Qemu-devel] [PATCH 17/22] ssh: use BlockDriverState's AioContext

2014-05-01 Thread Richard W.M. Jones
On Thu, May 01, 2014 at 04:54:41PM +0200, Stefan Hajnoczi wrote: Drop the assumption that we're using the main AioContext. Use bdrv_get_aio_context() to register fd handlers in the right AioContext for this BlockDriverState. The .bdrv_detach_aio_context() and .bdrv_attach_aio_context()

[Qemu-devel] [PULL 09/10] hw/arm/virt: Put GIC register banks on 64K boundaries

2014-05-01 Thread Peter Maydell
For an AArch64 CPU which supports 64K pages, having the GIC register banks at 4K offsets is potentially awkward. Move them out to being at 64K offsets. (This is harmless for AArch32 CPUs and for AArch64 CPUs with 4K pages, so it is simpler to use the same offsets everywhere than to try to use 64K

[Qemu-devel] [PULL 06/10] target-arm: A64: Fix a typo when declaring TLBI ops

2014-05-01 Thread Peter Maydell
From: Edgar E. Iglesias edgar.igles...@xilinx.com Harmless typo as opc1 defaults to zero and opc2 gets re-declared to its correct value. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Alex Bennée alex.ben...@linaro.org Message-id:

Re: [Qemu-devel] [PATCH V5 02/28] qapi: add event helper functions

2014-05-01 Thread Eric Blake
On 04/30/2014 10:26 PM, Wenchao Xia wrote: This file holds some functions that do not need to be generated. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- include/qapi/qmp-event.h | 27 + qapi/Makefile.objs |1 + qapi/qmp-event.c | 74

[Qemu-devel] [PULL 04/10] target-arm: Make vbar_write 64bit friendly on 32bit hosts

2014-05-01 Thread Peter Maydell
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Alex Bennée alex.ben...@linaro.org Message-id: 1398926097-28097-2-git-send-email-edgar.igles...@gmail.com Signed-off-by: Peter Maydell peter.mayd...@linaro.org ---

[Qemu-devel] [PULL 01/10] target-arm: Implement XScale cache lockdown operations as NOPs

2014-05-01 Thread Peter Maydell
XScale defines some implementation-specific coprocessor registers for doing cache lockdown operations. Since QEMU doesn't model a cache no proper implementation is possible, but NOP out the registers so that guest code like u-boot that tries to use them doesn't crash. Reported-by:

[Qemu-devel] [PULL 10/10] hw/arm/virt: Add support for Cortex-A57

2014-05-01 Thread Peter Maydell
Support the Cortex-A57 in the virt machine model. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Message-id: 1398362083-17737-4-git-send-email-peter.mayd...@linaro.org --- hw/arm/virt.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index

[Qemu-devel] [PULL 00/10] target-arm queue

2014-05-01 Thread Peter Maydell
(2014-05-01 14:17:33 +0100) are available in the git repository at: git://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20140501 for you to fetch changes up to f42c5c8ec8aa0e15583487ffee62964830751623: hw/arm/virt: Add support for Cortex-A57 (2014-05-01 15:25:52 +0100

Re: [Qemu-devel] [PATCH 17/22] ssh: use BlockDriverState's AioContext

2014-05-01 Thread Stefan Hajnoczi
On Thu, May 1, 2014 at 5:03 PM, Richard W.M. Jones rjo...@redhat.com wrote: On Thu, May 01, 2014 at 04:54:41PM +0200, Stefan Hajnoczi wrote: Drop the assumption that we're using the main AioContext. Use bdrv_get_aio_context() to register fd handlers in the right AioContext for this

Re: [Qemu-devel] [PATCH V5 05/28] qapi: define events in qapi schema

2014-05-01 Thread Eric Blake
On 04/30/2014 10:26 PM, Wenchao Xia wrote: Some old type defines for spice and vnc are changed to let new event defines use them instead of redefine. Note that define of BlockErrorAction is moved from block.h to qapi schema, and it is not merged with BlockdevOnError. In schema

[Qemu-devel] [PATCH 02/26] tcg-ppc64: Avoid some hard-codings of TCG_TYPE_I64

2014-05-01 Thread Richard Henderson
Using more appropriate _PTR or _REG where possible. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index c90ddcd..2f60924

[Qemu-devel] [PATCH 04/26] tcg-ppc64: Relax register restrictions in tcg_out_mem_long

2014-05-01 Thread Richard Henderson
In order to be able to use tcg_out_ld/st sensibly with scratch registers, assert only when we'd incorrectly clobber a scratch. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH 00/26] Merge ppc32/ppc64 tcg backends

2014-05-01 Thread Richard Henderson
The ppc32 backend isn't getting much love and attention recently, with all of the improvements coming from me into the ppc64 backend. Let's reduce the maint burden a bit and combine them. This does have a few other patches that are not strictly related to the merge of the backends, such as

[Qemu-devel] [PATCH 06/26] tcg-ppc64: Make TCG_AREG0 and TCG_REG_CALL_STACK enum constants

2014-05-01 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.h | 46 +++--- 1 file changed, 11 insertions(+), 35 deletions(-) diff --git a/tcg/ppc64/tcg-target.h b/tcg/ppc64/tcg-target.h index 29f479a..2c1cfc1 100644 ---

[Qemu-devel] [PATCH 07/26] tcg-ppc64: Move call macros out of tcg-target.h

2014-05-01 Thread Richard Henderson
These values are private to tcg.c; we don't need to expose this nonsense to the translators. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 5 + tcg/ppc64/tcg-target.h | 6 -- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git

[Qemu-devel] [PATCH 03/26] tcg-ppc64: Move functions around

2014-05-01 Thread Richard Henderson
Code movement only. This will allow us to make use of the other tcg_out_* functions in tidying their implementations. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 1178 1 file changed, 589 insertions(+), 589

[Qemu-devel] [PATCH 11/26] tcg-ppc64: Support the ppc64 elfv2 ABI

2014-05-01 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 4 1 file changed, 4 insertions(+) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 31c3a7a..d3cc237 100644 --- a/tcg/ppc64/tcg-target.c +++ b/tcg/ppc64/tcg-target.c @@ -1414,6 +1414,10 @@

[Qemu-devel] [PATCH 08/26] tcg-ppc64: Fix TCG_TARGET_CALL_STACK_OFFSET

2014-05-01 Thread Richard Henderson
The calling convention reserves space for the 8 register parameters on the stack, so using only 6*8=48 as the offset was wrong. We never saw this bug because we don't have any helpers with more than 5 parameters. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 2

[Qemu-devel] [PATCH 09/26] tcg-ppc64: Better parameterize the stack frame

2014-05-01 Thread Richard Henderson
In preparation for supporting other ABIs. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 64 -- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index

[Qemu-devel] [PATCH 12/26] tcg-ppc64: Adjust tcg_out_call for ELFv2

2014-05-01 Thread Richard Henderson
From: Ulrich Weigand ulrich.weig...@de.ibm.com The new ELFv2 ABI, used by default on powerpc64le-linux hosts, introduced some changes that are incompatible with code currently generated by the ppc64 TGC target. In particular, we no longer use function descriptors. This patch adds support for

[Qemu-devel] [PATCH 05/26] tcg-ppc64: Use tcg_out_{ld, st, cmp} internally

2014-05-01 Thread Richard Henderson
Rather than using tcg_out32 and opcodes directly. This allows us to remove LD_ADDR and CMP_L macros. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 33 ++--- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git

[Qemu-devel] [PATCH 01/26] tcg-ppc: Use uintptr_t in ppc_tb_set_jmp_target

2014-05-01 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- include/exec/exec-all.h | 2 +- tcg/ppc/tcg-target.c| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 0766e24..612b447 100644 --- a/include/exec/exec-all.h +++

[Qemu-devel] [PATCH 17/26] tcg-ppc64: Merge ppc32 qemu_ld/st

2014-05-01 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 290 +++-- 1 file changed, 206 insertions(+), 84 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 4b846a2..d333da0 100644 ---

[Qemu-devel] [PATCH 10/26] tcg-ppc64: Use the correct test in tcg_out_call

2014-05-01 Thread Richard Henderson
The correct test uses the _CALL_AIX macro, not a host-specific macro. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index a198a70..31c3a7a

[Qemu-devel] [PATCH 18/26] tcg-ppc64: Merge ppc32 register usage

2014-05-01 Thread Richard Henderson
Good enough to run some instructions before things go awry. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 61 -- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/tcg/ppc64/tcg-target.c

[Qemu-devel] [PATCH 13/26] tcg-ppc64: Merge 32-bit ABIs into the prologue / frame code

2014-05-01 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 39 --- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 635ff98..8d932eb 100644 --- a/tcg/ppc64/tcg-target.c +++

[Qemu-devel] [PATCH 19/26] tcg-ppc64: Support mulsh_i32

2014-05-01 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 5 + tcg/ppc64/tcg-target.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index cd68834..860c408 100644 --- a/tcg/ppc64/tcg-target.c +++

[Qemu-devel] [PATCH 20/26] tcg-ppc64: Merge ppc32 shifts

2014-05-01 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 40 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 860c408..7bbb02e 100644 --- a/tcg/ppc64/tcg-target.c +++

[Qemu-devel] [PATCH 14/26] tcg-ppc64: Fix sub2 implementation

2014-05-01 Thread Richard Henderson
All sorts of confusion on argument ordering. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 8d932eb..22cfa1e 100644 ---

[Qemu-devel] [PATCH 23/26] qemu/osdep: Remove the need for qemu_init_auxval

2014-05-01 Thread Richard Henderson
Instead of getting backup auxv data from the env pointer given to main, read it from /proc/self/auxv. We can do this at any time, so we're not tied to any ordering wrt a call to qemu_init_auxval from main. Signed-off-by: Richard Henderson r...@twiddle.net --- include/qemu/osdep.h | 12

[Qemu-devel] [PATCH 16/26] tcg-ppc64: Merge ppc32 brcond2, setcond2, muluh

2014-05-01 Thread Richard Henderson
Now passes tcg_add_target_add_op_defs assertions, but not complete enough to function. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc64/tcg-target.c | 96 +- tcg/ppc64/tcg-target.h | 2 +- 2 files changed, 96 insertions(+), 2

[Qemu-devel] [PATCH 22/26] tcg-ppc: Rename the tcg/ppc64 backend

2014-05-01 Thread Richard Henderson
The other tcg backends that support 32- and 64-bit modes use the 32-bit name for the port. Follow suit. Signed-off-by: Richard Henderson r...@twiddle.net --- configure | 4 ++-- tcg/{ppc64 = ppc}/tcg-target.c | 0 tcg/{ppc64 = ppc}/tcg-target.h | 0 3 files changed, 2

[Qemu-devel] [PATCH 16/22] sheepdog: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Convert qemu_aio_set_fd_handler() to aio_set_fd_handler() and qemu_aio_wait() to aio_poll(). The .bdrv_detach/attach_aio_context() interfaces also need to be implemented to move the socket fd handler from the old to the new AioContext.

[Qemu-devel] [PATCH 24/26] tcg-ppc: Merge cache-utils into the backend

2014-05-01 Thread Richard Henderson
As a utility, it only supported ppc, and in a way that other tcg backends provided directly in tcg-target.h. Removing this disparity is easier now that the two ppc backends are merged. Signed-off-by: Richard Henderson r...@twiddle.net --- exec.c | 1 -

[Qemu-devel] [PATCH 25/26] tcg-ppc64: Use the return address as a base pointer

2014-05-01 Thread Richard Henderson
This can significantly reduce code size for generation of (some) 64-bit constants. With the side effect that we know for a fact that exit_tb can use the register to good effect. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/ppc/tcg-target.c | 105

  1   2   >