[Qemu-devel] [PATCH] iotests: 082: Update output

2018-10-31 Thread Fam Zheng
Commit 9cbef9d68e (qemu-option: improve qemu_opts_print_help() output) affected qemu-img help output, and broke this test case. Update the output reference to fix it. Signed-off-by: Fam Zheng --- I'm once again looking at enabling iotests on patchew (via vm based tests), but immediately got bl

Re: [Qemu-devel] [PATCH for-3.1] milkymist: Check for failure trying to load BIOS image

2018-10-31 Thread Michael Walle
Am 2018-10-30 18:00, schrieb Peter Maydell: Check the return value from load_image_targphys(), which tells us whether our attempt to load the BIOS image into RAM failed. (Spotted by Coverity, CID 1190305.) Signed-off-by: Peter Maydell Acked-by: Michael Walle Will you put it in your queue, P

Re: [Qemu-devel] [PATCH 2/3] qtest: new functions for pulsed IRQs

2018-10-31 Thread Michael Walle
Am 2018-07-18 12:48, schrieb Michael Walle: It is only possible to retrieve the current state of an interrupt line. But there are devices which just pulses the interrupt line. Introduce a latch which is set by qtest and which can be cleared by the test case. Signed-off-by: Michael Walle Cc: P

[Qemu-devel] [Bug 1800786] [NEW] USB assertion `s->csw.sig == cpu_to_le32(0x53425355)' failed

2018-10-31 Thread 王瑞
Public bug reported: Qemu crashed after starting and stopping VM for many times, and the final log shows below. qemu-system-x86_64: hw/usb/dev-storage.c:236: usb_msd_send_status: Assertion `s->csw.sig == cpu_to_le32(0x53425355)' failed. 2018-10-05 15:33:11.261+: shutting down I got the back

[Qemu-devel] [Bug 1800786] Re: USB assertion `s->csw.sig == cpu_to_le32(0x53425355)' failed

2018-10-31 Thread 王瑞
** Tags added: usb -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1800786 Title: USB assertion `s->csw.sig == cpu_to_le32(0x53425355)' failed Status in QEMU: New Bug description: Qemu crashed

Re: [Qemu-devel] [PATCH] iotests: 082: Update output

2018-10-31 Thread Fam Zheng
On Wed, 10/31 16:04, Fam Zheng wrote: > Commit 9cbef9d68e (qemu-option: improve qemu_opts_print_help() output) > affected qemu-img help output, and broke this test case. > > Update the output reference to fix it. > > Signed-off-by: Fam Zheng > > --- > > I'm once again looking at enabling iotes

Re: [Qemu-devel] [PATCH 1/4] add QemuSupportState

2018-10-31 Thread Cornelia Huck
On Tue, 30 Oct 2018 20:15:45 -0300 Eduardo Habkost wrote: > On Tue, Oct 30, 2018 at 06:37:42PM +0100, Philippe Mathieu-Daudé wrote: > > If I understand correctly, we have this 'state machine': > > > >SupportedUnsupported Deprecated > > > > (someone to talk) (nobody

Re: [Qemu-devel] [PATCH v3] lsi_scsi: Reselection needed to remove pending commands from queue

2018-10-31 Thread Paolo Bonzini
On 30/10/2018 22:42, George Kennedy wrote: > Under heavy IO (e.g. fio) the queue is not checked frequently enough for > pending commands. As a result some pending commands are timed out by the > linux sym53c8xx driver, which sends SCSI Abort messages for the timed out > commands. The SCSI Abort mes

[Qemu-devel] [PATCH 1/4] README: use 'https://' instead of 'git://'

2018-10-31 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Reported-by: Jann Horn Signed-off-by: Stefan Hajnoczi --- README | 4 ++-- pc-bios/README | 4 +

[Qemu-devel] [PATCH 3/4] MAINTAINERS: use 'https://' instead of 'git://' for GitHub

2018-10-31 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Reported-by: Jann Horn Signed-off-by: Stefan Hajnoczi --- MAINTAINERS | 74 ++--

[Qemu-devel] [PATCH 0/4] Use 'https://' instead of 'git://'

2018-10-31 Thread Stefan Hajnoczi
Jeff Cody has enabled git smart HTTP support on qemu.org. From now on HTTPS is the preferred protocol because it adds some protection against man-in-the-middle when cloning a repo. This patch series updates git:// URLs and changes them to https://. The https:// URL format is: https://git.qem

[Qemu-devel] [PATCH 4/4] gitmodules: use 'https://' instead of 'git://'

2018-10-31 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Also change git.qemu-project.org to git.qemu.org (we control both domain names but qemu.org is used more w

[Qemu-devel] [PATCH 2/4] get_maintainer: use 'https://' instead of 'git://'

2018-10-31 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Reported-by: Jann Horn Signed-off-by: Stefan Hajnoczi --- scripts/get_maintainer.pl | 2 +- 1 file chan

[Qemu-devel] ping2 Re: [PATCH 0/2] replication: drop extra sync

2018-10-31 Thread Vladimir Sementsov-Ogievskiy
ping2 Hi, it's a first step to backup refactoring and improving. Just get rid of this extra and unnatural synchronization. 19.09.2018 15:43, Vladimir Sementsov-Ogievskiy wrote: > Hi all! > > We finally implemented fleecing scheme, create a test case for it (222) > and even made it safe (f8d59dfb

Re: [Qemu-devel] [Qemu-trivial] [PATCH] hw: qdev: fix error in comment

2018-10-31 Thread Laurent Vivier
On 30/10/2018 16:16, Li Qiang wrote: > Cc: qemu-triv...@nongnu.org > > Signed-off-by: Li Qiang > --- > include/hw/qdev-core.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h > index a24d0dd566..92851e55df 100644 > --- a/in

[Qemu-devel] [PATCH] gtk: Fix mouse offset in scaled gtk-gl display for VFIO/iGVT-g DMA Buf mode

2018-10-31 Thread Chen Zhang via Qemu-devel
The issue was reported as in https://bugs.launchpad.net/qemu/+bug/1793859 When an OpenGL accelerated GTK window is used for iGVT-g DMA Buf device, window scaling would cause guest cursor to move in undesirable velocity. To fix this usability issue, the gtk mouse motion events was modified to sca

Re: [Qemu-devel] [PATCH 2/3] qtest: new functions for pulsed IRQs

2018-10-31 Thread Andreas Färber
Am 31.10.18 um 09:31 schrieb Michael Walle: > Am 2018-07-18 12:48, schrieb Michael Walle: >> It is only possible to retrieve the current state of an interrupt >> line. But >> there are devices which just pulses the interrupt line. Introduce a latch >> which is set by qtest and which can be cleared

Re: [Qemu-devel] [PATCH] blockdev: report error on block latency histogram set error

2018-10-31 Thread Vladimir Sementsov-Ogievskiy
18.10.2018 13:42, zhenwei pi wrote: > Function block_latency_histogram_set may return error, but qapi ignore > this. > This can be reproduced easily by qmp command: > virsh qemu-monitor-command INSTANCE > '{"execute":"x-block-latency-histogram-set", > "arguments":{"device":"drive-virtio-disk1","b

Re: [Qemu-devel] [PATCH 1/4] README: use 'https://' instead of 'git://'

2018-10-31 Thread Daniel P . Berrangé
On Wed, Oct 31, 2018 at 08:43:06AM +, Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Reported-by: Jann Horn > Signe

Re: [Qemu-devel] [PATCH 2/4] get_maintainer: use 'https://' instead of 'git://'

2018-10-31 Thread Daniel P . Berrangé
On Wed, Oct 31, 2018 at 08:43:07AM +, Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Reported-by: Jann Horn > Signe

Re: [Qemu-devel] [PATCH 3/4] MAINTAINERS: use 'https://' instead of 'git://' for GitHub

2018-10-31 Thread Daniel P . Berrangé
On Wed, Oct 31, 2018 at 08:43:08AM +, Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Reported-by: Jann Horn > Signe

Re: [Qemu-devel] [PATCH 4/4] gitmodules: use 'https://' instead of 'git://'

2018-10-31 Thread Daniel P . Berrangé
On Wed, Oct 31, 2018 at 08:43:09AM +, Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Also change git.qemu-project.or

Re: [Qemu-devel] [PATCH 3/4] MAINTAINERS: use 'https://' instead of 'git://' for GitHub

2018-10-31 Thread Cornelia Huck
On Wed, 31 Oct 2018 08:43:08 + Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Reported-by: Jann Horn > Signed-off

Re: [Qemu-devel] [PATCH v3 0/7] qapi/range/memory-device: fixes and cleanups

2018-10-31 Thread David Hildenbrand
On 23.10.18 17:22, David Hildenbrand wrote: > While working on memory device code, I noticed that specifiying an uint64_t > on command line does not work in all cases as we always parse an int64_t. > So I fix that and also cleanup the old int64_t parser. > > To be able to fix some overflows in mem

Re: [Qemu-devel] [PATCH 2/3] qtest: new functions for pulsed IRQs

2018-10-31 Thread Paolo Bonzini
On 18/07/2018 12:48, Michael Walle wrote: > /** > + * get_irq_latched: > + * @num: Interrupt to observe. > + * > + * Returns: The latched level of the @num interrupt. > + */ > +static inline bool get_irq_latched(int num) > +{ > +return qtest_get_irq_latched(global_qtest, num); > +} > + > +/**

[Qemu-devel] [PATCH] vhost-user-bridge: fix "unknown type name" compilation error

2018-10-31 Thread Marc-André Lureau
osdep.h should be included first: CC tests/vhost-user-bridge.o In file included from /home/elmarco/src/qemu/tests/vhost-user-bridge.c:32: /home/elmarco/src/qemu/include/qemu/atomic.h:480:1: error: unknown type name ‘int64_t’ int64_t atomic_read_i64(const int64_t *ptr); ^~~ /home/elm

Re: [Qemu-devel] [PATCH v2 13/29] target/riscv: Convert RV32D insns to decodetree

2018-10-31 Thread Bastian Koppelmann
On 10/20/18 9:14 AM, Bastian Koppelmann wrote: [...] +static bool trans_fclass_d(DisasContext *ctx, arg_fclass_d *a, uint32_t insn) +{ +#if defined(TARGET_RISCV64) +REQUIRE_FPU; + +TCGv t0 = tcg_temp_new(); +gen_helper_fclass_d(t0, cpu_fpr[a->rs1]); +gen_set_gpr(a->rd, t0); +

Re: [Qemu-devel] [PATCH v3 09/19] hw: acpi: Export and generalize the PCI host AML API

2018-10-31 Thread Samuel Ortiz
Hi Philippe, On Tue, Oct 30, 2018 at 07:04:15PM +0100, Philippe Mathieu-Daudé wrote: > > > > > +void acpi_get_pci_holes(Range *hole, Range *hole64) > > > > > > ... and this function neither, it should stay in hw/i386/acpi-build.c, > > > thus > > > you don't need to modify the prototype and can c

Re: [Qemu-devel] [PATCH v2 13/29] target/riscv: Convert RV32D insns to decodetree

2018-10-31 Thread Bastian Koppelmann
On 10/31/18 11:44 AM, Bastian Koppelmann wrote: On 10/20/18 9:14 AM, Bastian Koppelmann wrote: [...] +static bool trans_fclass_d(DisasContext *ctx, arg_fclass_d *a, uint32_t insn) +{ +#if defined(TARGET_RISCV64) +    REQUIRE_FPU; + +    TCGv t0 = tcg_temp_new(); +    gen_helper_fclass_d(t0,

Re: [Qemu-devel] [PATCH for-3.1] target/arm: Remove can't-happen if() from handle_vec_simd_shli()

2018-10-31 Thread Alex Bennée
Peter Maydell writes: > In handle_vec_simd_shli() we have a check: > if (size > 3 && !is_q) { > unallocated_encoding(s); > return; > } > However this can never be true, because we calculate > int size = 32 - clz32(immh) - 1; > where immh is a 4 bit field which we

Re: [Qemu-devel] [PATCH v2] s390x/pci: add common fmb

2018-10-31 Thread Cornelia Huck
On Wed, 24 Oct 2018 11:58:33 +0800 Yi Min Zhao wrote: > 在 2018/10/24 上午5:25, Cornelia Huck 写道: > > On Mon, 22 Oct 2018 13:17:34 +0100 > > Thomas Huth wrote: > > > >> On 2018-10-22 10:02, Yi Min Zhao wrote: > >>> Common function measurement block is used to report counters of > >>> successful

Re: [Qemu-devel] [PATCH] target/ppc: fix mtmsr instruction for icount

2018-10-31 Thread Richard Henderson
On 10/30/18 9:30 AM, Pavel Dovgalyuk wrote: > This patch fixes processing of mtmsr instructions in icount mode. > In this mode writing to interrupt/peripheral state is controlled > by can_do_io flag. This flag must be set explicitly before helper > function invocation. > > Signed-off-by: Maria Kli

Re: [Qemu-devel] [PATCH] target/m68k: use EXCP_ILLEGAL instead of EXCP_UNSUPPORTED

2018-10-31 Thread Richard Henderson
On 10/30/18 4:55 PM, Laurent Vivier wrote: > Coldfire defines an "Unsupported instruction" exception if execution > of a valid instruction is attempted but the required hardware is not > present in the processor. > > We use it with instructions that are in fact undefined or illegal, > and the exce

Re: [Qemu-devel] [PATCH v3 01/13] qtest: Add set_irq_in command to set IRQ/GPIO level

2018-10-31 Thread Laurent Vivier
On 31/10/2018 01:25, Steffen Görtz wrote: > Adds a new qtest command "set_irq_in" which allows > to set qemu gpio lines to a given level. > > Based on https://lists.gnu.org/archive/html/qemu-devel/2012-12/msg02363.html > which never got merged. > > Signed-off-by: Steffen Görtz > Originally-by: M

Re: [Qemu-devel] [PATCH v2 0/2] hw/arm/exynos4: Add DMA support for SMDKC210 board

2018-10-31 Thread no-reply
Hi, This series failed 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. Type: series Message-id: 20181030114048.21527-1-phi...@redhat.com Subject: [Qemu-devel] [PATCH v2 0/2] hw/arm/exyn

Re: [Qemu-devel] [PATCH RFC v6 6/7] migration: fix some error handling

2018-10-31 Thread Fei Li
On 10/31/2018 03:49 AM, Dr. David Alan Gilbert wrote: * Fei Li (f...@suse.com) wrote: Add error handling for qemu_ram_foreach_migratable_block() when it fails. Always call migrate_set_error() to set the error state without relying on whether multifd_save_cleanup() succeeds. As the passed &lo

Re: [Qemu-devel] [PATCH] vhost-user-bridge: fix "unknown type name" compilation error

2018-10-31 Thread Michal Privoznik
On 10/31/2018 11:41 AM, Marc-André Lureau wrote: > osdep.h should be included first: > > CC tests/vhost-user-bridge.o > In file included from /home/elmarco/src/qemu/tests/vhost-user-bridge.c:32: > /home/elmarco/src/qemu/include/qemu/atomic.h:480:1: error: unknown type name > ‘int64_t’ > i

Re: [Qemu-devel] [PATCH v3] lsi_scsi: Reselection needed to remove pending commands from queue

2018-10-31 Thread George Kennedy
On 10/31/2018 5:21 AM, Paolo Bonzini wrote: On 30/10/2018 22:42, George Kennedy wrote: Under heavy IO (e.g. fio) the queue is not checked frequently enough for pending commands. As a result some pending commands are timed out by the linux sym53c8xx driver, which sends SCSI Abort messages for

[Qemu-devel] [PATCH v5 2/9] qapi: add unmap to BlockDeviceStats

2018-10-31 Thread Anton Nefedov
Signed-off-by: Anton Nefedov Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Alberto Garcia Reviewed-by: Eric Blake --- qapi/block-core.json | 29 +++-- include/block/accounting.h | 1 + block/qapi.c | 6 ++ tests/qemu-iotests/227.out |

[Qemu-devel] [PATCH v5 0/9] discard blockstats

2018-10-31 Thread Anton Nefedov
new in v5: - new patch 3. Protects from double-accounting IDE trim requests in ide_handle_rw_error(). - patch 4: move block_acct_invalid() for unmap to ide_issue_trim_cb() This way it doesn't affect read and write requests. - patch 7: added missing hunks as suggested by Kevi

[Qemu-devel] [PATCH v5 1/9] qapi: group BlockDeviceStats fields

2018-10-31 Thread Anton Nefedov
Make the stat fields definition slightly more readable. Also reorder total_time_ns stats read-write-flush as done elsewhere. Cosmetic change only. Signed-off-by: Anton Nefedov --- qapi/block-core.json | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git

[Qemu-devel] [PATCH v5 4/9] ide: account UNMAP (TRIM) operations

2018-10-31 Thread Anton Nefedov
Signed-off-by: Anton Nefedov --- hw/ide/core.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/ide/core.c b/hw/ide/core.c index 04e22e751d..8da77ff3e3 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -441,6 +441,14 @@ static void ide_issue_trim_cb(void *opaque, int ret)

[Qemu-devel] [PATCH v5 3/9] block: add empty account cookie type

2018-10-31 Thread Anton Nefedov
This adds some protection from accounting unitialized cookie. That is, block_acct_failed/done without previous block_acct_start; in that case, cookie probably holds values from previous operation. (Note: it might also be unitialized holding garbage value and there is still "< BLOCK_MAX_IOTYPE" as

[Qemu-devel] [PATCH v5 8/9] file-posix: account discard operations

2018-10-31 Thread Anton Nefedov
This will help to identify how many of the user-issued discard operations (accounted on a device level) have actually suceeded down on the host file (even though the numbers will not be exactly the same if non-raw format driver is used (e.g. qcow2 sending metadata discards)). Note that these numbe

Re: [Qemu-devel] [RFC v4 08/71] ppc: convert to helper_cpu_halted_set

2018-10-31 Thread Alex Bennée
Emilio G. Cota writes: > Cc: David Gibson > Cc: Alexander Graf > Cc: qemu-...@nongnu.org > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > target/ppc/translate.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/target/ppc/translate.c b/target/

[Qemu-devel] [PATCH v5 9/9] qapi: query-blockstat: add driver specific file-posix stats

2018-10-31 Thread Anton Nefedov
A block driver can provide a callback to report driver-specific statistics. file-posix driver now reports discard statistics Signed-off-by: Anton Nefedov --- qapi/block-core.json | 39 +++ include/block/block.h | 1 + include/block/block_int.h | 1

[Qemu-devel] [PATCH v5 6/9] scsi: move unmap error checking to the complete callback

2018-10-31 Thread Anton Nefedov
This will help to account the operation in the following commit. The difference is that we don't call scsi_disk_req_check_error() before the 1st discard iteration anymore. That function also checks if the request is cancelled, however it shouldn't get canceled until it yields in blk_aio() function

[Qemu-devel] [PULL 1/2] block: drop moderated sheepdog mailing list from MAINTAINERS file

2018-10-31 Thread Daniel P . Berrangé
The sheepdog mailing list is setup to stop and queue messages from non-subscribers, pending moderator approval. Unfortunately it seems that the moderation queue is not actively deadlt with. Even when messages are approved, the sender is never added to the whitelist, so every future mail the same se

[Qemu-devel] [PULL 2/2] scripts: report on author emails that are mangled by the mailing list

2018-10-31 Thread Daniel P . Berrangé
In some cases the Author: email address in patches submitted to the list gets mangled such that it says John Doe via Qemu-devel This change is a result of workarounds for DMARC policies. Subsystem maintainers accepting patches need to catch these and fix them before sending pull requests, s

[Qemu-devel] [PATCH v5 7/9] scsi: account unmap operations

2018-10-31 Thread Anton Nefedov
Signed-off-by: Anton Nefedov --- hw/scsi/scsi-disk.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index e132504913..dee71f9dde 100644 --- a/hw/scsi/scsi-disk.c +++ b/hw/scsi/scsi-disk.c @@ -1663,10 +1663,16 @@ static vo

[Qemu-devel] [PULL 0/2] Misc next patches

2018-10-31 Thread Daniel P . Berrangé
The following changes since commit a2e002ff7913ce93aa0f7dbedd2123dce5f1a9cd: Merge remote-tracking branch 'remotes/vivier2/tags/qemu-trivial-for-3.1-pull-request' into staging (2018-10-30 15:49:55 +) are available in the Git repository at: https://github.com/berrange/qemu tags/misc-nex

Re: [Qemu-devel] [PATCH v3] lsi_scsi: Reselection needed to remove pending commands from queue

2018-10-31 Thread Paolo Bonzini
On 31/10/2018 12:29, George Kennedy wrote: >>>   case 2: /* Wait Reselect */ >>> +    if (!s->resel_dsp) { >>> +    s->resel_dsp = s->dsp - 8; >>> +    } >> >> What is the reason for the "if"? > > The save of the Rselection Script address only nee

[Qemu-devel] [PATCH v5 5/9] scsi: store unmap offset and nb_sectors in request struct

2018-10-31 Thread Anton Nefedov
it allows to report it in the error handler Signed-off-by: Anton Nefedov Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Alberto Garcia --- hw/scsi/scsi-disk.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c inde

Re: [Qemu-devel] [RFC v4 12/71] alpha: convert to helper_cpu_halted_set

2018-10-31 Thread Alex Bennée
Emilio G. Cota writes: > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > target/alpha/translate.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/target/alpha/translate.c b/target/alpha/translate.c > index e5d62850c5..25cd95931d 100644 > --- a/

Re: [Qemu-devel] [RFC v4 09/71] cris: convert to helper_cpu_halted_set

2018-10-31 Thread Alex Bennée
Emilio G. Cota writes: > And fix the temp leak along the way. > > Cc: "Edgar E. Iglesias" > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > target/cris/translate.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/target/cris/translate.c b/target

Re: [Qemu-devel] [RFC v4 10/71] hppa: convert to helper_cpu_halted_set

2018-10-31 Thread Alex Bennée
Emilio G. Cota writes: > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > target/hppa/translate.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/target/hppa/translate.c b/target/hppa/translate.c > index ce05d5619d..df9179e70f 100644 > --- a/target/

Re: [Qemu-devel] [RFC v4 13/71] microblaze: convert to helper_cpu_halted_set

2018-10-31 Thread Alex Bennée
Emilio G. Cota writes: > Cc: "Edgar E. Iglesias" > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > target/microblaze/translate.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c > index

Re: [Qemu-devel] [RFC v4 11/71] m68k: convert to helper_cpu_halted_set

2018-10-31 Thread Alex Bennée
Emilio G. Cota writes: > Cc: Laurent Vivier > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > target/m68k/translate.c | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/target/m68k/translate.c b/target/m68k/translate.c > index ae3651b867..d55e

[Qemu-devel] [PATCH 3/3] qapi: add reason to SHUTDOWN and RESET events

2018-10-31 Thread Dominik Csapak
this makes it possible to determine what the exact reason was for a RESET or a SHUTDOWN this patch also fixes the iotests Signed-off-by: Dominik Csapak --- qapi/run-state.json| 4 ++-- tests/qemu-iotests/060.out | 4 ++-- tests/qemu-iotests/071.out | 4 ++-- tests/qemu-iotests/081.ou

[Qemu-devel] [PATCH 1/3] qapi: move ShutdownCause to qapi/run-state.json

2018-10-31 Thread Dominik Csapak
this makes it possible to use the reason as return value in a QMP event, such as SHUTDOWN Signed-off-by: Dominik Csapak --- include/sysemu/sysemu.h | 20 qapi/run-state.json | 33 + 2 files changed, 33 insertions(+), 20 deletions(-) diff

[Qemu-devel] [PATCH 2/3] qapi: split host-qmp into quit and system-reset

2018-10-31 Thread Dominik Csapak
it is interesting to know whether the shutdown cause was 'quit' or 'reset', especially when using --no-reboot Signed-off-by: Dominik Csapak --- qapi/run-state.json | 10 ++ qmp.c | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/qapi/run-state.json b

[Qemu-devel] [PATCH 0/3] qapi: return ShutdownCause for events

2018-10-31 Thread Dominik Csapak
This series improves the QMP SHUTDOWN and RESET events by adding the ShutdownCause as additional parameter and splitting the HOST_QMP reason into HOST_QMP_QUIT and HOST_QMP_SYSTEM_RESET to be able to detect the difference between them when using '--no-reboot' this is an alternative to my previous

Re: [Qemu-devel] [PATCH 0/3] hw/arm/exynos4: Add DMA support for SMDKC210 board

2018-10-31 Thread no-reply
Hi, This series failed 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. Type: series Message-id: 20181029232100.8454-1-phi...@redhat.com Subject: [Qemu-devel] [PATCH 0/3] hw/arm/exynos4:

Re: [Qemu-devel] [RFC v4 15/71] tcg-runtime: convert to cpu_halted_set

2018-10-31 Thread Alex Bennée
Emilio G. Cota writes: > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > accel/tcg/tcg-runtime.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/accel/tcg/tcg-runtime.c b/accel/tcg/tcg-runtime.c > index 4aa038465f..70e3c9de71 100644 > --- a/accel/tcg

Re: [Qemu-devel] Question: Perfecting checkpatch.pl

2018-10-31 Thread Daniel P . Berrangé
On Tue, Oct 30, 2018 at 12:35:15PM +, Aleksandar Markovic wrote: > Perhaps checkpatch.pl should make sure the commit messages do not contain > "address@hidden" and "Reviewed-off-by"? > > $ git log | grep address@hidden > Signed-off-by: Michael S. Tsirkin > Signed-off-by: Ronald Hecht

Re: [Qemu-devel] [RFC v4 14/71] cpu: define cpu_halted helpers

2018-10-31 Thread Alex Bennée
Emilio G. Cota writes: > cpu->halted will soon be protected by cpu->lock. > We will use these helpers to ease the transition, > since right now cpu->halted has many direct callers. > > Reviewed-by: Richard Henderson > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > include/

[Qemu-devel] [PATCH v2 0/3] decodetree improvments

2018-10-31 Thread Richard Henderson
All three patches have appeared on list before, though not all at once in the same series. This is all cleanup suggested by the ongoing risc-v work. r~ Richard Henderson (3): decodetree: Add !extern flag to argument sets decodetree: Remove "insn" argument from trans_* expanders decodetre

[Qemu-devel] [PATCH v2 1/3] decodetree: Add !extern flag to argument sets

2018-10-31 Thread Richard Henderson
Allow argument sets to be shared between two decoders by avoiding a re-declaration error. Make sure that anonymous argument sets and anonymous formats have unique names. Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- scripts/decodetree.py | 34 +++-

[Qemu-devel] [PATCH v2 3/3] decodetree: Allow multiple input files

2018-10-31 Thread Richard Henderson
While it would be possible to concatenate input files with make, passing the original input files to decodetree.py allows us to generate error messages which allows compilation environments (read: emacs) to next-error to the correct input file. Signed-off-by: Richard Henderson --- scripts/decode

Re: [Qemu-devel] [RFC v4 16/71] arm: convert to cpu_halted

2018-10-31 Thread Alex Bennée
Emilio G. Cota writes: > Cc: Andrzej Zaborowski > Cc: Peter Maydell > Cc: qemu-...@nongnu.org > Reviewed-by: Richard Henderson > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > hw/arm/omap1.c| 4 ++-- > hw/arm/pxa2xx_gpio.c | 2 +- > hw/arm/pxa2xx_pic.c

[Qemu-devel] [PATCH v2 2/3] decodetree: Remove "insn" argument from trans_* expanders

2018-10-31 Thread Richard Henderson
This allows trans_* expanders to be shared between decoders for 32 and 16-bit insns, by not tying the expander to the size of the insn that produced it. This change requires adjusting the two existing users to match. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 507 +++

[Qemu-devel] [PULL 00/10] cputlb: track dirty tlbs and general cleanup

2018-10-31 Thread Richard Henderson
tags/pull-tcg-20181031 for you to fetch changes up to ab6511053015b9cc636915e2c2b97305cbf044f0: cputlb: Remove tlb_c.pending_flushes (2018-10-31 12:16:39 +) Track mmu_idx for which the TLB is clean and need not be flu

[Qemu-devel] [PULL 03/10] cputlb: Move cpu->pending_tlb_flush to env->tlb_c.pending_flush

2018-10-31 Thread Richard Henderson
Protect it with the tlb_lock instead of using atomics. The move puts it in or near the same cacheline as the lock; using the lock means we don't need a second atomic operation in order to perform the update. Which makes it cheap to also update pending_flush in tlb_flush_by_mmuidx_async_work. Test

[Qemu-devel] [PULL 02/10] cputlb: Remove tcg_enabled hack from tlb_flush_nocheck

2018-10-31 Thread Richard Henderson
The bugs this was working around were fixed with commits 022d6378c7fd target/unicore32: remove tlb_flush from uc32_init_fn 6e11beecfde0 target/alpha: remove tlb_flush from alpha_cpu_initfn Tested-by: Emilio G. Cota Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- accel/tcg/cp

[Qemu-devel] [PULL 01/10] cputlb: Move tlb_lock to CPUTLBCommon

2018-10-31 Thread Richard Henderson
This is the first of several moves to reduce the size of the CPU_COMMON_TLB macro and improve some locality of refernce. Tested-by: Emilio G. Cota Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- include/exec/cpu-defs.h | 17 --- accel/tcg/cputlb.c | 48 +++

[Qemu-devel] [PULL 07/10] cputlb: Merge tlb_flush_page into tlb_flush_page_by_mmuidx

2018-10-31 Thread Richard Henderson
The difference between the two sets of APIs is now miniscule. Tested-by: Emilio G. Cota Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- accel/tcg/cputlb.c | 58 ++ 1 file changed, 12 insertions(+), 46 deletions(-) diff --git a/accel

[Qemu-devel] [PULL 06/10] cputlb: Merge tlb_flush_nocheck into tlb_flush_by_mmuidx_async_work

2018-10-31 Thread Richard Henderson
The difference between the two sets of APIs is now miniscule. This allows tlb_flush, tlb_flush_all_cpus, and tlb_flush_all_cpus_synced to be merged with their corresponding by_mmuidx functions as well. For accounting, consider mmu_idx_bitmask = ALL_MMUIDX_BITS to be a full flush. Tested-by: Emil

[Qemu-devel] [PULL 04/10] cputlb: Split large page tracking per mmu_idx

2018-10-31 Thread Richard Henderson
The set of large pages in the kernel is probably not the same as the set of large pages in the application. Forcing one range to cover both will flush more often than necessary. This allows tlb_flush_page_async_work to flush just the one mmu_idx implicated, which in turn allows us to remove tlb_c

[Qemu-devel] [PULL 10/10] cputlb: Remove tlb_c.pending_flushes

2018-10-31 Thread Richard Henderson
This is essentially redundant with tlb_c.dirty. Tested-by: Emilio G. Cota Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- include/exec/cpu-defs.h | 6 -- accel/tcg/cputlb.c | 16 ++-- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/include

[Qemu-devel] [PULL 09/10] cputlb: Filter flushes on already clean tlbs

2018-10-31 Thread Richard Henderson
Especially for guests with large numbers of tlbs, like ARM or PPC, we may well not use all of them in between flush operations. Remember which tlbs have been used since the last flush, and avoid any useless flushing. Tested-by: Emilio G. Cota Reviewed-by: Emilio G. Cota Signed-off-by: Richard He

Re: [Qemu-devel] [RFC v4 11/71] m68k: convert to helper_cpu_halted_set

2018-10-31 Thread Laurent Vivier
On 25/10/2018 16:45, Emilio G. Cota wrote: > Cc: Laurent Vivier > Signed-off-by: Emilio G. Cota > --- > target/m68k/translate.c | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) Reviewed-by: Laurent Vivier

[Qemu-devel] [PULL 08/10] cputlb: Count "partial" and "elided" tlb flushes

2018-10-31 Thread Richard Henderson
Our only statistic so far was "full" tlb flushes, where all mmu_idx are flushed at the same time. Now count "partial" tlb flushes where sets of mmu_idx are flushed, but the set is not maximal. Account one per mmu_idx flushed, as that is the unit of work performed. We don't actually count elided

[Qemu-devel] [PULL 05/10] cputlb: Move env->vtlb_index to env->tlb_d.vindex

2018-10-31 Thread Richard Henderson
The rest of the tlb victim cache is per-tlb, the next use index should be as well. Tested-by: Emilio G. Cota Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- include/exec/cpu-defs.h | 5 +++-- accel/tcg/cputlb.c | 5 ++--- 2 files changed, 5 insertions(+), 5 deletions(-)

Re: [Qemu-devel] [RFC v4 21/71] m68k: convert to cpu_halted

2018-10-31 Thread Laurent Vivier
On 25/10/2018 16:45, Emilio G. Cota wrote: > Cc: Laurent Vivier > Reviewed-by: Richard Henderson > Signed-off-by: Emilio G. Cota > --- > target/m68k/op_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Laurent Vivier

Re: [Qemu-devel] [PATCH RFC v6 5/7] migration: fix the multifd code when receiving less channels

2018-10-31 Thread Fei Li
On 10/31/2018 06:18 AM, Peter Xu wrote: On Tue, Oct 30, 2018 at 06:05:18PM +0800, Fei Li wrote: [...] @@ -1366,6 +1373,10 @@ bool multifd_recv_new_channel(QIOChannel *ioc) QEMU_THREAD_JOINABLE); atomic_inc(&multifd_recv_state->count); return multifd_r

Re: [Qemu-devel] [RFC v4 47/71] m68k: convert to cpu_interrupt_request

2018-10-31 Thread Laurent Vivier
On 25/10/2018 16:46, Emilio G. Cota wrote: > Cc: Laurent Vivier > Reviewed-by: Richard Henderson > Signed-off-by: Emilio G. Cota > --- > target/m68k/cpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Laurent Vivier

Re: [Qemu-devel] [PATCH v3 01/13] qtest: Add set_irq_in command to set IRQ/GPIO level

2018-10-31 Thread Steffen Görtz
Hi Laurent, thank you for your remarks! I have fixed the documentation (also added some explanation for the fields) and switched to int/qemu_strtoi with base=0. Steffen

[Qemu-devel] [PATCH v3 09/35] target/riscv: Convert RVXM insns to decodetree

2018-10-31 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v2 -> v3: - moved 64-bit only insn to insn64.decode - dropped insn argument of trans_foo functions target/riscv/insn32.decode | 10 +++ target/riscv/insn64.decode |

[Qemu-devel] [PATCH v3 04/35] target/riscv: Convert RV32I load/store insns to decodetree

2018-10-31 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v2 -> v3: - split into two patches for RV32 and RV64 - dropped insn argument of trans_foo functions target/riscv/insn32.decode | 10 target/riscv/insn_trans/trans_rvi.inc.c | 64 +

[Qemu-devel] [PATCH v3 07/35] target/riscv: Convert RVXI fence insns to decodetree

2018-10-31 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v2 -> v3: - removed %pred/%succ - dropped insn argument of trans_foo functions target/riscv/insn32.decode | 2 ++ target/riscv/insn_trans/trans_rvi.inc.c | 21 ++

[Qemu-devel] [PATCH v3 12/35] target/riscv: Convert RV32F insns to decodetree

2018-10-31 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v2 -> v3: - dropped insn argument of trans_foo functions target/riscv/insn32.decode | 35 +++ target/riscv/insn_trans/trans_rvf.inc.c | 334 target/riscv/tr

[Qemu-devel] [PATCH v3 05/35] target/riscv: Convert RV64I load/store insns to decodetree

2018-10-31 Thread Bastian Koppelmann
this splits the 64-bit only instructions into its own decode file such that we generate the decoder for these instructions only for the RISC-V 64 bit target. Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- target/riscv/Makefile.objs | 8 +--- target/riscv/insn6

[Qemu-devel] [PATCH v3 06/35] target/riscv: Convert RVXI arithmetic insns to decodetree

2018-10-31 Thread Bastian Koppelmann
we cannot remove the call to gen_arith() in decode_RV32_64G() since it is used to translate multiply instructions. Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v2 -> v3: - moved 64-bit only insn to insn64.decode - dropped insn argument of trans_foo functions target/r

[Qemu-devel] [PATCH v3 10/35] target/riscv: Convert RV32A insns to decodetree

2018-10-31 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v2 -> v3: - dropped insn argument of trans_foo functions target/riscv/insn32.decode | 17 +++ target/riscv/insn_trans/trans_rva.inc.c | 145 target/riscv/tr

[Qemu-devel] [PATCH v3 35/35] target/riscv: Remaining rvc insn reuse 32 bit translators

2018-10-31 Thread Bastian Koppelmann
only a translate functions of rvc need to handle special cases. For the other rvc instruction we can remove the extra layer of indirection. Signed-off-by: Bastian Koppelmann --- target/riscv/insn16.decode | 37 +-- target/riscv/insn_trans/trans_rvc.inc.c | 48 ---

[Qemu-devel] [PATCH v3 08/35] target/riscv: Convert RVXI csr insns to decodetree

2018-10-31 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v2 -> v3: - dropped insn argument of trans_foo functions target/riscv/insn32.decode | 8 +++ target/riscv/insn_trans/trans_rvi.inc.c | 79 + target/riscv/tra

[Qemu-devel] [PATCH v3 03/35] target/riscv: Convert RVXI branch insns to decodetree

2018-10-31 Thread Bastian Koppelmann
Reviewed-by: Palmer Dabbelt Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v2 -> v3: - dropped insn argument of trans_foo functions - removal of AUIPC moved to 0002 - &branch -> &b target/riscv/insn32.decode | 19 +++

[Qemu-devel] [PATCH v3 11/35] target/riscv: Convert RV64A insns to decodetree

2018-10-31 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v2 -> v3: - moved 64-bit only insn to insn64.decode - dropped insn argument of trans_foo functions target/riscv/insn64.decode | 13 +++ target/riscv/insn_trans/trans_rva.inc.c |

[Qemu-devel] [PATCH v3 01/35] target/riscv: Move CPURISCVState pointer to DisasContext

2018-10-31 Thread Bastian Koppelmann
CPURISCVState is rarely used, so there is no need to pass it to every translate function. This paves the way for decodetree which only passes DisasContext to translate functions. Reviewed-by: Palmer Dabbelt Signed-off-by: Bastian Koppelmann --- target/riscv/translate.c | 15 --- 1 f

[Qemu-devel] [PATCH v3 26/35] target/riscv: Remove shift and slt insn manual decoding

2018-10-31 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- target/riscv/insn_trans/trans_rvi.inc.c | 78 + target/riscv/translate.c| 59 ++- 2 files changed, 85 insertions(+), 52 deletions(-) diff --git

  1   2   3   4   >