Re: [Qemu-devel] [PATCH 0/1] block: Eliminate the S_1KiB, S_2KiB, ... macros

2019-01-13 Thread Leonid Bloch
On 1/11/19 9:14 PM, Markus Armbruster wrote: > Back in September, Leonid Block added a whole bunch of macros (commit * Bloch. :) > 540b8492618) to improve readability of qcow2.h a bit (commit > b6a95c6d100). He later used them to fix the "vdi" driver's parameter > cluster_size's default value (c

Re: [Qemu-devel] [PATCH 1/1] block: Eliminate the S_1KiB, S_2KiB, ... macros

2019-01-13 Thread Leonid Bloch
Hi, On 1/11/19 9:14 PM, Markus Armbruster wrote: > We define 54 macros for the powers of two >= 1024. We use six, in six > macro definitions. Four of them could just as well use the common MiB > macro, so do that. The remaining two can't, because they get passed > to stringify. Replace the mac

[Qemu-devel] [PATCH v2 2/4] qga: fix send_response error handling

2019-01-13 Thread Basil Salman
Sometimes qemu-ga fails to send a response to client due to memory allocation issues due to a large response message, this can be experienced while trying to read large number of bytes using QMP command guest-file-read. Added a check to send an error response to qemu-ga client in such cases. Sign

[Qemu-devel] [PATCH v2 0/4] QGA - Win fixes

2019-01-13 Thread Basil Salman
This patch series addresses serveral issues with qga-win please review them and share your thoughts. Basil Salman (3): qga-win: prevent crash when executing guest-file-read with large count qga: fix send_response error handling qga: Installer: Wait for installation to finish Sameeh Jubran (

[Qemu-devel] [PATCH v2 1/4] qga-win: prevent crash when executing guest-file-read with large count

2019-01-13 Thread Basil Salman
BZ: #1594054 guest-file-read command is currently implelmented to read from a file handle count number of bytes. when executed with a very large count number qemu-ga crashes. after some digging turns out that qemu-ga crashes after trying to allocate a buffer large enough to save the data read in it

[Qemu-devel] [PATCH v2 3/4] qga: Installer: Wait for installation to finish

2019-01-13 Thread Basil Salman
Installation might fail if we don't wait for the provider unregisteration process to finish. Signed-off-by: Sameeh Jubran Signed-off-by: Basil Salman --- qga/installer/qemu-ga.wxs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/installer/qemu-ga.wxs b/qga/installer/qemu-

[Qemu-devel] [PATCH v2 4/4] qga-win: Handle VSS_E_PROVIDER_ALREADY_REGISTERED error

2019-01-13 Thread Basil Salman
From: Sameeh Jubran This patch handles the case where VSS Provider is already registered, where in such case qga uninstalls the provider and registers it again. Signed-off-by: Sameeh Jubran Signed-off-by: Basil Salman --- qga/vss-win32/install.cpp | 11 +++ 1 file changed, 11 insertio

Re: [Qemu-devel] [PATCH v3] usb: assign unique serial numbers to hid devices

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190110120843.3839-1-kra...@redhat.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/

Re: [Qemu-devel] [PATCH] target/ppc/kvm: Drop useless include directive

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/154713023826.379171.4010754027183178230.st...@bahia.lan/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Qemu-devel] [PATCH] target/ppc/kvm: Drop useless include directive Type: series Message-id:

Re: [Qemu-devel] [PATCH] contrib/gitdm: Fix a typo

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/201905.8270-1-phi...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Qemu-devel] [PATCH] contrib/gitdm: Fix a typo Type: series Message-id: 201905.8270-1-phi...@redhat.c

Re: [Qemu-devel] [PATCH] target/ppc/kvm: Drop useless include directive

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/154713023826.379171.4010754027183178230.st...@bahia.lan/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SC

Re: [Qemu-devel] [PATCH v3] usb: assign unique serial numbers to hid devices

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190110120843.3839-1-kra...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Qemu-devel] [PATCH v3] usb: assign unique serial numbers to hid devices Type: series Message-id: 2019011012

Re: [Qemu-devel] [PATCH] target/ppc/kvm: Drop useless include directive

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/154713023826.379171.4010754027183178230.st...@bahia.lan/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCR

[Qemu-devel] [PATCH for-4.0 0/5] fix some segmentation faults and migration issues

2019-01-13 Thread Fei Li
All these five patches have gotten the Reviewed-by: the first patch is to fix one segmentation fault and the other four are to fix some migration issues. To be more detail, they are extracted from previous "[PATCH for-4.0 v9 16/16] qemu_thread_create: propagate errors to callers to handle.", but a

[Qemu-devel] [PATCH for-4.0 3/5] migration: multifd_save_cleanup() can't fail, simplify

2019-01-13 Thread Fei Li
From: Fei Li multifd_save_cleanup() takes an Error ** argument and returns an error code even though it can't actually fail. Its callers dutifully check for failure. Remove the useless argument and return value, and simplify the callers. Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Signe

[Qemu-devel] [PATCH for-4.0 5/5] migration: unify error handling for process_incoming_migration_co

2019-01-13 Thread Fei Li
From: Fei Li In the current code, if process_incoming_migration_co() fails we do the same error handing: set the error state, close the source file, do the cleanup for multifd, and then exit(EXIT_FAILURE). To make the code clearer, add a "goto fail" to unify the error handling. Cc: Dr. David Ala

[Qemu-devel] [PATCH for-4.0 1/5] Fix segmentation fault when qemu_signal_init fails

2019-01-13 Thread Fei Li
From: Fei Li When qemu_signal_init() fails in qemu_init_main_loop(), we return without setting an error. Its callers crash then when they try to report the error with error_report_err(). To avoid such segmentation fault, add a new Error parameter to make the call trace to propagate the err to t

[Qemu-devel] [PATCH for-4.0 4/5] migration: add more error handling for postcopy_ram_enable_notify

2019-01-13 Thread Fei Li
From: Fei Li Call postcopy_ram_incoming_cleanup() to do the cleanup when postcopy_ram_enable_notify fails. Besides, report the error message when qemu_ram_foreach_migratable_block() fails. Cc: Dr. David Alan Gilbert Signed-off-by: Fei Li Reviewed-by: Dr. David Alan Gilbert --- migration/post

[Qemu-devel] [PATCH for-4.0 2/5] migration: fix the multifd code when receiving less channels

2019-01-13 Thread Fei Li
From: Fei Li In our current code, when multifd is used during migration, if there is an error before the destination receives all new channels, the source keeps running, however the destination does not exit but keeps waiting until the source is killed deliberately. Fix this by dumping the speci

Re: [Qemu-devel] [PATCH v1 0/3] [RFC] get real IOMMU information from VFIO IOMMU

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1547037680-21458-1-git-send-email-pmo...@linux.ibm.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCR

Re: [Qemu-devel] [PATCH v5 0/4] allow to load initrd below 4G for recent kernel

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1547197071-14504-1-git-send-email-lizhij...@cn.fujitsu.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 1547197071-14504-1-git-send-email-lizhij...@cn.fujitsu.com Subject: [Qemu

[Qemu-devel] [PATCH] hw/misc/edu: add msi_uninit() for pci_edu_uninit()

2019-01-13 Thread Fei Li
From: Fei Li Let's supplement the msi_uninit() when failing to realize the pci edu device. Cc: Markus Armbruster Cc: Peter Xu Cc: Michael S. Tsirkin Cc: Marcel Apfelbaum Signed-off-by: Fei Li --- hw/misc/edu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/misc/edu.c b/hw/misc/edu.

Re: [Qemu-devel] [PATCH v9 00/21] Fixing record/replay and adding reverse debugging

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/154703587757.13472.3898702635363120794.stgit@pasha-VirtualBox/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === T

Re: [Qemu-devel] [PATCH v2 0/3] optimize waiting for free thread to do compression

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190111063732.10484-1-xiaoguangr...@tencent.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BE

Re: [Qemu-devel] [PATCH] hw/ppc/spapr: Encode the SCSI channel (bus) in the SRP LUNs

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1547042603-21147-1-git-send-email-th...@redhat.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT

Re: [Qemu-devel] [PATCH v1 00/19] testing/next queue for travis and docker

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190110174516.21586-1-alex.ben...@linaro.org/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN

Re: [Qemu-devel] [PATCH 0/4] Add ignore-external migration capability

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190110120120.9943-1-yury-ko...@yandex-team.ru/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEG

Re: [Qemu-devel] [PATCH] contrib/gitdm: Fix a typo

2019-01-13 Thread Paolo Bonzini
On 11/01/19 23:39, Philippe Mathieu-Daudé wrote: > On 1/11/19 10:28 PM, no-re...@patchew.org wrote: >> Patchew URL: >> https://patchew.org/QEMU/201905.8270-1-phi...@redhat.com/ >> >> Hi, >> >> This series seems to have some coding style problems. See output below for >> more information: >

Re: [Qemu-devel] [PATCH for-4.0 v9 09/16] qemu_thread: supplement error handling for pci_edu_realize

2019-01-13 Thread Fei Li
在 2019/1/8 上午1:29, Markus Armbruster 写道: Fei Li writes: Utilize the existed errp to propagate the error instead of the temporary &error_abort. Cc: Markus Armbruster Cc: Jiri Slaby Signed-off-by: Fei Li --- hw/misc/edu.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) dif

Re: [Qemu-devel] [PATCH for-4.0 v9 12/16] qemu_thread: supplement error handling for iothread_complete/qemu_signalfd_compat

2019-01-13 Thread Fei Li
在 2019/1/9 上午12:18, fei 写道: 在 2019年1月8日,01:50,Markus Armbruster 写道: Fei Li writes: For iothread_complete: utilize the existed errp to propagate the error and do the corresponding cleanup to replace the temporary &error_abort. For qemu_signalfd_compat: add a local_err to hold the error,

Re: [Qemu-devel] [PATCH] hw/misc/edu: add msi_uninit() for pci_edu_uninit()

2019-01-13 Thread Marcel Apfelbaum
On 1/13/19 4:36 PM, Fei Li wrote: From: Fei Li Let's supplement the msi_uninit() when failing to realize the pci edu device. Cc: Markus Armbruster Cc: Peter Xu Cc: Michael S. Tsirkin Cc: Marcel Apfelbaum Signed-off-by: Fei Li --- hw/misc/edu.c | 1 + 1 file changed, 1 insertion(+)

Re: [Qemu-devel] [PATCH] ui: vnc: finish removing TABs

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20181217231629.24147-1-pbonz...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20181217231629.24147-1-pbonz...@redhat.com Subject: [Qemu-devel] [PATCH] ui: vnc: finish

Re: [Qemu-devel] [PATCH] qga: check length of command-line & environment variables

2019-01-13 Thread P J P
+-- On Fri, 11 Jan 2019, Daniel P. Berrangé wrote --+ | qga/commands.c already includes qemu/osdep.h which includs unistd.h. | | The build problem patchew reported was from *mingw* builds where | sysconf does not exist. I see; Not sure how to fix it. Maybe with conditional declaration? #ifdef __M

Re: [Qemu-devel] [PATCH v2 0/3] optimize waiting for free thread to do compression

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190111063732.10484-1-xiaoguangr...@tencent.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEG

Re: [Qemu-devel] [PATCH 0/5] vfio/display: add edid support.

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190111093116.17188-1-kra...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Qemu-devel] [PATCH 0/5] vfio/display: add edid support. Type: series Message-id: 20190111093116.17188-1-kra

[Qemu-devel] [PATCH v2] slirp: check data length while emulating ident function

2019-01-13 Thread P J P
From: Prasad J Pandit While emulating identification protocol, tcp_emu() does not check available space in the 'sc_rcv->sb_data' buffer. It could lead to heap buffer overflow issue. Add check to avoid it. Reported-by: Kira <864786...@qq.com> Signed-off-by: Prasad J Pandit --- slirp/tcp_subr.c

Re: [Qemu-devel] [PATCH] slirp: check data length while emulating ident function

2019-01-13 Thread P J P
+-- On Fri, 11 Jan 2019, Marc-André Lureau wrote --+ | > | Check looks correct, it should probably return 1. | > | > Function comment says return 1 if 'm' is valid and should be appended via | > sbappend(). Not sure if unprocessed 'm' should go to sbappend(). | | If you look at the rest of the fun

Re: [Qemu-devel] [PATCH v2 09/12] tests/tcg/mips: Test R5900 three-operand MADDU1

2019-01-13 Thread Fredrik Noring
Hi Aleksandar, > - Suggestion: The next MIPS pull request is scehuled for Friday, > Jan 18, 2018. It would be fantastic if you could prepare the > following by Jan 14: > > * Add 32 TCGv_i64 registers that would represent higher halves > of R5900 general purpose registers. Done! > * Add TC

[Qemu-devel] [PATCH 0/9] target/mips: Limited support for R5900 multimedia instructions

2019-01-13 Thread Fredrik Noring
This series introduces limited support for R5900 multimedia instructions (MMIs) by implementing and testing PCPYLD, PCPYUD, LQ and SQ. 32 128-bit multimedia registers (MMRs) are introduced. They are split into two 64-bit halves: the lower halves are the GPRs and the upper halves are accessible by

[Qemu-devel] [PATCH 1/9] target/mips: Require TARGET_MIPS64 for R5900 multimedia instructions

2019-01-13 Thread Fredrik Noring
The R5900 MMIs operate on 128-bit registers that will be split into two halves: lower 64-bit GPRs and upper 64-bit MMRs. The MMIs will therefore be left unimplemented in 32-bit mode with the o32 ABI. Signed-off-by: Fredrik Noring --- target/mips/translate.c | 28 1 f

[Qemu-devel] [PATCH 2/9] target/mips: Introduce 32 R5900 128-bit multimedia registers

2019-01-13 Thread Fredrik Noring
The 32 R5900 128-bit MMRs are split into two 64-bit halves: the lower halves are the GPRs and the upper halves are accessible by the R5900- specific multimedia instructions. Signed-off-by: Fredrik Noring --- target/mips/cpu.h | 2 ++ target/mips/translate.c | 14 -- 2 files ch

[Qemu-devel] [PATCH 3/9] target/mips: Support the R5900 PCPYLD multimedia instruction

2019-01-13 Thread Fredrik Noring
Signed-off-by: Fredrik Noring --- target/mips/translate.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 9d5150ec8b..40faf9cb36 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c

[Qemu-devel] [PATCH 6/9] target/mips: Support the R5900 SQ multimedia instruction

2019-01-13 Thread Fredrik Noring
Signed-off-by: Fredrik Noring --- target/mips/translate.c | 44 +++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 79505bb6c2..1c7c649d36 100644 --- a/target/mips/translate.c +++ b/target

[Qemu-devel] [PATCH 4/9] target/mips: Support the R5900 PCPYUD multimedia instruction

2019-01-13 Thread Fredrik Noring
Signed-off-by: Fredrik Noring --- target/mips/translate.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 40faf9cb36..8c350729bc 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c

[Qemu-devel] [PATCH 5/9] target/mips: Support the R5900 LQ multimedia instruction

2019-01-13 Thread Fredrik Noring
Signed-off-by: Fredrik Noring --- target/mips/translate.c | 46 - 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 8c350729bc..79505bb6c2 100644 --- a/target/mips/translate.c +++ b/target/

Re: [Qemu-devel] [PATCH v2 0/9] Build ACPI Heterogeneous Memory Attribute Table (HMAT)

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/2019053451.14304-1-tao3...@intel.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!

[Qemu-devel] [PATCH 9/9] tests/tcg/mips: Test R5900 multimedia instruction SQ

2019-01-13 Thread Fredrik Noring
Signed-off-by: Fredrik Noring --- tests/tcg/mips/mipsn32r5900/Makefile | 1 + tests/tcg/mips/mipsn32r5900/sq.c | 105 +++ 2 files changed, 106 insertions(+) create mode 100644 tests/tcg/mips/mipsn32r5900/sq.c diff --git a/tests/tcg/mips/mipsn32r5900/Makefile b/tes

[Qemu-devel] [PATCH 7/9] tests/tcg/mips: Test R5900 multimedia instructions PCPYUD and PCPYLD

2019-01-13 Thread Fredrik Noring
Signed-off-by: Fredrik Noring --- tests/tcg/mips/mipsn32r5900/Makefile | 25 +++ tests/tcg/mips/mipsn32r5900/pcpyuld.c | 46 +++ 2 files changed, 71 insertions(+) create mode 100644 tests/tcg/mips/mipsn32r5900/Makefile create mode 100644 tests/tcg/mips/mipsn

[Qemu-devel] [PATCH 8/9] tests/tcg/mips: Test R5900 multimedia instruction LQ

2019-01-13 Thread Fredrik Noring
Signed-off-by: Fredrik Noring --- tests/tcg/mips/mipsn32r5900/Makefile | 3 +- tests/tcg/mips/mipsn32r5900/lq.c | 111 +++ 2 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/mips/mipsn32r5900/lq.c diff --git a/tests/tcg/mips/mipsn32r5900

Re: [Qemu-devel] [PATCH] hw/pvrdma: Post CQE when receive invalid gid index

2019-01-13 Thread Yuval Shaia
On Sat, Jan 12, 2019 at 05:11:39PM +0200, Marcel Apfelbaum wrote: > > > On 1/9/19 10:15 PM, Yuval Shaia wrote: > > This error should propagate back to guest. > > > > Signed-off-by: Yuval Shaia > > --- > > hw/rdma/rdma_backend.h | 1 + > > hw/rdma/vmw/pvrdma_qp_ops.c | 6 -- > > 2 f

Re: [Qemu-devel] [PATCH 2/3] hw/rdma: modify struct initialization

2019-01-13 Thread Yuval Shaia
On Sat, Jan 12, 2019 at 05:02:24PM +0200, Marcel Apfelbaum wrote: > Do not initialize structs with {0} since some > CLANG versions do not support it. > > Use memset instead. It is easier than patching CLANG ha? :) > > Signed-off-by: Marcel Apfelbaum > --- > contrib/rdmacm-mux/main.c | 12

Re: [Qemu-devel] [PATCH 3/3] contrib/rdmacm-mux: fix clang compilation

2019-01-13 Thread Yuval Shaia
On Sat, Jan 12, 2019 at 05:02:25PM +0200, Marcel Apfelbaum wrote: > Fix Commit a5d2f6f877 (contrib/rdmacm-mux: Add implementation >of RDMA User MAD multiplexer). > > The above commit introduces a new contrib target, adding a global dependency > to libumad library in case pv

Re: [Qemu-devel] [PATCH 2/3] hw/rdma: modify struct initialization

2019-01-13 Thread Yuval Shaia
On Sun, Jan 13, 2019 at 09:24:40PM +0200, Yuval Shaia wrote: > On Sat, Jan 12, 2019 at 05:02:24PM +0200, Marcel Apfelbaum wrote: > > Do not initialize structs with {0} since some > > CLANG versions do not support it. > > > > Use memset instead. > > It is easier than patching CLANG ha? :) > > >

Re: [Qemu-devel] [PATCH] crypto: finish removing TABs

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20181217231639.24250-1-pbonz...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20181217231639.24250-1-pbonz...@redhat.com Subject: [Qemu-devel] [PATCH] crypto: finish r

Re: [Qemu-devel] [PATCH 00/13] Misc fixes / improvements for the docker and travis configs

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190109163114.17010-1-berra...@redhat.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN ===

Re: [Qemu-devel] [PATCH 1/3] contrib/rdmacm-mux: remove Wno-format-truncation flag

2019-01-13 Thread Yuval Shaia
On Sat, Jan 12, 2019 at 05:02:23PM +0200, Marcel Apfelbaum wrote: > The flag is not recognized by some CLANG versions. > Add proper constraints in code instead. > > Signed-off-by: Marcel Apfelbaum > --- > contrib/rdmacm-mux/Makefile.objs | 2 +- > contrib/rdmacm-mux/main.c| 6 -- > 2

Re: [Qemu-devel] [PULL 0/2] Linux user for 4.0 patches

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190110083737.5036-1-laur...@vivier.eu/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20190110083737.5036-1-laur...@vivier.eu Subject: [Qemu-devel] [PULL 0/2] Linux user for 4.0 p

Re: [Qemu-devel] [PATCH] ftgmac100: implement the new MDIO interface on Aspeed SoC

2019-01-13 Thread Andrew Jeffery
On Fri, 11 Jan 2019, at 23:27, Cédric Le Goater wrote: > The PHY behind the MAC of an Aspeed SoC can be controlled using two > different MDC/MDIO interfaces. The same registers PHYCR (MAC60) and > PHYDATA (MAC64) are involved but they have a different layout. > > BIT31 of the Feature Register (

Re: [Qemu-devel] [PATCH v3 0/5] kvm "virtio pmem" device

2019-01-13 Thread Dave Chinner
On Fri, Jan 11, 2019 at 02:45:04AM -0500, Pankaj Gupta wrote: > > > > > On Wed, Jan 09, 2019 at 08:17:31PM +0530, Pankaj Gupta wrote: > > > This patch series has implementation for "virtio pmem". > > > "virtio pmem" is fake persistent memory(nvdimm) in guest > > > which allows to bypass the gu

Re: [Qemu-devel] [PATCH v2] slirp: check data length while emulating ident function

2019-01-13 Thread Samuel Thibault
P J P, le dim. 13 janv. 2019 23:29:48 +0530, a ecrit: > From: Prasad J Pandit > > While emulating identification protocol, tcp_emu() does not check > available space in the 'sc_rcv->sb_data' buffer. It could lead to > heap buffer overflow issue. Add check to avoid it. > > Reported-by: Kira <8647

Re: [Qemu-devel] [PATCH v3 0/5] kvm "virtio pmem" device

2019-01-13 Thread Matthew Wilcox
On Mon, Jan 14, 2019 at 10:29:02AM +1100, Dave Chinner wrote: > Until you have images (and hence host page cache) shared between > multiple guests. People will want to do this, because it means they > only need a single set of pages in host memory for executable > binaries rather than a set of page

Re: [Qemu-devel] [PATCH 0/4] Add ignore-external migration capability

2019-01-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190110120120.9943-1-yury-ko...@yandex-team.ru/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGI

[Qemu-devel] [PULL 02/65] slirp: remove do_pty from fork_exec()

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau QEMU uses fork_exec() with do_pty values 0 or 3. Let's clean up some unused code. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/misc.c | 55 ++-- slirp/misc.h | 2 +- slirp/tcp_subr.c | 4

[Qemu-devel] [PULL 11/65] slirp: remove dead declarations

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau An overdue cleanup. Remaining declarations could probably be moved in other headers, such as slirp.h. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/main.h | 29 - 1 file changed, 29 deletions(-) diff --git a/slir

[Qemu-devel] [PULLv2 00/65] slirp updates

2019-01-13 Thread Samuel Thibault
The following changes since commit 27df21ca3886fff4dd3d70e515517667963a52f1: Merge remote-tracking branch 'remotes/kraxel/tags/misc-20190111-pull-request' into staging (2019-01-11 16:45:59 +) are available in the Git repository at: https://people.debian.org/~sthibault/qemu.git tags/samu

[Qemu-devel] [PULL 07/65] slirp: move internal function declarations

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Clarify that those functions are internal to slirp. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/libslirp.h | 3 --- slirp/slirp.h| 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/slirp/libslirp.h b/slirp/libslirp.

[Qemu-devel] [PULL 06/65] slirp: rename /extra/chardev

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Now it's only used for the chardev pointer. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/slirp.c| 4 ++-- slirp/socket.h | 2 +- slirp/tcp_subr.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/slirp/slirp.c b/s

[Qemu-devel] [PULL 03/65] slirp: replace ex_pty with ex_chardev

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau do_pty == 3 means to talk to a chardev. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/misc.c | 2 +- slirp/misc.h | 2 +- slirp/slirp.c| 4 ++-- slirp/tcp_subr.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --gi

[Qemu-devel] [PULL 09/65] slirp: fix slirp_add_exec() leaks

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Free the list elements allocated in add_exec(). Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/misc.h | 2 +- slirp/slirp.c | 8 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/slirp/misc.h b/slirp/misc.h index 9482972

[Qemu-devel] [PULL 17/65] slirp: remove FULL_BOLT

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Looking at git history, this looks like something from the past, when there was a tty layer. Let's remove it. Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/if.c | 2 -- slirp/slirp_config.h | 7

[Qemu-devel] [PULL 05/65] slirp: remove unused EMU_RSH

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau EMU_RSH handling was dropped in commit 0d62c4cfe21752df4c1d6e2c2398f15d5eaa794a. The assignment, and subsequent free() of ex_ptr->ex_exec to so->extra looks unsafe (double free is likely to occur). Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- sl

[Qemu-devel] [PULL 01/65] slirp: associate slirp_output callback with the Slirp context

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Let's make the slirp interface a bit more library-like. Associate the slirp_output() with a Slirp context. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- net/slirp.c | 5 +++-- slirp/libslirp.h | 9 + slirp/ncsi.c | 2 +- slirp/

[Qemu-devel] [PULL 14/65] slirp: remove unused M_TRAILINGSPACE

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/mbuf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/slirp/mbuf.h b/slirp/mbuf.h index bfdf8c4577..cbf17e136b 100644 --- a/slirp/mbuf.h +++ b/slirp/mbuf.h @@

[Qemu-devel] [PULL 12/65] slirp: add tftp tracing

2019-01-13 Thread Samuel Thibault
From: Gerd Hoffmann Useful when debugging pxeboot, to see what the guest tries to do. Signed-off-by: Gerd Hoffmann Reviewed-by: Liam Merwick Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Samuel Thibault --- Makefile.objs | 1 + slirp/tftp.c

[Qemu-devel] [PULL 10/65] slirp: replace the poor-man string split with g_strsplit()

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Use the glib function for the work, fix a potential crash on >256 words. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/misc.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/slirp/misc.c b/slirp/mis

[Qemu-devel] [PULL 15/65] slirp: use a callback structure to interface with qemu

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau This will bring slirp a bit forward to the state of an independent project. Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Samuel Thibault --- net/slirp.c | 6 +- slirp/libslirp.h | 13 +++-- slirp/ncsi.c | 2

[Qemu-devel] [PULL 13/65] slirp: move socket pair creation in helper function

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Originally, the patch was fixing a bunch of issues, but Peter beat me to it with earlier commit "slirp: fork_exec(): create and connect child socket before fork()". Factor out socket pair creation, to simplify the fork_exec() code. Use the name socketpair_with_oob() since

[Qemu-devel] [PULL 21/65] slirp: remove NO_UNIX_SOCKETS

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp.h| 3 --- slirp/slirp_config.h | 6 -- 2 files changed, 9 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index 57955a8965..fba77d0c3d 1

[Qemu-devel] [PULL 19/65] slirp: remove HAVE_SYS_SIGNAL_H

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp.h| 3 --- slirp/slirp_config.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index f7c087456a..4c3c672ee6 1006

[Qemu-devel] [PULL 04/65] slirp: use a dedicated field for chardev pointer

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Let's not mix command line and chardev pointers. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- net/slirp.c | 8 slirp/libslirp.h | 2 +- slirp/misc.c | 11 +++ slirp/misc.h | 4 ++-- slirp/slirp.c| 5 +++-- sl

[Qemu-devel] [PULL 32/65] slirp: replace compile time DO_KEEPALIVE

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Use a global variable instead (similar to slirp_debug) Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/slirp.c| 3 +++ slirp/slirp.h| 6 +++--- slirp/slirp_config.h | 12 slirp/tcp_input.c| 2 +- slirp/tcp_t

[Qemu-devel] [PULL 18/65] slirp: remove the disabled readv()/writev() code path

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau The soread() function may be used on datagram sockets, and would provide different behaviour if HAVE_READV was set, on empty datagrams. This looks like a minor optimization, that never has been a strong goal for slirp. Signed-off-by: Marc-André Lureau Reviewed-by: Daniel

[Qemu-devel] [PULL 24/65] slirp: remove unused HAVE_SYS_WAIT_H

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp.h| 4 slirp/slirp_config.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index 400f585cec..1f47848271 100

[Qemu-devel] [PULL 20/65] slirp: remove unused HAVE_SYS_BITYPES_H

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp.h| 4 slirp/slirp_config.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index 4c3c672ee6..57955a8965 100

[Qemu-devel] [PULL 08/65] slirp: remove Monitor dependency, return a string for info

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau There is nothing performance-sensitive in returning an allocated string for info, and handling the monitor_printf() on the caller side. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- net/slirp.c | 7 --- slirp/libslirp.h | 2 +- slirp/mi

[Qemu-devel] [PULL 28/65] slirp: remove unused DECLARE_IOVEC

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau It's actually qemu configure CONFIG_IOVEC that is being used. slirp/ does not use it anyway Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp_config.h | 6 -- 1 file changed, 6 deletions(-) diff --git

[Qemu-devel] [PULL 31/65] slirp: replace SIZEOF_CHAR_P with glib equivalent

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Samuel Thibault --- slirp/ip.h | 2 +- slirp/slirp_config.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/slirp/ip.h b/slirp/ip.h index 83fc9cdfbf..24

[Qemu-devel] [PULL 30/65] slirp: replace HOST_WORDS_BIGENDIAN with glib equivalent

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau One more step towards making the project independent from QEMU. Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/ip.h | 8 +--- slirp/ip6.h | 3 ++- sl

[Qemu-devel] [PULL 22/65] slirp: remove unused HAVE_SYS_STROPTS_H

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp.h| 5 - slirp/slirp_config.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index fba77d0c3d..400f585cec 10

[Qemu-devel] [PULL 27/65] slirp: remove HAVE_SYS_FILIO_H

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp.h| 2 +- slirp/slirp_config.h | 6 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index 226bced42

[Qemu-devel] [PULL 41/65] slirp: replace ARRAY_SIZE with G_N_ELEMENTS

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Do not require QEMU macro. Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/ncsi.c | 2 +- slirp/tftp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PULL 37/65] slirp: remove #if notdef dead code

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/ip_input.c | 200 -- slirp/tcp_input.c | 39 - 2 files changed, 239 deletions(-) diff --git a/slirp/ip_input

[Qemu-devel] [PULL 43/65] glib-compat: add g_spawn_async_with_fds() fallback

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- include/glib-compat.h | 56 +++ 1 file changed, 56 insertions(+) diff --git a/include/glib-compat.h b/include/glib-compat.h index fdf95a255d..8a078c5288 100644 -

[Qemu-devel] [PULL 26/65] slirp: remove HAVE_SYS_IOCTL_H

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp.h| 2 +- slirp/slirp_config.h | 6 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index 7606de962

[Qemu-devel] [PULL 45/65] slirp: replace error_report() with g_critical()

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Reduce dependency on QEMU. QEMU could use a custom log handler if it wants to redirect/filter it. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slirp/misc.c b/slirp/m

[Qemu-devel] [PULL 16/65] slirp: remove PROBE_CONN dead-code

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Nobody cares for over 14y. Somebody can revert or rewrite if interested by that. Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp.c| 41

[Qemu-devel] [PULL 25/65] slirp: remove unused HAVE_SYS_SELECT_H

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/main.h | 4 slirp/slirp.h| 4 slirp/slirp_config.h | 6 -- 3 files changed, 14 deletions(-) diff --git a/slirp/main.h b/slirp/main.h

[Qemu-devel] [PULL 33/65] slirp: remove unused global slirp_instance

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/slirp.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index 05c203c8c7..d1b6bcefbb 100644 --- a/slirp/slirp.h +++ b/slirp/slir

[Qemu-devel] [PULL 38/65] slirp: remove unused sbflush()

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Signed-off-by: Samuel Thibault --- slirp/sbuf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/slirp/sbuf.h b/slirp/sbuf.h index a722ecb629..644c201341 100644 --- a/slirp/sbuf.h +++ b/slirp/sbuf.h @@

[Qemu-devel] [PULL 34/65] slirp: replace error_report() with g_critical()

2019-01-13 Thread Samuel Thibault
From: Marc-André Lureau Reduce dependency on QEMU. QEMU could use a custom log handler if it wants to redirect/filter it. Signed-off-by: Marc-André Lureau Signed-off-by: Samuel Thibault --- slirp/ip6_icmp.c | 2 +- slirp/misc.c | 2 +- slirp/slirp.c| 6 +++--- 3 files changed, 5 inser

  1   2   >