Re: [Qemu-devel] [PATCH] usb: fix libusb config variable name.

2017-09-26 Thread Jan Kiszka
On 2017-09-26 08:38, Gerd Hoffmann wrote: > Cc: Jan Kiszka > Fixes: 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1 > Signed-off-by: Gerd Hoffmann > --- > hw/usb/Makefile.objs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs > index 9

Re: [Qemu-devel] [PATCH] spapr: move registration of "host" CPU core type to machine code

2017-09-26 Thread Greg Kurz
On Tue, 26 Sep 2017 12:57:39 +1000 David Gibson wrote: > On Mon, Sep 25, 2017 at 11:47:33AM +0200, Greg Kurz wrote: > > The CPU core abstraction belongs to the machine code. This also gets > > rid of some code duplication. > > > > Signed-off-by: Greg Kurz > > --- > > > > hw/ppc/spapr_cpu_core.

Re: [Qemu-devel] [PATCH] usb: fix libusb config variable name.

2017-09-26 Thread Gerd Hoffmann
On Tue, 2017-09-26 at 09:16 +0200, Jan Kiszka wrote: > On 2017-09-26 08:38, Gerd Hoffmann wrote: > > Cc: Jan Kiszka > > Fixes: 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1 > > Signed-off-by: Gerd Hoffmann > > --- > >  hw/usb/Makefile.objs | 2 +- > >  1 file changed, 1 insertion(+), 1 deletion(-) > >

[Qemu-devel] Time for a seabios 1.11 release?

2017-09-26 Thread Gerd Hoffmann
Hi, Quite a few changes accumulated in master. Time to plan a new release I think, so we can pick up the improvements in qemu 2.11. Comments? Anything pending for qemu which needs firmware support? cheers, Gerd

Re: [Qemu-devel] [PATCH 5/5] s390x/ccs: add ccw-tester emulated device

2017-09-26 Thread Dong Jia Shi
* Cornelia Huck [2017-09-21 10:54:02 +0200]: > On Thu, 21 Sep 2017 16:45:47 +0800 > Dong Jia Shi wrote: > > > * Cornelia Huck [2017-09-07 10:08:17 +0200]: > > > > [...] > > > > > > I'm thinking of a method these days: > > > > Could passing through an fully emulated ccw device (e.g. 3270), or

Re: [Qemu-devel] [PULL 00/31] Trivial patches for 2017-09-25

2017-09-26 Thread Eduardo Otubo
On Tue, Sep 26, 2017 at 08:57:00AM +0300, Michael Tokarev wrote: > 26.09.2017 02:22, Peter Maydell wrote: > [] > >> trivial patches for 2017-09-25 > > > > This fails 'make check' on most of my configs: > > > > GTESTER check-qtest-ppc64 > > qemu-system-ppc64: -object > > filter-mirror,id=qtest-f

Re: [Qemu-devel] [Qemu-block] [PATCH 0/5] commit: Support multiple roots above top node

2017-09-26 Thread Kevin Wolf
Am 25.09.2017 um 22:02 hat John Snow geschrieben: > On 09/25/2017 08:28 AM, Kevin Wolf wrote: > > This is a step towards making the commit job flexible enough that it can > > work with any kind of block graph. Currently, it requires that not only > > the top and base node of the commit operation ar

Re: [Qemu-devel] [PATCH] usb: fix libusb config variable name.

2017-09-26 Thread Jan Kiszka
On 2017-09-26 09:21, Gerd Hoffmann wrote: > On Tue, 2017-09-26 at 09:16 +0200, Jan Kiszka wrote: >> On 2017-09-26 08:38, Gerd Hoffmann wrote: >>> Cc: Jan Kiszka >>> Fixes: 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1 >>> Signed-off-by: Gerd Hoffmann >>> --- >>>  hw/usb/Makefile.objs | 2 +- >>>  1 fil

Re: [Qemu-devel] [PATCH v6 00/22] instrument: Add basic event instrumentation

2017-09-26 Thread Lluís Vilanova
Emilio G Cota writes: > On Mon, Sep 25, 2017 at 21:07:45 +0300, Lluís Vilanova wrote: >> You're doing it right, and I've checked that the branch is properly pushed. >> Can >> you compile with V=1 to show me the failing cmdline? > $ make V=1 > (cd /data/src/qemu2; printf '#define QEMU_PKGVERSION

Re: [Qemu-devel] [PATCH] qemu-doc.texi: remove trailing whitespace

2017-09-26 Thread Stefan Hajnoczi
On Tue, Sep 26, 2017 at 09:09:44AM +0300, Michael Tokarev wrote: > Reported-By: Vagrant Cascadian > Signed-off-by: Michael Tokarev > --- > qemu-doc.texi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Stefan Hajnoczi

Re: [Qemu-devel] [PATCH] spapr: move registration of "host" CPU core type to machine code

2017-09-26 Thread Igor Mammedov
On Tue, 26 Sep 2017 09:19:28 +0200 Greg Kurz wrote: > On Tue, 26 Sep 2017 12:57:39 +1000 > David Gibson wrote: > > > On Mon, Sep 25, 2017 at 11:47:33AM +0200, Greg Kurz wrote: > > > The CPU core abstraction belongs to the machine code. This also gets > > > rid of some code duplication. > > >

Re: [Qemu-devel] A glib warning encountered with internal iothread

2017-09-26 Thread Stefan Hajnoczi
On Tue, Sep 26, 2017 at 01:44:39PM +0800, Peter Xu wrote: > Hi, > > Generally speaking this is a question about glib, but I would like to > see how the list sees this before throwing this question to glib > community in case I made severe mistake. > > I encountered one glib warning when start to

Re: [Qemu-devel] [PATCH v3 1/4] qom: provide root container for internal objs

2017-09-26 Thread Stefan Hajnoczi
On Tue, Sep 26, 2017 at 12:52:09PM +0800, Peter Xu wrote: > diff --git a/include/qom/object.h b/include/qom/object.h > index f3e5cff..f567052 100644 > --- a/include/qom/object.h > +++ b/include/qom/object.h > @@ -1214,6 +1214,16 @@ Object *object_get_root(void); > Object *object_get_objects_root(v

Re: [Qemu-devel] [PATCH v3 2/4] iothread: provide helpers for internal use

2017-09-26 Thread Stefan Hajnoczi
On Tue, Sep 26, 2017 at 12:52:10PM +0800, Peter Xu wrote: > IOThread is a general framework that contains IO loop environment and a > real thread behind. It's also good to be used internally inside qemu. > Provide some helpers for it to create iothreads to be used internally. > > Put all the inte

Re: [Qemu-devel] [RFC v2 05/33] migration: better error handling with QEMUFile

2017-09-26 Thread Peter Xu
On Thu, Sep 21, 2017 at 06:51:37PM +0100, Dr. David Alan Gilbert wrote: > * Peter Xu (pet...@redhat.com) wrote: > > If the postcopy down due to some reason, we can always see this on dst: > > > > qemu-system-x86_64: RP: Received invalid message 0x length 0x > > > > However in most cases

Re: [Qemu-devel] [PATCH v1 03/27] target/s390x: get rid of next_core_id

2017-09-26 Thread Igor Mammedov
On Mon, 25 Sep 2017 16:14:16 -0700 Richard Henderson wrote: > On 09/18/2017 08:59 AM, David Hildenbrand wrote: > > /* sync cs->cpu_index and env->core_id. The latter is needed for TCG. > > */ > > -cs->cpu_index = env->core_id; > > +cs->cpu_index = cpu->env.core_id; > > +#endif >

Re: [Qemu-devel] [PATCH v3 1/4] qom: provide root container for internal objs

2017-09-26 Thread Peter Xu
On Tue, Sep 26, 2017 at 09:46:16AM +0100, Stefan Hajnoczi wrote: > On Tue, Sep 26, 2017 at 12:52:09PM +0800, Peter Xu wrote: > > diff --git a/include/qom/object.h b/include/qom/object.h > > index f3e5cff..f567052 100644 > > --- a/include/qom/object.h > > +++ b/include/qom/object.h > > @@ -1214,6 +1

Re: [Qemu-devel] [RFC v2 05/33] migration: better error handling with QEMUFile

2017-09-26 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Thu, Sep 21, 2017 at 06:51:37PM +0100, Dr. David Alan Gilbert wrote: > > * Peter Xu (pet...@redhat.com) wrote: > > > If the postcopy down due to some reason, we can always see this on dst: > > > > > > qemu-system-x86_64: RP: Received invalid message 0x0

Re: [Qemu-devel] [PATCH v1 0/8] Remove some of the fprintf(stderr, "*

2017-09-26 Thread Stefan Hajnoczi
On Mon, Sep 25, 2017 at 05:08:34PM -0700, Alistair Francis wrote: > > Continue on improving QEMUs logging/error messages by removing more > fprintf()'s. > > Unfortunatley my Coccinelle skills aren't that great so it's all done in > some nasty regex and a little bit of manual work. > > > > Alis

Re: [Qemu-devel] A glib warning encountered with internal iothread

2017-09-26 Thread Peter Xu
On Tue, Sep 26, 2017 at 09:43:37AM +0100, Stefan Hajnoczi wrote: > On Tue, Sep 26, 2017 at 01:44:39PM +0800, Peter Xu wrote: > > Hi, > > > > Generally speaking this is a question about glib, but I would like to > > see how the list sees this before throwing this question to glib > > community in c

Re: [Qemu-devel] [RFC v2 05/33] migration: better error handling with QEMUFile

2017-09-26 Thread Peter Xu
On Tue, Sep 26, 2017 at 09:53:44AM +0100, Dr. David Alan Gilbert wrote: > * Peter Xu (pet...@redhat.com) wrote: > > On Thu, Sep 21, 2017 at 06:51:37PM +0100, Dr. David Alan Gilbert wrote: [...] > > > > @@ -1969,6 +2002,10 @@ static int qemu_loadvm_state_main(QEMUFile *f, > > > > MigrationIncomin

Re: [Qemu-devel] [PATCH/RFC 2/3] s390x/ais: enable ais when migration is available

2017-09-26 Thread Yi Min Zhao
在 2017/9/25 下午7:47, Christian Borntraeger 写道: On 09/25/2017 01:45 PM, Cornelia Huck wrote: On Mon, 25 Sep 2017 12:12:49 +0200 Christian Borntraeger wrote: On 09/25/2017 12:07 PM, Cornelia Huck wrote: On Fri, 22 Sep 2017 16:27:00 +0200 Halil Pasic wrote: One thing I would find very he

Re: [Qemu-devel] [PATCH v2] s390x: use generic cpu_model parsing

2017-09-26 Thread Cornelia Huck
On Thu, 21 Sep 2017 14:59:08 +0200 Igor Mammedov wrote: > define default CPU type in generic way in machine class_init s/define/Define/ > and let common machine code to handle cpu_model parsing. s/to handle/handle/ (fixed that up) > > Signed-off-by: Igor Mammedov > Reviewed-by: David Hilde

Re: [Qemu-devel] [RFC 0/6] initial plugin support

2017-09-26 Thread Stefan Hajnoczi
On Tue, Sep 26, 2017 at 06:22:31AM +0200, Thomas Huth wrote: > On 06.09.2017 22:28, Emilio G. Cota wrote: > > Related threads: > > [PATCH 00/13] instrument: Add basic event instrumentation > > Date: Mon, 24 Jul 2017 20:02:24 +0300 > > https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg0

Re: [Qemu-devel] [RFC v2 09/33] migration: implement "postcopy-pause" src logic

2017-09-26 Thread Peter Xu
On Thu, Sep 21, 2017 at 08:21:45PM +0100, Dr. David Alan Gilbert wrote: > * Peter Xu (pet...@redhat.com) wrote: > > Now when network down for postcopy, the source side will not fail the > > migration. Instead we convert the status into this new paused state, and > > we will try to wait for a rescue

Re: [Qemu-devel] [RFC PATCH v2 01/21] ppc/xive: introduce a skeleton for the sPAPR XIVE interrupt controller

2017-09-26 Thread Benjamin Herrenschmidt
On Tue, 2017-09-26 at 13:54 +1000, David Gibson wrote: > > > > > > Which ones? My impression was that there needed to be at least #cpus > > > * #priority-levels EQs, but there could be more than that, > > > > euh no, not in spapr mode at least. There are 8 queues per cpu. > > Ok. There's a HW

Re: [Qemu-devel] [PATCH v2] s390x: use generic cpu_model parsing

2017-09-26 Thread Igor Mammedov
On Tue, 26 Sep 2017 11:24:25 +0200 Cornelia Huck wrote: > On Thu, 21 Sep 2017 14:59:08 +0200 > Igor Mammedov wrote: > > > define default CPU type in generic way in machine class_init > > s/define/Define/ > > > and let common machine code to handle cpu_model parsing. > > s/to handle/handl

Re: [Qemu-devel] [PATCH v2 4/6] migration: wire vmstate_save_state errors up to vmstate_subsection_save

2017-09-26 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Mon, Sep 25, 2017 at 12:29:15PM +0100, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > Route the errors from vmstate_subsection_save up through > > vmstate_subsection_save (and back down, all rather recursive). > > I guess

Re: [Qemu-devel] [PATCH v2 6/6] migration: Route more error paths

2017-09-26 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Mon, Sep 25, 2017 at 12:29:17PM +0100, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > vmstate_save is called in a few places, and vmstate_save_state is > > called in lots of places. > > vmstate_save() should have been pro

Re: [Qemu-devel] [PATCH v3 0/3] add bdrv_co_drain_begin/end BlockDriver callbacks

2017-09-26 Thread Stefan Hajnoczi
On Sat, Sep 23, 2017 at 02:14:08PM +0300, Manos Pitsidianakis wrote: > This patch series renames bdrv_co_drain to bdrv_co_drain_begin and adds a new > bdrv_co_drain_end callback to match bdrv_drained_begin/end and > drained_begin/end of BdrvChild. This is needed because the throttle driver > (bl

Re: [Qemu-devel] [PATCH v2] s390x/kvm: fix and cleanup storing CPU status

2017-09-26 Thread Cornelia Huck
On Fri, 22 Sep 2017 16:03:38 +0200 David Hildenbrand wrote: > env->psa is a 64bit value, while we copy 4 bytes into the save area, > resulting always in 0 getting stored. > > Let's try to reduce such errors by using a proper structure. While at > it, use correct cpu->be conversion (and get_psw_m

Re: [Qemu-devel] [PATCH] hw/core/qdev: Do not allow hot-plugging without hotplug controller

2017-09-26 Thread Thomas Huth
On 21.09.2017 19:56, Eduardo Habkost wrote: > On Thu, Sep 07, 2017 at 11:22:42AM +0200, Thomas Huth wrote: >> qdev_unplug() bails out with an assertion if the user tries to device_del >> a hot-plugged device that does not have a hotplug controller. Unfortunately, >> our devices are all marked with

Re: [Qemu-devel] [PATCH v4 3/5] virtio-ccw: use ccw data stream

2017-09-26 Thread Cornelia Huck
On Fri, 22 Sep 2017 17:39:35 +0200 Pierre Morel wrote: > On 21/09/2017 20:08, Halil Pasic wrote: > > Replace direct access which implicitly assumes no IDA > > or MIDA with the new ccw data stream interface which should > > cope with these transparently in the future. > > > > Signed-off-by: Halil

Re: [Qemu-devel] ping Re: [PATCH v7 03/16] migration: split common postcopy out of ram postcopy

2017-09-26 Thread Kevin Wolf
Am 25.09.2017 um 17:27 hat Dr. David Alan Gilbert geschrieben: > > > Whatever you think the preferred way to set up postcopy migration is: If > > > something worked before this patch and doesn't after it, that's a > > > regression and breaks backwards compatibility. > > > > > > If we were talking

Re: [Qemu-devel] [PULL 01/12] vl: Clean up user-creatable objects when exiting

2017-09-26 Thread Christian Borntraeger
This patch triggers the following crash on shutdown: Stack trace of thread 61598: #0 0x03ff8990915e pthread_join (libpthread.so.0) #1 0x014ddfda qemu_thread_join (qemu-system-s390x) #2 0x011bbd68 iothread_stop

Re: [Qemu-devel] [PATCH v4 3/5] virtio-ccw: use ccw data stream

2017-09-26 Thread Halil Pasic
On 09/26/2017 12:10 PM, Cornelia Huck wrote: > On Fri, 22 Sep 2017 17:39:35 +0200 > Pierre Morel wrote: > >> On 21/09/2017 20:08, Halil Pasic wrote: >>> Replace direct access which implicitly assumes no IDA >>> or MIDA with the new ccw data stream interface which should >>> cope with these tran

Re: [Qemu-devel] [PATCH v4 0/5] add CCW indirect data access support

2017-09-26 Thread Cornelia Huck
On Thu, 21 Sep 2017 20:08:36 +0200 Halil Pasic wrote: > Abstract > > > The objective of this series is introducing CCW IDA (indirect data > access) support to our virtual channel subsystem implementation. Briefly > CCW IDA can be thought of as a kind of a scatter gather support for a >

Re: [Qemu-devel] [Qemu-stable] [PATCH] migration: disable auto-converge during bulk block migration

2017-09-26 Thread Peter Lieven
Am 25.09.2017 um 22:53 schrieb Michael Roth: Quoting Peter Lieven (2017-09-21 07:32:32) auto-converge and block migration currently do not play well together. During block migration the auto-converge logic detects that ram migration makes no progress and thus throttles down the vm until it nearl

[Qemu-devel] [PATCH V2] migration: disable auto-converge during bulk block migration

2017-09-26 Thread Peter Lieven
auto-converge and block migration currently do not play well together. During block migration the auto-converge logic detects that ram migration makes no progress and thus throttles down the vm until it nearly stalls completely. Avoid this by disabling the throttling logic during the bulk phase of

Re: [Qemu-devel] [PATCH v2] qdev: Mark devices as non-hotpluggable by default

2017-09-26 Thread Thomas Huth
On 26.09.2017 07:26, Bharata B Rao wrote: > On Fri, Sep 22, 2017 at 11:16:34AM +0200, Thomas Huth wrote: >> Historically we've marked all devices as hotpluggable by default. However, >> most devices are not hotpluggable, and you also need a HotplugHandler to >> support these devices. So if the user

Re: [Qemu-devel] ping Re: [PATCH v7 03/16] migration: split common postcopy out of ram postcopy

2017-09-26 Thread Dr. David Alan Gilbert
* Kevin Wolf (kw...@redhat.com) wrote: > Am 25.09.2017 um 17:27 hat Dr. David Alan Gilbert geschrieben: > > > > Whatever you think the preferred way to set up postcopy migration is: If > > > > something worked before this patch and doesn't after it, that's a > > > > regression and breaks backwards

Re: [Qemu-devel] [PATCH V2] migration: disable auto-converge during bulk block migration

2017-09-26 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Subject: [Qemu-devel] [PATCH V2] migration: disable auto-converge during bulk block migration Message-id: 1506421015-4737-1-git-send-email...@kamp.de === TEST SCRIPT BEGIN === #!/bin/bash # Testing scri

Re: [Qemu-devel] [PATCH V2] migration: disable auto-converge during bulk block migration

2017-09-26 Thread Peter Lieven
Am 26.09.2017 um 12:16 schrieb Peter Lieven: auto-converge and block migration currently do not play well together. During block migration the auto-converge logic detects that ram migration makes no progress and thus throttles down the vm until it nearly stalls completely. Avoid this by disabling

[Qemu-devel] [PATCH V3] migration: disable auto-converge during bulk block migration

2017-09-26 Thread Peter Lieven
auto-converge and block migration currently do not play well together. During block migration the auto-converge logic detects that ram migration makes no progress and thus throttles down the vm until it nearly stalls completely. Avoid this by disabling the throttling logic during the bulk phase of

Re: [Qemu-devel] [PATCH v4 0/5] add CCW indirect data access support

2017-09-26 Thread Halil Pasic
On 09/26/2017 12:18 PM, Cornelia Huck wrote: > On Thu, 21 Sep 2017 20:08:36 +0200 > Halil Pasic wrote: > >> Abstract >> >> >> The objective of this series is introducing CCW IDA (indirect data >> access) support to our virtual channel subsystem implementation. Briefly >> CCW IDA can be

Re: [Qemu-devel] [PATCH 1/1] mach-virt: Set VM's SMBIOS system version to mc->name

2017-09-26 Thread Andrew Jones
On Fri, Sep 22, 2017 at 08:51:15AM -0500, Wei Huang wrote: > Instead of using "1.0" as the system version of SMBIOS, we should use > mc->name for mach-virt machine type. This matches with x86 code and > prevents the smbios_table.machine_type test of Avocado from failing. > > Signed-off-by: Wei Hua

Re: [Qemu-devel] [PATCH V3] migration: disable auto-converge during bulk block migration

2017-09-26 Thread Dr. David Alan Gilbert
* Peter Lieven (p...@kamp.de) wrote: > auto-converge and block migration currently do not play well together. > During block migration the auto-converge logic detects that ram > migration makes no progress and thus throttles down the vm until > it nearly stalls completely. Avoid this by disabling t

Re: [Qemu-devel] [PATCH v3 0/3] add bdrv_co_drain_begin/end BlockDriver callbacks

2017-09-26 Thread Stefan Hajnoczi
On Sat, Sep 23, 2017 at 02:14:08PM +0300, Manos Pitsidianakis wrote: > This patch series renames bdrv_co_drain to bdrv_co_drain_begin and adds a new > bdrv_co_drain_end callback to match bdrv_drained_begin/end and > drained_begin/end of BdrvChild. This is needed because the throttle driver > (bl

[Qemu-devel] [PATCH] docker: test-block: Don't continue if build fails

2017-09-26 Thread Fam Zheng
Report error and exit upon compiling error, otherwise the iotests output will be pure noise. Signed-off-by: Fam Zheng --- tests/docker/test-block | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker/test-block b/tests/docker/test-block index 2ca1ce54f6..5624b81827 100

[Qemu-devel] [PATCH 05/43] windbg: added helper features

2017-09-26 Thread Mihail Abakumov
Added some helper features for windbgstub. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h | 46 +++ include/exec/windbgstub.h |3 +++ windbgstub.c

[Qemu-devel] [PATCH 02/43] windbg: added windbg's KD header file

2017-09-26 Thread Mihail Abakumov
Header file from windbg's source code describing the main structures. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgkd.h | 955 +++ include/exec/windbgstub-utils.h |1 2 fil

[Qemu-devel] [PATCH 00/43] Windbg supporting

2017-09-26 Thread Mihail Abakumov
We made the debugger module WinDbg (like GDB) for QEMU. This is the replacement of the remote stub in Windows kernel. Used for remote Windows kernel debugging without debugging mode. WinDbg is a multipurpose debugger for the Microsoft Windows computer operating system, distributed by Microsoft.

[Qemu-devel] [PATCH 24/43] windbg: implemented kd_api_get_context and kd_api_set_context

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |2 ++ windbgstub-utils.c | 37 + windbgstub.c|8 3 files changed, 47 inserti

[Qemu-devel] [PATCH 01/43] windbg: added empty windbgstub files

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- Makefile.target |5 + include/exec/windbgstub-utils.h | 18 ++ include/exec/windbgstub.h | 17 + windbgstub-utils.c |

[Qemu-devel] [PATCH 06/43] windbg: added WindbgState

2017-09-26 Thread Mihail Abakumov
Added definition of the WindbgState struct and its initialization. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/windbgstub.c b/windbgstub.c index

[Qemu-devel] [PATCH 03/43] windbg: modified windbgkd.h

2017-09-26 Thread Mihail Abakumov
Added useful name arrays of some defines. Not used yet. Needs for the future. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgkd.h | 75 +++ 1 file changed, 75 insertions(+) diff

[Qemu-devel] [PATCH 04/43] windbg: added '-windbg' option

2017-09-26 Thread Mihail Abakumov
This option starts windbg server. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- qemu-options.hx |8 vl.c|8 2 files changed, 16 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index 9f6e2adf

[Qemu-devel] [PATCH 07/43] windbg: added chardev

2017-09-26 Thread Mihail Abakumov
Added chardev for listening to windbg. Target device is a parameter in the '-windbg' option. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/windbgs

[Qemu-devel] [PATCH 25/43] windbg: implemented kd_api_read_control_space and kd_api_write_control_space

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |2 + windbgstub-utils.c | 81 +++ windbgstub.c|8 3 files changed, 91 insertions

[Qemu-devel] [PATCH 09/43] windbg: handler of fs/gs register

2017-09-26 Thread Mihail Abakumov
Added handler of fs/gs register. It tries to find and check KPCR and version address. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |5 +++ windbgstub-utils.c | 63 ++

[Qemu-devel] [PATCH 12/43] windbg: send data and control packets

2017-09-26 Thread Mihail Abakumov
Added functions for send data and control packets to windbg. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub.c | 56 1 file changed, 56 insertions(+) diff --git a/windbgstub

[Qemu-devel] [PULL 0/2] Fw 20170926 patches

2017-09-26 Thread Gerd Hoffmann
The following changes since commit 1e3ee834083227f552179f6e43902cba5a866e6b: Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into staging (2017-09-25 20:31:24 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/fw-20170926-pull-re

[Qemu-devel] [PATCH 13/43] windbg: handler of parsing context

2017-09-26 Thread Mihail Abakumov
Implemented handler of parsing context. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub.c | 36 ++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/windbgstub.c b/windbgstub.c index 2

[Qemu-devel] [PATCH 08/43] windbg: hook to wrmsr operation

2017-09-26 Thread Mihail Abakumov
Inserted hook to wrmsr operation. Windows Kernel put address on KPCR struct to fs/gs (x32/x64) register. Needs catch this moment and allow windbg server handle packets. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-u

[Qemu-devel] [PATCH 14/43] windbg: init DBGKD_ANY_WAIT_STATE_CHANGE

2017-09-26 Thread Mihail Abakumov
Added function for init DBGKD_ANY_WAIT_STATE_CHANGE. It is a header of 'state change' packets. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |8 + windbgstub-utils.c | 57 ++

[Qemu-devel] [PULL 1/2] add qemu_add_data_dir()

2017-09-26 Thread Gerd Hoffmann
Add helper function to add a directory to the qemu search path, so we don't duplicate the checks. Add a check for duplicate entries, so we stop trying to open files twice. Signed-off-by: Gerd Hoffmann Message-id: 20170914114236.25343-2-kra...@redhat.com --- vl.c | 34 +++

[Qemu-devel] [PATCH 10/43] windbg: structures for parsing data stream

2017-09-26 Thread Mihail Abakumov
Added structures for parsing data stream from windbg to packet. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h | 11 +++ windbgstub.c| 30 ++ 2 files c

[Qemu-devel] [PATCH 11/43] windbg: parsing data stream

2017-09-26 Thread Mihail Abakumov
Added function of parsing data stream from windbg to packet. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub.c | 111 +- 1 file changed, 110 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PATCH 27/43] windbg: implemented windbg_write_context

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub-utils.c | 207 1 file changed, 207 insertions(+) diff --git a/windbgstub-utils.c b/windbgstub-utils.c index 23bf4be9f0..73ff98dfbc

[Qemu-devel] [PATCH 18/43] windbg: windbg_vm_stop

2017-09-26 Thread Mihail Abakumov
Added function for stop vm. Also, ExceptionStateChange data is generated and sent here. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/windbgstu

[Qemu-devel] [PATCH 16/43] windbg: generate ExceptionStateChange

2017-09-26 Thread Mihail Abakumov
Added function for generate ExceptionStateChange packet. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |3 +++ windbgstub-utils.c | 21 - 2 files changed, 23 insertions(+)

[Qemu-devel] [PATCH 15/43] windbg: sized data buffer

2017-09-26 Thread Mihail Abakumov
Defined useful sized data buffer. It contains pointer to data and size of this data. Also, defined some macroses for init and free. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h | 15 +++ 1 file

[Qemu-devel] [PATCH 22/43] windbg: implemented kd_api_read_virtual_memory and kd_api_read_virtual_memory

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |2 ++ windbgstub-utils.c | 47 +++ windbgstub.c|8 +++ 3 files changed, 57 insert

[Qemu-devel] [PATCH 37/43] windbg: implemented kd_api_read_io_space and kd_api_write_io_space

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |2 + windbgstub-utils.c | 57 +++ windbgstub.c|8 + 3 files changed, 67 insertion

[Qemu-devel] [PATCH 17/43] windbg: generate LoadSymbolsStateChange

2017-09-26 Thread Mihail Abakumov
Added function for generate LoadSymbolsStateChange packet. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |1 + windbgstub-utils.c | 16 2 files changed, 17 insertions(+) dif

[Qemu-devel] [PATCH 19/43] windbg: implemented windbg_process_control_packet

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/windbgstub.c b/windbgstub.c index 3a13d22349..b8053102dd 100755 --- a/windbgstub.c +++

[Qemu-devel] [PATCH 26/43] windbg: implemented windbg_read_context

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub-utils.c | 90 +++- 1 file changed, 89 insertions(+), 1 deletion(-) diff --git a/windbgstub-utils.c b/windbgstub-utils.c index c3ae2ddf5

[Qemu-devel] [PATCH 20/43] windbg: implemented windbg_process_data_packet

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/windbgstub.c b/windbgstub.c index b8053102dd..b9993c90d4 100755 --- a/windbgstub.c +++ b/wind

[Qemu-devel] [PATCH 21/43] windbg: implemented windbg_process_manipulate_packet

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |2 ++ windbgstub-utils.c | 10 ++ windbgstub.c| 21 - 3 files changed, 32 insertions(+), 1 dele

[Qemu-devel] [PATCH 39/43] windbg: implemented kd_api_get_version

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |1 + windbgstub-utils.c | 23 +++ windbgstub.c|4 3 files changed, 28 insertions(+) diff --git

[Qemu-devel] [PULL 2/2] Add --firmwarepath to configure

2017-09-26 Thread Gerd Hoffmann
Add a firmware path config option to configure. Multiple directories are accepted, with the usual colon as separator. Default value is ${prefix}/share/qemu-firmware. The path is searched in addition to the current search path (typically ${prefix}/share/qemu). This prepares qemu for the planned

[Qemu-devel] [PATCH 28/43] windbg: implemented windbg_read_ks_regs

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub-utils.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/windbgstub-utils.c b/windbgstub-utils.c index 73ff98dfbc..537ba9e2aa 100755 --- a/wi

[Qemu-devel] [PATCH 42/43] windbg: implemented kd_api_fill_memory

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |1 + windbgstub-utils.c | 36 windbgstub.c|4 3 files changed, 41 insertions(+)

[Qemu-devel] [PATCH 29/43] windbg: implemented windbg_write_ks_regs

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub-utils.c | 117 1 file changed, 117 insertions(+) diff --git a/windbgstub-utils.c b/windbgstub-utils.c index 537ba9e2aa..f788df2736

[Qemu-devel] [PATCH 23/43] windbg: kernel's structures

2017-09-26 Thread Mihail Abakumov
Defined Windows kernel's structures (CPU_CONTEXT and CPU_KSPECIAL_REGISTERS) for i386 and x64_86. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub-utils.c | 247 1 file changed, 2

[Qemu-devel] [PATCH 36/43] windbg: implemented kd_api_continue

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |1 + windbgstub-utils.c | 15 +++ windbgstub.c|5 + 3 files changed, 21 insertions(+) diff --git a/inclu

[Qemu-devel] [PATCH 30/43] windbg: implemented windbg_set_sr

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub-utils.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/windbgstub-utils.c b/windbgstub-utils.c index f788df2736..238db03714 100755 --- a/windbgst

[Qemu-devel] [PATCH 0/1] qemu-firmware repo

2017-09-26 Thread Gerd Hoffmann
Hi, Ok, we want for varios reasons separate the firmware from the main qemu repo. Here is my attempt to create such a repo. For starters only seabios has been added here. You can find the repo with currently three patches here: https://www.kraxel.org/cgit/qemu-firmware/ This "series" is

[Qemu-devel] [PATCH 31/43] windbg: implemented windbg_set_dr

2017-09-26 Thread Mihail Abakumov
Defined useful macroses for breakpoints. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub-utils.c | 50 +- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/windbgstub-util

[Qemu-devel] [PATCH 38/43] windbg: implemented kd_api_read_physical_memory and kd_api_write_physical_memory

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |2 ++ windbgstub-utils.c | 28 windbgstub.c|8 3 files changed, 38 insertions(+) d

[Qemu-devel] [PATCH 33/43] windbg: implemented windbg_hw_breakpoint_insert and windbg_hw_breakpoint_remove

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub-utils.c | 60 1 file changed, 60 insertions(+) diff --git a/windbgstub-utils.c b/windbgstub-utils.c index e33789725e..05caf98c0c 1

[Qemu-devel] [PATCH 32/43] windbg: implemented windbg_set_dr7

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- windbgstub-utils.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/windbgstub-utils.c b/windbgstub-utils.c index 58c4c98f04..e33789725e 100755 ---

[Qemu-devel] [PATCH 1/1] add Makefile, add configs for seabios

2017-09-26 Thread Gerd Hoffmann
Largely identical to roms/Makefile in qemu repo. Paths have been adapted to qemu-firmware repo layout. seabios submodule is updated automatically for builds. "make install" target has been added. "make help" text is more verbose. Signed-off-by: Gerd Hoffmann --- Makefile | 80 +++

[Qemu-devel] [PATCH 41/43] windbg: implemented kd_api_search_memory

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |1 + windbgstub-utils.c | 30 ++ windbgstub.c|4 3 files changed, 35 insertions(+) diff

[Qemu-devel] [PATCH 34/43] windbg: implemented kd_api_write_breakpoint and kd_api_restore_breakpoint

2017-09-26 Thread Mihail Abakumov
Added supporting of windbg breakpoints. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |2 + windbgstub-utils.c | 77 ++- windbgstub.c|

Re: [Qemu-devel] A glib warning encountered with internal iothread

2017-09-26 Thread Fam Zheng
On Tue, 09/26 17:11, Peter Xu wrote: > If glib unset the flag after calling the destructor, it'll be fine. > But it's not doing it that way. And with above implementation of > glib, I don't see a good way to solve this problem via ordering of > glib calls... :( Does this work? --- diff --git a/

Re: [Qemu-devel] [PATCH v4 0/5] add CCW indirect data access support

2017-09-26 Thread Cornelia Huck
[Restored cc:s] On Tue, 26 Sep 2017 12:45:11 +0200 Halil Pasic wrote: > On 09/26/2017 12:18 PM, Cornelia Huck wrote: > > On Thu, 21 Sep 2017 20:08:36 +0200 > > Halil Pasic wrote: > > > >> Abstract > >> > >> > >> The objective of this series is introducing CCW IDA (indirect data > >>

[Qemu-devel] [PATCH 43/43] windbg: implemented kd_api_query_memory

2017-09-26 Thread Mihail Abakumov
Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- include/exec/windbgstub-utils.h |1 + windbgstub-utils.c | 14 ++ windbgstub.c|4 3 files changed, 19 insertions(+) diff --git a/include

[Qemu-devel] [PATCH v2] virtio-input: send rel-wheel events for wheel buttons

2017-09-26 Thread Gerd Hoffmann
qemu uses wheel-up/down button events for mouse wheel input, however linux applications typically want REL_WHEEL events. This fixes wheel with linux guests. Tested with X11/wayland, and windows virtio-input driver. Based on a patch from Marc. Added property to enable/disable wheel axis. Cc: Marc

[Qemu-devel] [PATCH 35/43] windbg: debug exception subscribing

2017-09-26 Thread Mihail Abakumov
Added handler registration of gdb debug exception. Its exception also can be used for windbg. Signed-off-by: Mihail Abakumov Signed-off-by: Pavel Dovgalyuk Signed-off-by: Dmitriy Koltunov --- cpus.c | 18 +- gdbstub.c |4 include/sysem

  1   2   3   4   >