Re: [Qemu-devel] [Qemu-arm] [PATCH v7 00/20] ARM SMMUv3 Emulation Support

2017-10-23 Thread Linu Cherian
Hi Eric, On Fri Sep 01, 2017 at 07:21:03PM +0200, Eric Auger wrote: > This series implements the emulation code for ARM SMMUv3. > > Changes since v6: > - DPDK testpmd now running on guest with 2 assigned VFs > - Changed the instantiation method: add the following option to > the QEMU command

[Qemu-devel] [PATCH v2] throttle: fix a qemu crash problem when calling blk_delete

2017-10-23 Thread sochin jiang
commit 7ca7f0 moves the throttling related part of the BDS life cycle management to BlockBackend, adds call to throttle_timers_detach_aio_context in blk_remove_bs. commit 1606e remove a block device from its throttle group in blk_delete by calling blk_io_limits_disable, this fix an easily

Re: [Qemu-devel] [libfdt][PATCH v2] implement strnlen for systems that need it

2017-10-23 Thread Programmingkid
> On Oct 22, 2017, at 1:33 AM, David Gibson wrote: > > On Fri, Oct 20, 2017 at 04:44:58PM -0700, Richard Henderson wrote: >> On 10/20/2017 10:55 AM, John Arbuckle wrote: >>> +static inline size_t strnlen(const char *string, size_t max_count) >>> +{ >>> +size_t

Re: [Qemu-devel] [libfdt][PATCH v3] implement strnlen for systems that need it

2017-10-23 Thread Programmingkid
> On Oct 23, 2017, at 12:27 PM, Peter Maydell wrote: > > On 23 October 2017 at 17:09, Stefan Hajnoczi wrote: >>> +/* strnlen() is not available on Mac OS < 10.7 */ >>> +# if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7) >> >> Does this

Re: [Qemu-devel] [PATCH v7 21/52] tcg: Use offsets not indices for TCGv_*

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/24/2017 12:22 AM, Philippe Mathieu-Daudé wrote: > On 10/20/2017 08:19 PM, Richard Henderson wrote: >> Using the offset of a temporary, relative to TCGContext, rather than >> its index means that we don't use 0. That leaves offset 0 free for >> a NULL representation without having to leave

[Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc .

2017-10-23 Thread Changlimin
Hi, I am glad to see that qcow2 file created with preallocation=full/falloc can be resized. But when I test it, qemu-img crashs. qemu-img: block/qcow2-refcount.c:530: qcow2_refcount_area: Assertion `!(start_offset % s->cluster_size)' failed. These are commands: qemu-img create -f qcow2 -o

Re: [Qemu-devel] [RFC v2] e1000: Faulty tx checksum offload corrupts packets

2017-10-23 Thread Jason Wang
On 2017年10月24日 08:22, Ed Swierk wrote: [Resending to full set of maintainers] v2: Cosmetic fixes for checkpatch/buildbot errors The transmit checksum offload implementation in QEMU's e1000 device is deficient and causes packet data corruption in some situations. According to the Intel 8254x

[Qemu-devel] 答复: [Qemu-block] [PATCH] block: all I/O should be completed before removing throttle timers.

2017-10-23 Thread lizhengui
Ok,thanks for your reply. -邮件原件- 发件人: Stefan Hajnoczi [mailto:stefa...@gmail.com] 发送时间: 2017年10月24日 1:41 收件人: lizhengui 抄送: kw...@redhat.com; jc...@redhat.com; mre...@redhat.com; pbonz...@redhat.com; Lulina (A); qemu-bl...@nongnu.org; Subo (A); Fangyi (C); qemu-devel@nongnu.org;

Re: [Qemu-devel] [PATCH v7 21/52] tcg: Use offsets not indices for TCGv_*

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/23/2017 02:37 PM, Emilio G. Cota wrote: > On Fri, Oct 20, 2017 at 16:19:52 -0700, Richard Henderson wrote: >> Using the offset of a temporary, relative to TCGContext, rather than >> its index means that we don't use 0. That leaves offset 0 free for >> a NULL representation without having to

Re: [Qemu-devel] [PATCH v7 21/52] tcg: Use offsets not indices for TCGv_*

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > Using the offset of a temporary, relative to TCGContext, rather than > its index means that we don't use 0. That leaves offset 0 free for > a NULL representation without having to leave index 0 unused. > > Signed-off-by: Richard Henderson

Re: [Qemu-devel] [libfdt][PATCH v3] implement strnlen for systems that need it

2017-10-23 Thread Programmingkid
> On Oct 23, 2017, at 12:09 PM, Stefan Hajnoczi wrote: > > On Sun, Oct 22, 2017 at 10:50:16PM -0400, John Arbuckle wrote: >> Prior the Mac OS 10.7, the function strnlen() was not available. This patch >> implements strnlen() on Mac OS X versions that are below 10.7. >> >>

Re: [Qemu-devel] [PATCH v7 19/52] tcg: Remove TCGV_EQUAL*

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > When we used structures for TCGv_*, we needed a macro in order to > perform a comparison. Now that we use pointers, this is just clutter. > > Signed-off-by: Richard Henderson > --- > tcg/tcg-op.h| 6

Re: [Qemu-devel] [PATCH v7 07/52] tcg: Return NULL temp for TCG_CALL_DUMMY_ARG

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > From: Richard Henderson > > Reviewed-by: Emilio G. Cota > Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé > --- > tcg/tcg.h | 2 +- > 1 file changed,

[Qemu-devel] Migration - Random guest kernel panics on target

2017-10-23 Thread Fennosys
Hi, I'm encountering random guest kernel crashes while doing live migration with qemu (using qemu cli and monitor commands). QEMU emulator version 2.10.0 Host kernel: 4.13.9-gentoo Guest kernel: 4.13.9-gentoo Host cpu: model name : AMD Opteron(tm) Processor 6128 stepping: 1

Re: [Qemu-devel] [PATCH v7 17/52] tcg: Introduce temp_tcgv_{i32, i64, ptr}

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/tcg.h | 26 +- > tcg/tcg.c | 74 > +++ > 2 files changed, 53 insertions(+), 47

Re: [Qemu-devel] [PATCH v7 16/52] tcg: Introduce tcgv_{i32, i64, ptr}_{arg, temp}

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > Transform TCGv_* to an "argument" or a temporary. > For now, an argument is simply the temporary index. > > Signed-off-by: Richard Henderson > --- > include/exec/helper-gen.h | 10 ++--- >

Re: [Qemu-devel] [PATCH v7 15/52] tcg: Push tcg_ctx into tcg_gen_callN

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > Reviewed-by: Emilio G. Cota > Signed-off-by: Richard Henderson > --- > include/exec/helper-gen.h | 12 ++-- > tcg/tcg.h | 3 +-- > tcg/tcg.c | 4 ++-- > 3

Re: [Qemu-devel] [PATCH v7 14/52] tcg: Push tcg_ctx into generator functions

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > Reviewed-by: Emilio G. Cota > Signed-off-by: Richard Henderson > --- > tcg/tcg-op.h | 100 > +++ > tcg/tcg-op.c | 47

Re: [Qemu-devel] [PATCH v7 11/52] tcg: Change temp_allocate_frame arg to TCGTemp

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > From: Richard Henderson > > Reviewed-by: Emilio G. Cota > Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé > --- > tcg/tcg.c | 8 +++- > 1 file

Re: [Qemu-devel] [PATCH v7 10/52] tcg: Avoid loops against variable bounds

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > From: Richard Henderson > > Copy s->nb_globals or s->nb_temps to a local variable for the purposes > of iteration. This should allow the compiler to use low-overhead > looping constructs on some hosts. > > Reviewed-by: Emilio

Re: [Qemu-devel] [PATCH v7 06/52] tcg: Add temp_global bit to TCGTemp

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > From: Richard Henderson > > This avoids needing to test the index of a temp against nb_globals. > > Reviewed-by: Emilio G. Cota > Signed-off-by: Richard Henderson Reviewed-by: Philippe

Re: [Qemu-devel] [PATCH v7 08/52] tcg: Introduce temp_arg, export temp_idx

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > From: Richard Henderson > > At the same time, adrop the TCGContext argument and use tcg_ctx instead. > > Reviewed-by: Emilio G. Cota > Signed-off-by: Richard Henderson Reviewed-by: Philippe

Re: [Qemu-devel] [PATCH v7 05/52] tcg: Introduce arg_temp

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/20/2017 08:19 PM, Richard Henderson wrote: > From: Richard Henderson > > Reviewed-by: Emilio G. Cota > Reviewed-by: Alex Bennée > Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé

Re: [Qemu-devel] SDL2 various fixes

2017-10-23 Thread Philippe Mathieu-Daudé
Cc'ing Gerd, the maintainer of this area, please include him if you respin. On 10/23/2017 06:07 PM, Jindrich Makovicka wrote: > I am sending a couple of patches I needed to apply to make the > SDL2 GUI work reasonably on Debian Sid, which recently switched > from SDL1. > > The main issue is that

Re: [Qemu-devel] [PATCH 3/7] sdl2: Do not hide the cursor on auxilliary windows

2017-10-23 Thread Philippe Mathieu-Daudé
Hi Jindrich, This looks like 2 different patches, can you split? On 10/23/2017 06:07 PM, Jindrich Makovicka wrote: > --- > ui/sdl2.c | 41 ++--- > 1 file changed, 30 insertions(+), 11 deletions(-) > > diff --git a/ui/sdl2.c b/ui/sdl2.c > index

Re: [Qemu-devel] [PATCH 3/3] vl: remove unnecessary #ifdef CONFIG_TPM

2017-10-23 Thread Philippe Mathieu-Daudé
Hi Richard, On 10/23/2017 06:37 PM, Richard W.M. Jones wrote: > The series fixes the build for me, thanks :-) Good, does this mean I can add your Tested-by: tag? Regards, Phil.

Re: [Qemu-devel] [Qemu-arm] [PATCH v2] fix WFI/WFE length in syndrome register

2017-10-23 Thread Philippe Mathieu-Daudé
Hi Stefano, On 10/21/2017 03:09 PM, Stefano Stabellini wrote: [...] > diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c > index a39b9d3..6f74589 100644 > --- a/target/arm/translate-a64.c > +++ b/target/arm/translate-a64.c > @@ -11380,17 +11380,20 @@ static void

Re: [Qemu-devel] [Qemu-arm] [PATCH v2] fix WFI/WFE length in syndrome register

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/23/2017 05:52 PM, Stefano Stabellini wrote: > On Sat, 21 Oct 2017, no-re...@patchew.org wrote: >> Makefile:30: recipe for target 'git-submodule-update' failed >> make: *** [git-submodule-update] Error 1 >> make: *** Waiting for unfinished jobs >> make: *** wait: No child processes.

Re: [Qemu-devel] qemu compile error

2017-10-23 Thread Chen, Farrah
Yes, I saw that patch, thank you ! Thanks, Fan -Original Message- From: Daniel P. Berrange [mailto:berra...@redhat.com] Sent: Monday, October 23, 2017 9:46 PM To: Chen, Farrah Cc: Peter Maydell ; qemu-devel@nongnu.org; Hu, Robert

Re: [Qemu-devel] [PATCH v4 1/4] vhost-user: add new vhost user messages to support virtio config space

2017-10-23 Thread Liu, Changpeng
> -Original Message- > From: Stefan Hajnoczi [mailto:stefa...@gmail.com] > Sent: Tuesday, October 24, 2017 1:26 AM > To: Liu, Changpeng > Cc: Michael S. Tsirkin ; qemu-devel@nongnu.org; > pbonz...@redhat.com; marcandre.lur...@redhat.com;

Re: [Qemu-devel] [PATCH v4 2/4] vhost-user-blk: introduce a new vhost-user-blk host device

2017-10-23 Thread Liu, Changpeng
> -Original Message- > From: Stefan Hajnoczi [mailto:stefa...@gmail.com] > Sent: Tuesday, October 24, 2017 1:12 AM > To: Liu, Changpeng > Cc: qemu-devel@nongnu.org; pbonz...@redhat.com; m...@redhat.com; > marcandre.lur...@redhat.com; fel...@nutanix.com; Harris,

Re: [Qemu-devel] [PATCH v4 2/4] vhost-user-blk: introduce a new vhost-user-blk host device

2017-10-23 Thread Liu, Changpeng
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Monday, October 23, 2017 8:55 PM > To: Liu, Changpeng > Cc: Stefan Hajnoczi ; qemu-devel@nongnu.org; > pbonz...@redhat.com; marcandre.lur...@redhat.com;

[Qemu-devel] [RFC v2] e1000: Faulty tx checksum offload corrupts packets

2017-10-23 Thread Ed Swierk via Qemu-devel
[Resending to full set of maintainers] v2: Cosmetic fixes for checkpatch/buildbot errors The transmit checksum offload implementation in QEMU's e1000 device is deficient and causes packet data corruption in some situations. According to the Intel 8254x software developer's manual[1], the

Re: [Qemu-devel] [PULL 0/3] Fixes 20171023 patches

2017-10-23 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20171023080245.31300-1-kra...@redhat.com Subject: [Qemu-devel] [PULL 0/3] Fixes 20171023 patches === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under the git checkout

Re: [Qemu-devel] [PATCH 3/3] vl: remove unnecessary #ifdef CONFIG_TPM

2017-10-23 Thread Stefan Berger
On 10/23/2017 05:33 PM, Philippe Mathieu-Daudé wrote: a stub is now provided. Signed-off-by: Philippe Mathieu-Daudé --- vl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/vl.c b/vl.c index 0723835bbf..ec299099ff 100644 --- a/vl.c +++ b/vl.c @@ -4624,11 +4624,9 @@ int

Re: [Qemu-devel] [Qemu-arm] [PATCH] hw/ide/ahci: Move allwinner code into a separate file

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/23/2017 03:48 PM, Thomas Huth wrote: > The allwinner code is only needed for the allwinner board (for which > we also have a separate CONFIG_ALLWINNER_A10 config switch), so it > does not make sense that we compile this for all the other boards > that need AHCI, too. Let's move it to a

[Qemu-devel] Command line option "-option-rom" doesn't take the ROM file

2017-10-23 Thread Deema B
Hi, I'm trying to use the -option-rom option to supply my own virtio OpROM. I am not able to see the ROM being launch (the built-in version comes up instead). The only way I am able to make it work is to rebuild the Qemu and iPXE together. I'm assuming this is working feature, and I'm simply

Re: [Qemu-devel] [PATCH v3 04/11] kinetis_k64_sim.h has been added

2017-10-23 Thread Philippe Mathieu-Daudé
On 10/23/2017 05:36 PM, Gabriel Costa wrote: > The name SIM came from kinetis datasheet, it is the name of the peripheral. > I believe others families of kinetis microcontrollers uses the same name. SIM stands for "System Integration Module"; naming it "kinetis_k64_sim.c" does not sound very

Re: [Qemu-devel] [PATCH 3/3] vl: remove unnecessary #ifdef CONFIG_TPM

2017-10-23 Thread Richard W.M. Jones
The series fixes the build for me, thanks :-) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the

[Qemu-devel] [PATCH 3/3] vl: remove unnecessary #ifdef CONFIG_TPM

2017-10-23 Thread Philippe Mathieu-Daudé
a stub is now provided. Signed-off-by: Philippe Mathieu-Daudé --- vl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/vl.c b/vl.c index 0723835bbf..ec299099ff 100644 --- a/vl.c +++ b/vl.c @@ -4624,11 +4624,9 @@ int main(int argc, char **argv, char **envp)

[Qemu-devel] [PATCH 1/3] tpm: add missing include

2017-10-23 Thread Philippe Mathieu-Daudé
else files including "sysemu/tpm.h" fail to compile: In file included from qemu/stubs/tpm.c:2:0: qemu/include/sysemu/tpm.h:36:19: error: implicit declaration of function ‘object_resolve_path_type’ [-Werror=implicit-function-declaration] Object *obj = object_resolve_path_type("",

[Qemu-devel] [PATCH 2/3] tpm: add stubs

2017-10-23 Thread Philippe Mathieu-Daudé
this fixes compile with --disable-tpm Reported-by: BALATON Zoltan Message-Id: <20171023102903.256af745...@zero.eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé --- Makefile.objs | 2 +- stubs/tpm.c | 33 +

[Qemu-devel] [PATCH 0/3] tpm: add stubs to fix compiling with --disable-tpm

2017-10-23 Thread Philippe Mathieu-Daudé
This fixes building with --disable-tpm as reported by Zoltan: http://lists.nongnu.org/archive/html/qemu-devel/2017-10/msg05369.html Cc'ing Peter in case this enters as build fix instead of via trivial. Regards, Phil. Philippe Mathieu-Daudé (3): tpm: add missing include tpm: add stubs

Re: [Qemu-devel] Running Qemu in discrete time/step by step

2017-10-23 Thread Nutaro, James J.
I don't expect exact repeatability, but I haven't tested for it either. The machinery that prevents repeatability with replay will probably have the same effect in the adevs/qemu simulator. -Original Message- From: Matt [mailto:matta...@gmail.com] Sent: Monday, October 23, 2017 5:38 AM

[Qemu-devel] Command line option "-option-rom" doesn't take the ROM file

2017-10-23 Thread Deema B
Hi, I'm trying to use the -option-rom option to supply my own virtio OpROM. I am not able to see the ROM being launch (the built-in version comes up instead). The only way I am able to make it work is to rebuild the Qemu and iPXE together. I'm assuming this is working feature, and I'm simply

[Qemu-devel] [Bug 1714331] Re: Virtual machines not working anymore on 2.10

2017-10-23 Thread Mary Sherman
> Should this be opened as a bug on the `ovmf` Ubuntu package (xenial/zesty/artful)? I'm very familiar with the Ubuntu version policies. I've just noticed that I intended to write "I'm *not* very familiar with the Ubuntu version policies". -- You received this bug notification because you are a

[Qemu-devel] [PATCH 7/7] sdl2: Do not leave grab when fullscreen

2017-10-23 Thread Jindrich Makovicka
--- ui/sdl2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index 3823f0a834..811c21da27 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -451,8 +451,9 @@ static void handle_mousemotion(SDL_Event *ev) SDL_GetWindowSize(scon->real_window, _w, _h);

[Qemu-devel] [PATCH 5/7] sdl2 uses surface relative coordinates

2017-10-23 Thread Jindrich Makovicka
--- ui/sdl2.c | 28 ++-- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index fa54353430..092eab37dc 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -276,32 +276,8 @@ static void sdl_send_mouse_event(struct sdl2_console *scon, int dx, int

[Qemu-devel] [PATCH 6/7] sdl2: Fix dead keyboard after fullsceen

2017-10-23 Thread Jindrich Makovicka
--- ui/sdl2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/sdl2.c b/ui/sdl2.c index 092eab37dc..3823f0a834 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -418,6 +418,7 @@ static void handle_keyup(SDL_Event *ev) sdl2_reset_keys(scon); return; } +

[Qemu-devel] [PATCH 4/7] sdl2: Only accept the hotkeys on the main window

2017-10-23 Thread Jindrich Makovicka
--- ui/sdl2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index 685e4fabec..fa54353430 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -349,7 +349,7 @@ static void handle_keydown(SDL_Event *ev) } gui_key_modifier_pressed = mod_state; -if

[Qemu-devel] [PATCH 3/7] sdl2: Do not hide the cursor on auxilliary windows

2017-10-23 Thread Jindrich Makovicka
--- ui/sdl2.c | 41 ++--- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index aa37b39547..685e4fabec 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -169,10 +169,10 @@ static void sdl_hide_cursor(void) return; }

[Qemu-devel] SDL2 various fixes

2017-10-23 Thread Jindrich Makovicka
Hi, I am sending a couple of patches I needed to apply to make the SDL2 GUI work reasonably on Debian Sid, which recently switched from SDL1. The main issue is that the QEMU window stops updating when it is minimized, or after a virtual desktop switch. Then, there are some regressions due to

[Qemu-devel] [PATCH 1/7] sdl2: Fix broken display updating after the window is hidden

2017-10-23 Thread Jindrich Makovicka
With SDL 2.0.6, calling SDL_ShowWindow during SDL_WINDOWEVENT_HIDDEN blocks all subsequent display updates. --- ui/sdl2.c | 5 - 1 file changed, 5 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index 53dd447fd2..7f51933234 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -576,11 +576,6 @@ static

Re: [Qemu-devel] [PATCH] tpm: Don't call tpm_cleanup unless CONFIG_TPM.

2017-10-23 Thread Richard W.M. Jones
Since I posted this, there are more failures with --disable-tpm ... LINKx86_64-softmmu/qemu-system-x86_64 ../vl.o: In function `main': /home/rjones/d/qemu/vl.c:4908: undefined reference to `tpm_cleanup' ../tpm.o: In function `qmp_query_tpm_types': /home/rjones/d/qemu/tpm.c:230: undefined

Re: [Qemu-devel] [PATCH v2] fix WFI/WFE length in syndrome register

2017-10-23 Thread Stefano Stabellini
On Sat, 21 Oct 2017, no-re...@patchew.org wrote: > Makefile:30: recipe for target 'git-submodule-update' failed > make: *** [git-submodule-update] Error 1 > make: *** Waiting for unfinished jobs > make: *** wait: No child processes. Stop. > === OUTPUT END === > > Test command exited with

[Qemu-devel] [RFC v2] e1000: Faulty tx checksum offload corrupts packets

2017-10-23 Thread Ed Swierk via Qemu-devel
v2: Cosmetic fixes for checkpatch/buildbot errors The transmit checksum offload implementation in QEMU's e1000 device is deficient and causes packet data corruption in some situations. According to the Intel 8254x software developer's manual[1], the hardware device maintains two separate

Re: [Qemu-devel] [PATCH v1] arm: Adding new arm machine, Kinetis K64 MK64FN1M0

2017-10-23 Thread Gabriel Costa
Hi Philippe, Thanks for all your comments! I will put all this corrections for the next patch, also I removed the FlexTimer, it is not necessary to do this basic emulation. Thanks, Gabriel On Fri, Oct 20, 2017 at 6:25 PM, Philippe Mathieu-Daudé wrote: > > +/*dev =

Re: [Qemu-devel] [PATCH v3 04/11] kinetis_k64_sim.h has been added

2017-10-23 Thread Gabriel Costa
Hi Philippe, Thanks for all your comments! The name SIM came from kinetis datasheet, it is the name of the peripheral. I believe others families of kinetis microcontrollers uses the same name. On Fri, Oct 20, 2017 at 6:17 PM, Philippe Mathieu-Daudé wrote: > Hi Gabriel, > > On

[Qemu-devel] [PATCH v2 22/27] pci: Add support for Designware IP block

2017-10-23 Thread Andrey Smirnov
Add code needed to get a functional PCI subsytem when using in conjunction with upstream Linux guest (4.13+). Tested to work against "e1000e" (network adapter, using MSI interrupts) as well as "usb-ehci" (USB controller, using legacy PCI interrupts). Cc: Peter Maydell

[Qemu-devel] [PATCH v2 24/27] i.MX: Add code to emulate i.MX7 ADC IP block

2017-10-23 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 23/27] i.MX: Add code to emulate i.MX7 USBMISC IP block

2017-10-23 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 21/27] i.MX: Add implementation of i.MX7 GPR IP block

2017-10-23 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 26/27] i.MX: Add i.MX7 SOC implementation.

2017-10-23 Thread Andrey Smirnov
The following interfaces are partially or fully emulated: * up to 2 Cortex A9 cores (SMP works with PSCI) * A7 MPCORE (identical to A15 MPCORE) * 4 GPTs modules * 7 GPIO controllers * 2 IOMUXC controllers * 1 CCM module * 1 SVNS module * 1 SRC module * 1 GPCv2

[Qemu-devel] [PATCH v2 17/27] i.MX: Add code to emulate i.MX7 IOMUXC IP block

2017-10-23 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 15/27] i.MX: Add code to emulate i.MX7 SNVS IP-block

2017-10-23 Thread Andrey Smirnov
Add code to emulate SNVS IP-block. Currently only the bits needed to be able to emulate machine shutdown are implemented. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc:

[Qemu-devel] [PATCH v2 19/27] i.MX: Add code to emulate SDMA IP block

2017-10-23 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 20/27] i.MX: Add code to emulate FlexCAN IP block

2017-10-23 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 11/27] sdhci: Add i.MX specific subtype of SDHCI

2017-10-23 Thread Andrey Smirnov
IP block found on several generations of i.MX family does not use vanilla SDHCI implementation and it comes with a number of quirks. Introduce i.MX SDHCI subtype of SDHCI block to add code necessary to support unmodified Linux guest driver. Cc: Peter Maydell Cc: Jason

[Qemu-devel] [PATCH v2 14/27] i.MX: Add code to emulate i.MX2 watchdog IP block

2017-10-23 Thread Andrey Smirnov
Add enough code to emulate i.MX2 watchdog IP block so it would be possible to reboot the machine running Linux Guest. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org

[Qemu-devel] [PATCH v2 16/27] i.MX: Add code to emulate GPCv2 IP block

2017-10-23 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 13/27] i.MX: Add code to emulate i.MX7 CCM, PMU and ANALOG IP blocks

2017-10-23 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 12/27] sdhci: Implement write method of ACMD12ERRSTS register

2017-10-23 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/sd/sdhci.c | 3 +++ 1 file

[Qemu-devel] [PATCH v2 10/27] imx_fec: Reserve full 4K page for the register file

2017-10-23 Thread Andrey Smirnov
Some i.MX SoCs (e.g. i.MX7) have FEC registers going as far as offset 0x614, so to avoid getting aborts when accessing those on QEMU, extend the register file to cover 4KB of address space instead of just 1K. Cc: Peter Maydell Cc: Jason Wang Cc:

[Qemu-devel] [PATCH v2 07/27] imx_fec: Add support for multiple Tx DMA rings

2017-10-23 Thread Andrey Smirnov
More recent version of the IP block support more than one Tx DMA ring, so add the code implementing that feature. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc:

[Qemu-devel] [PATCH v2 05/27] imx_fec: Use MIN instead of explicit ternary operator

2017-10-23 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 09/27] imx_fec: Fix a typo in imx_enet_receive()

2017-10-23 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file

[Qemu-devel] [PATCH v2 08/27] imx_fec: Use correct length for packet size

2017-10-23 Thread Andrey Smirnov
Use 'frame_size' instead of 'len' when calling qemu_send_packet(), failing to do so results in malformed packets send in case when that packed is fragmented into multiple DMA transactions. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé

[Qemu-devel] [PATCH v2 06/27] imx_fec: Emulate SHIFT16 in ENETx_RACC

2017-10-23 Thread Andrey Smirnov
Needed to support latest Linux kernel driver which relies on that functionality. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by:

[Qemu-devel] [PATCH v2 03/27] imx_fec: Change queue flushing heuristics

2017-10-23 Thread Andrey Smirnov
In current implementation, packet queue flushing logic seem to suffer from a deadlock like scenario if a packet is received by the interface before before Rx ring is initialized by Guest's driver. Consider the following sequence of events: 1. A QEMU instance is started against a TAP

[Qemu-devel] [PATCH v2 04/27] imx_fec: Use ENET_FTRL to determine truncation length

2017-10-23 Thread Andrey Smirnov
Frame truncation length, TRUNC_FL, is determined by the contents of ENET_FTRL register, so convert the code to use it instead of a hardcoded constant. To avoid the case where TRUNC_FL is greater that ENET_MAX_FRAME_SIZE, increase the value of the latter to its theoretical maximum of 16K. Cc:

[Qemu-devel] [PATCH v2 01/27] imx_fec: Do not link to netdev

2017-10-23 Thread Andrey Smirnov
Binding to a particular netdev doesn't seem to belong to this layer and should probably be done as a part of board or SoC specific code. Convert all of the users of this IP block to use qdev_set_nic_properties() instead. Cc: Peter Maydell Cc: Jason Wang

[Qemu-devel] [PATCH v2 02/27] imx_fec: Refactor imx_eth_enable_rx()

2017-10-23 Thread Andrey Smirnov
Refactor imx_eth_enable_rx() to have more meaningfull variable name than 'tmp' and to reduce number of logical negations done. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc:

[Qemu-devel] [PATCH v2 00/27] Initial i.MX7 support

2017-10-23 Thread Andrey Smirnov
Hi everyone, This v2 of the patch series containing the work that I've done in order to enable support for i.MX7 emulation in QEMU. As the one before last commit in the series states the supported i.MX7 features are: * up to 2 Cortex A9 cores (SMP works with PSCI) * A7 MPCORE (identical

[Qemu-devel] [Bug 1715700] Re: Windows 7 guest won't boot on qemu 2.10 (works on 2.9)

2017-10-23 Thread Laszlo Ersek (Red Hat)
See also LP#1725560. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1715700 Title: Windows 7 guest won't boot on qemu 2.10 (works on 2.9) Status in QEMU: Fix Committed Bug description: Qemu

[Qemu-devel] [Bug 1714331] Re: Virtual machines not working anymore on 2.10

2017-10-23 Thread Laszlo Ersek (Red Hat)
See also LP#1725560. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1714331 Title: Virtual machines not working anymore on 2.10 Status in QEMU: New Bug description: Using 2.10, my virtual

[Qemu-devel] [PATCH] hw/ide/ahci: Move allwinner code into a separate file

2017-10-23 Thread Thomas Huth
The allwinner code is only needed for the allwinner board (for which we also have a separate CONFIG_ALLWINNER_A10 config switch), so it does not make sense that we compile this for all the other boards that need AHCI, too. Let's move it to a separate file that is only compiled when

Re: [Qemu-devel] [PATCH v7 00/52] tcg queued patches

2017-10-23 Thread Emilio G. Cota
On Fri, Oct 20, 2017 at 16:19:31 -0700, Richard Henderson wrote: > A bit silly to keep calling this "tb_lock removal", since it > doesn't quite, and it has accumulated several additional patches. Thanks for doing all this work! I think I went through all of the patches. I also did some testing

Re: [Qemu-devel] [PATCH v7 37/52] tcg: Remove CF_IGNORE_ICOUNT

2017-10-23 Thread Emilio G. Cota
On Fri, Oct 20, 2017 at 16:20:08 -0700, Richard Henderson wrote: > Now that we have curr_cflags, we can include CF_USE_ICOUNT > early and then remove it as necessary. > > Signed-off-by: Richard Henderson Reviewed-by: Emilio G. Cota

Re: [Qemu-devel] [PATCH v7 36/52] tcg: Add CF_LAST_IO + CF_USE_ICOUNT to CF_HASH_MASK

2017-10-23 Thread Emilio G. Cota
On Fri, Oct 20, 2017 at 16:20:07 -0700, Richard Henderson wrote: > These flags are used by target/*/translate.c, > and affect code generation. > > Signed-off-by: Richard Henderson Reviewed-by: Emilio G. Cota E.

Re: [Qemu-devel] QEMU CII Best Practices record

2017-10-23 Thread Peter Maydell
On 13 October 2017 at 14:25, Daniel P. Berrange wrote: > Many projects these days are recording progress wrt CII best practices > for FLOOS projects. I filled out a record for QEMU: > > https://bestpractices.coreinfrastructure.org/projects/1309 > > I only looked at the

Re: [Qemu-devel] [PATCH v7 25/52] tcg: Include CF_COUNT_MASK in CF_HASH_MASK

2017-10-23 Thread Emilio G. Cota
On Fri, Oct 20, 2017 at 16:19:56 -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson Reviewed-by: Emilio G. Cota E.

Re: [Qemu-devel] [PATCH v7 24/52] tcg: Add CPUState cflags_next_tb

2017-10-23 Thread Emilio G. Cota
On Fri, Oct 20, 2017 at 16:19:55 -0700, Richard Henderson wrote: > We were generating code during tb_invalidate_phys_page_range, > check_watchpoint, cpu_io_recompile, and (seemingly) discarding > the TB, assuming that it would magically be picked up during > the next iteration through the cpu_exec

Re: [Qemu-devel] [Qemu-block] [PATCH] block: all I/O should be completed before removing throttle timers.

2017-10-23 Thread Stefan Hajnoczi
On Sat, Oct 21, 2017 at 01:34:00PM +0800, Zhengui Li wrote: > From: Zhengui > > In blk_remove_bs, all I/O should be completed before removing throttle > timers. If there has inflight I/O, removing throttle timers here will > cause the inflight I/O never return. > This patch

Re: [Qemu-devel] [PATCH v7 22/52] tcg: Use pointers in TCGOp->args

2017-10-23 Thread Emilio G. Cota
On Fri, Oct 20, 2017 at 16:19:53 -0700, Richard Henderson wrote: > This limits the indexing into tcg_ctx.temps to initial > opcode generation time. > > Signed-off-by: Richard Henderson Reviewed-by: Emilio G. Cota E.

Re: [Qemu-devel] [PATCH v7 21/52] tcg: Use offsets not indices for TCGv_*

2017-10-23 Thread Emilio G. Cota
On Fri, Oct 20, 2017 at 16:19:52 -0700, Richard Henderson wrote: > Using the offset of a temporary, relative to TCGContext, rather than > its index means that we don't use 0. That leaves offset 0 free for > a NULL representation without having to leave index 0 unused. > > Signed-off-by: Richard

Re: [Qemu-devel] QEMU CII Best Practices record

2017-10-23 Thread Stefan Hajnoczi
On Fri, Oct 13, 2017 at 02:25:07PM +0100, Daniel P. Berrange wrote: > Many projects these days are recording progress wrt CII best practices > for FLOOS projects. I filled out a record for QEMU: > > https://bestpractices.coreinfrastructure.org/projects/1309 > > I only looked at the 'Passing'

Re: [Qemu-devel] [PATCH v4 1/4] vhost-user: add new vhost user messages to support virtio config space

2017-10-23 Thread Stefan Hajnoczi
On Mon, Oct 23, 2017 at 04:47:00AM +, Liu, Changpeng wrote: > > > > -Original Message- > > From: Stefan Hajnoczi [mailto:stefa...@gmail.com] > > Sent: Friday, October 20, 2017 6:01 PM > > To: Michael S. Tsirkin > > Cc: Liu, Changpeng ;

Re: [Qemu-devel] [PATCH v4] NUMA: Enable adding NUMA node implicitly

2017-10-23 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 1508722422-3861-1-git-send-email-douly.f...@cn.fujitsu.com Subject: [Qemu-devel] [PATCH v4] NUMA: Enable adding NUMA node implicitly === TEST SCRIPT BEGIN === #!/bin/bash # Testing script

Re: [Qemu-devel] host physical address width issues/questions for x86_64

2017-10-23 Thread Prasad Singamsetty
On 10/22/2017 11:37 PM, Peter Xu wrote: On Fri, Oct 20, 2017 at 03:54:21PM -0700, Prasad Singamsetty wrote: On 10/18/2017 8:33 PM, Peter Xu wrote: On Wed, Oct 18, 2017 at 10:19:31AM -0700, Prasad Singamsetty wrote: On 10/16/2017 8:56 PM, Peter Xu wrote: On Mon, Oct 16, 2017 at

Re: [Qemu-devel] [PATCH v1 2/2] ide: support reporting of rotation rate

2017-10-23 Thread John Snow
On 10/20/2017 05:02 AM, Daniel P. Berrange wrote: > On Fri, Oct 20, 2017 at 10:42:21AM +0200, Kevin Wolf wrote: >> [ Cc: qemu-block ] >> >> Am 04.10.2017 um 13:40 hat Daniel P. Berrange geschrieben: >>> The Linux kernel will query the ATA IDENTITY DEVICE data, word 217 >>> to determine the

  1   2   3   >