Re: [Qemu-devel] [PATCH v3 3/3] Change other funcitons referring to feature_word_info[]

2018-09-04 Thread Robert Hoo
On Fri, 2018-08-17 at 17:52 +0200, Paolo Bonzini wrote: > On 10/08/2018 16:06, Robert Hoo wrote: > > x86_cpu_get_feature_words(): limit to CPUID_FEATURE_WORD only. > > This should also grow support for MSR feature words. > > My suggestion is that you add another patch after patch 1 that expands

Re: [Qemu-devel] [PATCH 3/5] qemu_init_vcpu: add a new Error paramater to propagate

2018-09-04 Thread Fei Li
On 09/04/2018 07:22 PM, Daniel P. Berrangé wrote: On Tue, Sep 04, 2018 at 07:08:20PM +0800, Fei Li wrote: The caller of qemu_init_vcpu() already passed the **errp to handle errors. In view of this, add a new Error parameter to the following call trace to propagate the error and let the final

Re: [Qemu-devel] [PATCH 4/5] qemu_thread_create: propagate the error to callers to check

2018-09-04 Thread Fei Li
On 09/04/2018 07:18 PM, Daniel P. Berrangé wrote: On Tue, Sep 04, 2018 at 07:08:21PM +0800, Fei Li wrote: Add a new Error paramater for qemu_thread_create() to indicate if it succeeds rather than failing with an error. And propagate the error to let the callers check it. Besides, directly

Re: [Qemu-devel] [PATCH 1/5] Fix segmentation fault when qemu_signal_init fails

2018-09-04 Thread Fei Li
Thanks for the review! :) On 09/04/2018 07:26 PM, Daniel P. Berrangé wrote: On Tue, Sep 04, 2018 at 07:08:18PM +0800, Fei Li wrote: Currently, when qemu_signal_init() fails it only returns a non-zero value but without propagating any Error. But its callers need a non-null err when runs

Re: [Qemu-devel] [PATCH v7 4/7] qapi: remove COMMAND_DROPPED event

2018-09-04 Thread Peter Xu
On Tue, Sep 04, 2018 at 10:04:00AM +0200, Markus Armbruster wrote: > Peter Xu writes: > > > On Mon, Sep 03, 2018 at 03:41:16PM +0100, Daniel P. Berrangé wrote: > >> On Mon, Sep 03, 2018 at 09:30:52AM -0500, Eric Blake wrote: > >> > On 09/03/2018 08:31 AM, Markus Armbruster wrote: > >> > > >> >

Re: [Qemu-devel] [PATCH v1 00/17] Background snapshots

2018-09-04 Thread Peter Xu
On Tue, Sep 04, 2018 at 04:00:31PM +0300, Denis Plotnikov wrote: > Hi Peter Hi, Denis, > > I moved the code to the repository > https://github.com/denis-plotnikov/qemu/tree/background-snapshot-kvm. > the current version includes fixes with respect to your comments for version > 1. > I moved KVM

Re: [Qemu-devel] [PATCH] vmdk: align end of file to a sector boundary

2018-09-04 Thread yuchenlin via Qemu-devel
Ping! yuchen...@synology.com 於 2018-08-28 11:18 寫道: > From: yuchenlin There is a rare case which the size > of last compressed cluster is larger than the cluster size, which will cause > the file is not aligned at the sector boundary. Signed-off-by: yuchenlin > --- block/vmdk.c | 18

Re: [Qemu-devel] [PATCH v5 1/2] vl.c deprecate incorrect CPUs topology

2018-09-04 Thread Eduardo Habkost
On Tue, Sep 04, 2018 at 03:22:35PM +0200, Igor Mammedov wrote: > -smp [cpus],sockets/cores/threads[,maxcpus] should describe topology > so that total number of logical CPUs [sockets * cores * threads] > would be equal to [maxcpus], however historically we didn't have > such check in QEMU and it is

Re: [Qemu-devel] [PATCH v3 2/2] hw/pci: add PCI resource reserve capability to legacy PCI bridge

2018-09-04 Thread Liu, Jing2
Hi Marcel and Michael, Got no response so I would like to ask if I need do something more for this serial? :) Thanks, Jing On 8/30/2018 10:58 AM, Liu, Jing2 wrote: Ping Michael :) Thanks, Jing On 8/25/2018 12:51 AM, Marcel Apfelbaum wrote: On 08/21/2018 06:18 AM, Jing Liu wrote: Add hint

[Qemu-devel] [PATCH 15/15] target/xtensa: extract gen_check_interrupts call

2018-09-04 Thread Max Filippov
- mark instructions that affect active IRQ level; - put call for gen_check_interrupts right after the instruction translation; when FLIX is enabled it will need to appear before other exits from the TB as well; Signed-off-by: Max Filippov --- target/xtensa/translate.c | 78

[Qemu-devel] [PATCH 14/15] target/xtensa: make rsr/wsr helpers return void

2018-09-04 Thread Max Filippov
Now that all logic for TB termination is extracted from rsr/wsr their return value is not used and may be dropped. Signed-off-by: Max Filippov --- target/xtensa/translate.c | 102 -- 1 file changed, 36 insertions(+), 66 deletions(-) diff --git

[Qemu-devel] [PATCH 13/15] target/xtensa: extract unconditional TB termination via slot 0

2018-09-04 Thread Max Filippov
- mark instructions that require TB termination via slot 0; - put TB termination right after the instruction translation loop, if termination w/o TB linking wasn't requested; Signed-off-by: Max Filippov --- target/xtensa/translate.c | 83 --- 1 file

[Qemu-devel] [PATCH 10/15] target/xtensa: extract unconditional TB termination

2018-09-04 Thread Max Filippov
- mark all instructions that exit TB and require dynamic search for the next TB; - put TB termination right after the instruction translation loop; Signed-off-by: Max Filippov --- target/xtensa/translate.c | 67 --- 1 file changed, 28 insertions(+),

[Qemu-devel] [PATCH 11/15] target/xtensa: change SR number checks to assertions

2018-09-04 Thread Max Filippov
Opcode decoding with libisa takes care about range of valid group SRs, like CCOMPARE, IBREAKA, DBREAKA or DBREAKC. Turn range checks in wsr implementations into assertions. Signed-off-by: Max Filippov --- target/xtensa/translate.c | 65 +-- 1 file

Re: [Qemu-devel] [PATCH] linux-user: do setrlimit selectively

2018-09-04 Thread Max Filippov
On Tue, Sep 4, 2018 at 6:40 PM, Peter Maydell wrote: > I still think 32-on-64 is a red herring here. If ignoring > client attempts to set the memory rlimits makes sense on > 32-on-64 it makes sense for all configurations. Ok, I don't have anything against ignoring guest setrlimit completely, so

[Qemu-devel] [PATCH 12/15] target/xtensa: always end TB on CCOUNT access/CCOMPARE write

2018-09-04 Thread Max Filippov
Currently we only end TB in icount mode, because access to CCOUNT or write to CCOMPARE are IO operations. Simplify the behaviour a bit and end TB unconditionally. Signed-off-by: Max Filippov --- target/xtensa/translate.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff

[Qemu-devel] [PATCH 09/15] target/xtensa: extract test for division by zero

2018-09-04 Thread Max Filippov
- mark quos/quou/rems/remu instructions; - drop parameter 0 from the translate_quou and split translate_remu from it; - put test for division by zero exception right after the coprocessor exception test; Signed-off-by: Max Filippov --- target/xtensa/translate.c | 53

[Qemu-devel] [PATCH 08/15] target/xtensa: extract test for cpdisabled exception

2018-09-04 Thread Max Filippov
- add XtensaOpcodeOps::coprocessor with bitmask of coprocessors used by the instruction; - replace coprocessor id parameter of gen_check_cpenable with the bitmask of used coprocessors; - collect coprocessor IDs used by an instruction in the disassembly loop; - put test for coprocessor

[Qemu-devel] [PATCH 07/15] target/xtensa: extract test for alloca exception

2018-09-04 Thread Max Filippov
- mark movsp instruction; - put test for alloca exception right after the test for window underflow; Signed-off-by: Max Filippov --- target/xtensa/translate.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c

[Qemu-devel] [PATCH 06/15] target/xtensa: extract test for window underflow exception

2018-09-04 Thread Max Filippov
- mark retw and retw.n instructions; - extract window inderflow test from retw helper; - put underflow exception check generation right after the overflow check; Signed-off-by: Max Filippov --- target/xtensa/helper.h| 1 + target/xtensa/op_helper.c | 24 +++-

[Qemu-devel] [PATCH 01/15] target/xtensa: extract test for an illegal instruction

2018-09-04 Thread Max Filippov
- TB flags: add XTENSA_TBFLAG_CWOE that corresponds to the architectural CWOE state; - entry: move CWOE check from the helper to the test_ill_entry; - retw: move CWOE check from the helper to the test_ill_retw; - separate instruction disassembly loop and translation loop; save disassembly

[Qemu-devel] [PATCH 03/15] target/xtensa: extract test for syscall instruction

2018-09-04 Thread Max Filippov
- mark syscall instruction; - put syscall exception check right after privileged exception check; Signed-off-by: Max Filippov --- target/xtensa/translate.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c

[Qemu-devel] [PATCH 04/15] target/xtensa: extract test for debug exception

2018-09-04 Thread Max Filippov
- mark break and break.n instructions; - collect debug cause bits from parameter 0 of instructions marked for debug exception; - put debug exception check right after syscall check; Signed-off-by: Max Filippov --- target/xtensa/translate.c | 23 +-- 1 file changed, 13

[Qemu-devel] [PATCH 02/15] target/xtensa: extract test for privileged instruction

2018-09-04 Thread Max Filippov
- mark privileged instructions; - put single privileged instruction check after disassembly loop; - translate_[di]cache: drop parameter 0, shift parameters one down; Signed-off-by: Max Filippov --- target/xtensa/translate.c | 387 +++--- 1 file changed,

[Qemu-devel] [PATCH 00/15] target/xtensa: preparation for FLIX support

2018-09-04 Thread Max Filippov
Hello, this series prepares target/xtensa for FLIX (flexible length instruction extensions) support. FLIX allows bundling multiple existing opcodes in a single instruction, so this series separates generation of per-instruction code (such as raising exceptions and terminating TB) from per-opcode

Re: [Qemu-devel] [PATCH v5 2/2] vl:c: make sure that sockets are calculated correctly in '-smp X' case

2018-09-04 Thread Eduardo Habkost
On Tue, Sep 04, 2018 at 05:18:48PM +0200, Andrew Jones wrote: > On Tue, Sep 04, 2018 at 03:22:36PM +0200, Igor Mammedov wrote: > > commit > > (5cdc9b76e3 vl.c: Remove dead assignment) > > removed sockets calculation when 'sockets' weren't provided on CLI > > since there wasn't any users for it

Re: [Qemu-devel] [PATCH] linux-user: do setrlimit selectively

2018-09-04 Thread Peter Maydell
On 5 September 2018 at 01:08, Max Filippov wrote: > Ok, the deadlock (and other weird behavior) is a separate problem: > QEMU doesn't check results of resource allocation functions and > then gets surprised. Errors must be handled and QEMU must be > terminated properly. > > As to hitting the

Re: [Qemu-devel] [PATCH v2] hw/ppc: on 40p machine, change default firmware to OpenBIOS

2018-09-04 Thread David Gibson
On Tue, Sep 04, 2018 at 09:49:03PM +0200, Hervé Poussineau wrote: > OpenBIOS gained 40p support in 5b20e4cacecb62fb2bdc6867c11d44cddd77c4ff > Use it, instead of relying on an unmaintained and very limited firmware. > > Signed-off-by: Hervé Poussineau Uh.. against current ppc-for-3.1, plase. >

Re: [Qemu-devel] [PATCH v2 0/3] target/riscv: use tcg_lookup_and_goto_ptr

2018-09-04 Thread Emilio G. Cota
On Tue, Sep 04, 2018 at 16:42:32 -0700, Alistair Francis wrote: > On Tue, Sep 4, 2018 at 4:39 PM, Emilio G. Cota wrote: > > On Tue, Sep 04, 2018 at 13:18:28 -0700, Alistair Francis wrote: > >> On Fri, Aug 31, 2018 at 3:22 PM, Emilio G. Cota wrote: > >> > On Fri, Aug 10, 2018 at 13:39:38 -0400,

Re: [Qemu-devel] [PATCH v2] qga-win: add support for qmp_guest_fsfreeze_freeze_list

2018-09-04 Thread Michael Roth
Quoting Chen Hanxiao (2018-08-31 01:22:50) > From: Chen Hanxiao > > This patch add support for freeze specified fs. > > The valid mountpoints list member are [1]: > > The path of a mounted folder, for example, Y:\MountX\ > A drive letter, for example, D:\ > A volume GUID path of the form

[Qemu-devel] [PATCH v2] blkdebug: Add support for latency rules

2018-09-04 Thread Marc Olson via Qemu-devel
Sometimes storage devices can be slow to respond, due to media errors, firmware issues, SSD garbage collection, etc. This patch adds a new rule type to blkdebug that allows injection of latency to I/O operations. Similar to error injection rules, latency rules can be specified with or without an

Re: [Qemu-devel] [PATCH 04/16] test/qgraph: aarch64/xlnx-zcu102 machine node

2018-09-04 Thread Alistair Francis
On Mon, Aug 20, 2018 at 5:02 AM, Emanuele Giuseppe Esposito wrote: > Add xlnx-zcu102 machine to the graph. This machine contains generic-sdhci, so > its constructor must take care of setting it properly when called. > > Signed-off-by: Emanuele Giuseppe Esposito Acked-by: Alistair Francis

Re: [Qemu-devel] [PATCH] qga: ignore non present cpus when handling qmp_guest_get_vcpus()

2018-09-04 Thread Michael Roth
Quoting Andrew Jones (2018-08-31 06:22:19) > On Thu, Aug 30, 2018 at 05:51:13PM +0200, Laszlo Ersek wrote: > > Originally these guest agent commands (both getting and setting) were > > meant to be used in the absence of real VCPU hot[un]plug, as a fallback > > / place-holder. > > > > If the

Re: [Qemu-devel] [PATCH 03/16] test/qgraph: arm/xlinx-zynq-a9 machine node

2018-09-04 Thread Alistair Francis
On Mon, Aug 20, 2018 at 5:02 AM, Emanuele Giuseppe Esposito wrote: > Add xlinx-zynq-a9 machine to the graph. This machine contains generic-sdhci, > so > its constructor must take care of setting it properly when called. > > Signed-off-by: Emanuele Giuseppe Esposito Acked-by: Alistair Francis

Re: [Qemu-devel] [PATCH] linux-user: do setrlimit selectively

2018-09-04 Thread Max Filippov
On Tue, Sep 4, 2018 at 3:55 PM, Peter Maydell wrote: > On 4 September 2018 at 23:26, Max Filippov wrote: >> On Tue, Sep 4, 2018 at 3:10 PM, Peter Maydell >> wrote: >>> On 4 September 2018 at 23:02, Max Filippov wrote: > >>> You could make a case for always ignoring setrlimit calls: if we >>>

Re: [Qemu-devel] [PATCH 02/15] gdbstub: add multiprocess support to '?' packets

2018-09-04 Thread Alistair Francis
On Sat, Sep 1, 2018 at 5:46 AM, Luc Michel wrote: > The gdb_get_cpu_pid() function does the PID lookup for the given CPU. It > checks if the CPU is in a QOM container named after the > GDB_CPU_GROUP_NAME macro. If found, it returns the correponding PID, > which is the group ID plus one (group IDs

Re: [Qemu-devel] [PATCH v2 0/3] target/riscv: use tcg_lookup_and_goto_ptr

2018-09-04 Thread Alistair Francis
On Tue, Sep 4, 2018 at 4:39 PM, Emilio G. Cota wrote: > On Tue, Sep 04, 2018 at 13:18:28 -0700, Alistair Francis wrote: >> On Fri, Aug 31, 2018 at 3:22 PM, Emilio G. Cota wrote: >> > On Fri, Aug 10, 2018 at 13:39:38 -0400, Emilio G. Cota wrote: >> >> Changes wrt v1: changed patch 3 as suggested

Re: [Qemu-devel] [PATCH v2 0/3] target/riscv: use tcg_lookup_and_goto_ptr

2018-09-04 Thread Emilio G. Cota
On Tue, Sep 04, 2018 at 13:18:28 -0700, Alistair Francis wrote: > On Fri, Aug 31, 2018 at 3:22 PM, Emilio G. Cota wrote: > > On Fri, Aug 10, 2018 at 13:39:38 -0400, Emilio G. Cota wrote: > >> Changes wrt v1: changed patch 3 as suggested by Richard. Also > >> added his R-b's. > >> > >> You can

[Qemu-devel] [PULL 8/9] hw/riscv/spike: Set the soc device tree node as a simple-bus

2018-09-04 Thread Alistair Francis
To allow Linux to enumerate devices on the /soc/ node set it as a "simple-bus". Signed-off-by: Alistair Francis --- hw/riscv/spike.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/spike.c b/hw/riscv/spike.c index c8c056c50b..eb857c434e 100644 --- a/hw/riscv/spike.c

[Qemu-devel] [PULL 5/9] target/riscv: optimize indirect branches

2018-09-04 Thread Alistair Francis
From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson Signed-off-by: Alistair Francis --- target/riscv/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/translate.c b/target/riscv/translate.c index

[Qemu-devel] [PULL 4/9] RISC-V: Simplify riscv_cpu_local_irqs_pending

2018-09-04 Thread Alistair Francis
From: Michael Clark This commit is intended to improve readability. There is no change to the logic. Cc: Sagar Karandikar Cc: Bastian Koppelmann Cc: Palmer Dabbelt Cc: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Alistair Francis Signed-off-by: Alistair Francis ---

[Qemu-devel] [PULL 7/9] hw/riscv/virtio: Set the soc device tree node as a simple-bus

2018-09-04 Thread Alistair Francis
To allow Linux to enumerate devices on the /soc/ node set it as a "simple-bus". Signed-off-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé --- hw/riscv/virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index

[Qemu-devel] [PULL 9/9] riscv: remove define cpu_init()

2018-09-04 Thread Alistair Francis
From: Igor Mammedov cpu_init() was removed since 2.12, so drop the define that is now unused. Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Michael Clark Signed-off-by: Alistair Francis --- target/riscv/cpu.h | 1 - 1 file changed, 1 deletion(-) diff --git

[Qemu-devel] [PULL 3/9] RISC-V: Use atomic_cmpxchg to update PLIC bitmaps

2018-09-04 Thread Alistair Francis
From: Michael Clark The PLIC previously used a mutex to protect against concurrent access to the claimed and pending bitfields. Instead of using a mutex, we update the bitfields using atomic_cmpxchg. Rename sifive_plic_num_irqs_pending to sifive_plic_irqs_pending and add an early out if any

[Qemu-devel] [PULL 0/9] riscv-pullreq queue

2018-09-04 Thread Alistair Francis
-pullreq-20180904 for you to fetch changes up to 3b18c3fa870f11b8a1841bb7537e5bc11100160c: riscv: remove define cpu_init() (2018-09-04 13:24:39 -0700) A misc collection of RISC-V related patches for 3.1

[Qemu-devel] [PULL 2/9] RISC-V: Improve page table walker spec compliance

2018-09-04 Thread Alistair Francis
From: Michael Clark - Inline PTE_TABLE check for better readability - Change access checks from ternary operator to if - Improve readibility of User page U mode and SUM test - Disallow non U mode from fetching from User pages - Add reserved PTE flag check: W or W|X - Add misaligned PPN check -

[Qemu-devel] [PULL 6/9] target/riscv: call gen_goto_tb on DISAS_TOO_MANY

2018-09-04 Thread Alistair Francis
From: "Emilio G. Cota" Performance impact of this and the previous commits, measured with the very-easy-to-cross-compile rv8-bench: https://github.com/rv8-io/rv8-bench Host: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz - Key: before: master after1,2,3: the 3 commits in this series (i.e. 3 is

[Qemu-devel] [PULL 1/9] RISC-V: Update address bits to support sv39 and sv48

2018-09-04 Thread Alistair Francis
From: Michael Clark Cc: Sagar Karandikar Cc: Bastian Koppelmann Cc: Palmer Dabbelt Cc: Alistair Francis Signed-off-by: Palmer Dabbelt Reviewed-by: Alistair Francis Signed-off-by: Alistair Francis --- target/riscv/cpu.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

Re: [Qemu-devel] [PATCH] linux-user: do setrlimit selectively

2018-09-04 Thread Peter Maydell
On 4 September 2018 at 23:26, Max Filippov wrote: > On Tue, Sep 4, 2018 at 3:10 PM, Peter Maydell > wrote: >> On 4 September 2018 at 23:02, Max Filippov wrote: >> You could make a case for always ignoring setrlimit calls: if we >> ever hit the limit it's as likely to be by failing a QEMU

Re: [Qemu-devel] [PATCH] linux-user: do setrlimit selectively

2018-09-04 Thread Max Filippov
On Tue, Sep 4, 2018 at 3:10 PM, Peter Maydell wrote: > On 4 September 2018 at 23:02, Max Filippov wrote: >> On Tue, Sep 4, 2018 at 2:13 PM, Peter Maydell >> wrote: >>> I think the issue here is not related to 32-on-64 but to the fact >>> that we just pass through the memory rlimits. What we

Re: [Qemu-devel] [PATCH] linux-user: do setrlimit selectively

2018-09-04 Thread Peter Maydell
On 4 September 2018 at 23:02, Max Filippov wrote: > On Tue, Sep 4, 2018 at 2:13 PM, Peter Maydell > wrote: >> I think the issue here is not related to 32-on-64 but to the fact >> that we just pass through the memory rlimits. What we should ideally >> be doing is tracking the actual guest memory

Re: [Qemu-devel] [PATCH] linux-user: do setrlimit selectively

2018-09-04 Thread Max Filippov
On Tue, Sep 4, 2018 at 2:13 PM, Peter Maydell wrote: > On 4 September 2018 at 22:00, Max Filippov wrote: >> When running 32-bit guest on 64-bit host setrlimit guest calls that >> affect memory resources (RLIMIT_{AS,DATA,STACK}) don't always make sense >> as is. They may result in QEMU lockup

Re: [Qemu-devel] [PATCH 2/6] test-rcu-list: avoid torn accesses to n_reclaims and n_nodes_removed

2018-09-04 Thread Emilio G. Cota
On Tue, Sep 04, 2018 at 17:56:31 -0300, Murilo Opsfelder Araujo wrote: > The explanations you provided made a lot of difference on understanding the > why > of your patch. Thank you! Glad that helped! > Is it possible to enhance commit message and add the explanations? If I end up submitting

Re: [Qemu-devel] [PATCH v3] configure: preserve various environment variables in config.status

2018-09-04 Thread Peter Maydell
On 4 September 2018 at 17:21, Eric Blake wrote: > I still find it odd > that we aren't precisely mirroring the (nice!) semantics that autoconf users > have come to rely on I think that's more the result of (a) most people don't know the details of the autoconf semantics and (b) configure works

Re: [Qemu-devel] [PATCH] linux-user: do setrlimit selectively

2018-09-04 Thread Peter Maydell
On 4 September 2018 at 22:00, Max Filippov wrote: > When running 32-bit guest on 64-bit host setrlimit guest calls that > affect memory resources (RLIMIT_{AS,DATA,STACK}) don't always make sense > as is. They may result in QEMU lockup because mprotect call in > page_unprotect would fail with

[Qemu-devel] [PATCH] linux-user: do setrlimit selectively

2018-09-04 Thread Max Filippov
When running 32-bit guest on 64-bit host setrlimit guest calls that affect memory resources (RLIMIT_{AS,DATA,STACK}) don't always make sense as is. They may result in QEMU lockup because mprotect call in page_unprotect would fail with ENOMEM error code, causing infinite loop of SIGSEGV. E.g. it

Re: [Qemu-devel] [PATCH 2/6] test-rcu-list: avoid torn accesses to n_reclaims and n_nodes_removed

2018-09-04 Thread Murilo Opsfelder Araujo
Hi, Emilio. On Tue, Sep 04, 2018 at 03:35:38PM -0400, Emilio G. Cota wrote: > On Tue, Sep 04, 2018 at 14:37:34 -0300, Murilo Opsfelder Araujo wrote: > > Hi, Emilio. > > > > On Mon, Sep 03, 2018 at 01:18:27PM -0400, Emilio G. Cota wrote: > > > Signed-off-by: Emilio G. Cota > > > --- > > >

Re: [Qemu-devel] [PATCH v4 04/15] block/commit: refactor commit to use job callbacks

2018-09-04 Thread John Snow
On 09/04/2018 02:46 PM, Jeff Cody wrote: > On Tue, Sep 04, 2018 at 01:09:19PM -0400, John Snow wrote: >> Use the component callbacks; prepare, abort, and clean. >> >> NB: prepare is only called when the job has not yet failed; >> and abort can be called after prepare. >> >> complete -> prepare

Re: [Qemu-devel] [PATCH] hw/ppc: on 40p machine, change default firmware to OpenBIOS

2018-09-04 Thread Hervé Poussineau
Le 31/08/2018 à 16:16, Mark Cave-Ayland a écrit : On 20/08/18 04:16, David Gibson wrote: On Fri, Aug 10, 2018 at 04:41:54PM +1000, David Gibson wrote: On Fri, Aug 10, 2018 at 07:37:12AM +0200, Hervé Poussineau wrote: OpenBIOS gained 40p support in 5b20e4cacecb62fb2bdc6867c11d44cddd77c4ff Use

Re: [Qemu-devel] [PATCH v2 0/3] target/riscv: use tcg_lookup_and_goto_ptr

2018-09-04 Thread Alistair Francis
On Fri, Aug 31, 2018 at 3:22 PM, Emilio G. Cota wrote: > On Fri, Aug 10, 2018 at 13:39:38 -0400, Emilio G. Cota wrote: >> Changes wrt v1: changed patch 3 as suggested by Richard. Also >> added his R-b's. >> >> You can fetch this series from: >>

Re: [Qemu-devel] [RFC 6/6] virtio-net: rss: Add bpf filter

2018-09-04 Thread Eric Blake
On 08/30/2018 09:27 AM, Sameeh Jubran wrote: From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- hw/net/rss_bpf_insns.h | 3992 ++ hw/net/rss_tap_bpf.h | 40 + hw/net/rss_tap_bpf_program.c | 175 ++ hw/net/virtio-net.c |

Re: [Qemu-devel] [PATCH v3 05/15] block/mirror: don't install backing chain on abort

2018-09-04 Thread John Snow
On 09/04/2018 03:30 PM, Eric Blake wrote: > On 09/04/2018 02:15 PM, John Snow wrote: > >> >> post-script: I really, really hate the "fake cancel" we've implemented >> for mirror. It makes the job logic so much worse. > > Mirror really does have a tri-state way to end the job (and accessible >

[Qemu-devel] [PATCH v2] hw/ppc: on 40p machine, change default firmware to OpenBIOS

2018-09-04 Thread Hervé Poussineau
OpenBIOS gained 40p support in 5b20e4cacecb62fb2bdc6867c11d44cddd77c4ff Use it, instead of relying on an unmaintained and very limited firmware. Signed-off-by: Hervé Poussineau --- hw/ppc/prep.c| 2 +- tests/boot-serial-test.c | 4 ++-- 2 files changed, 3 insertions(+), 3

Re: [Qemu-devel] [PATCH V2 0/3] Formatted INFO files to fit Markdown (.md) format.

2018-09-04 Thread Eric Blake
On 09/02/2018 12:53 PM, Yoni Bettan wrote: This patch make INFO files (e.g. README, CODING_STYLE and HACKING) much more readable when watched from GitHub GUI. ./VERSION, ./MAINTAINERS were leave untouched otherwise ./scripts/get_maintainer.pl breaks. ./COPYING, ./LICENSE ./COPYING.LIB were

Re: [Qemu-devel] [PATCH 2/6] test-rcu-list: avoid torn accesses to n_reclaims and n_nodes_removed

2018-09-04 Thread Emilio G. Cota
On Tue, Sep 04, 2018 at 14:37:34 -0300, Murilo Opsfelder Araujo wrote: > Hi, Emilio. > > On Mon, Sep 03, 2018 at 01:18:27PM -0400, Emilio G. Cota wrote: > > Signed-off-by: Emilio G. Cota > > --- > > tests/test-rcu-list.c | 67 +-- > > 1 file changed, 59

Re: [Qemu-devel] [PATCH v3 05/15] block/mirror: don't install backing chain on abort

2018-09-04 Thread Eric Blake
On 09/04/2018 02:15 PM, John Snow wrote: post-script: I really, really hate the "fake cancel" we've implemented for mirror. It makes the job logic so much worse. Mirror really does have a tri-state way to end the job (and accessible only after the job has moved into the sync state):

Re: [Qemu-devel] [PATCH v3 05/15] block/mirror: don't install backing chain on abort

2018-09-04 Thread John Snow
On 09/03/2018 05:24 AM, Max Reitz wrote: > On 2018-09-01 00:28, John Snow wrote: >> In cases where we abort the block/mirror job, there's no point in >> installing the new backing chain before we finish aborting. >> >> Move this to the "success" portion of mirror_exit. >> >> Signed-off-by: John

Re: [Qemu-devel] [PATCH v4 04/15] block/commit: refactor commit to use job callbacks

2018-09-04 Thread Jeff Cody
On Tue, Sep 04, 2018 at 01:09:19PM -0400, John Snow wrote: > Use the component callbacks; prepare, abort, and clean. > > NB: prepare is only called when the job has not yet failed; > and abort can be called after prepare. > > complete -> prepare -> abort -> clean > complete -> abort -> clean >

Re: [Qemu-devel] [PATCH v3] configure: preserve various environment variables in config.status

2018-09-04 Thread Thomas Huth
On 2018-09-04 14:36, Daniel P. Berrangé wrote: > The config.status script is auto-generated by configure upon > completion. The intention is that config.status can be later invoked by > the developer directly, or by make indirectly, to re-detect the same > environment that configure originally

Re: [Qemu-devel] [PATCH V8 2/4] tests/migration: Support cross compilation in generating boot header file

2018-09-04 Thread Andrew Jones
On Tue, Sep 04, 2018 at 01:04:31PM -0400, Wei Huang wrote: > > > +parse-cross-prefix = $(subst gcc,,$(patsubst cc,gcc,$(patsubst > > > CROSS_CC_GUEST="%",%,$(shell grep "CROSS_CC_GUEST=" > > > $(SRC_PATH)/$(1)-softmmu/config-target.mak > > > +gen-cross-prefix = $(patsubst

Re: [Qemu-devel] [PATCH V8 4/4] tests: Add migration test for aarch64

2018-09-04 Thread Andrew Jones
On Tue, Sep 04, 2018 at 01:07:56PM -0400, Wei Huang wrote: > > > - Original Message - > > From: "Andrew Jones" > > To: "Wei Huang" > > Cc: qemu-devel@nongnu.org, lviv...@redhat.com, "peter maydell" > > , quint...@redhat.com, > > dgilb...@redhat.com > > Sent: Monday, September 3, 2018

Re: [Qemu-devel] [PATCH V8 2/4] tests/migration: Support cross compilation in generating boot header file

2018-09-04 Thread Wei Huang
- Original Message - > From: "Andrew Jones" > To: "Wei Huang" > Cc: qemu-devel@nongnu.org, lviv...@redhat.com, "peter maydell" > , quint...@redhat.com, > dgilb...@redhat.com > Sent: Monday, September 3, 2018 6:26:39 AM > Subject: Re: [Qemu-devel] [PATCH V8 2/4] tests/migration:

Re: [Qemu-devel] [PATCH V8 4/4] tests: Add migration test for aarch64

2018-09-04 Thread Wei Huang
- Original Message - > From: "Andrew Jones" > To: "Wei Huang" > Cc: qemu-devel@nongnu.org, lviv...@redhat.com, "peter maydell" > , quint...@redhat.com, > dgilb...@redhat.com > Sent: Monday, September 3, 2018 6:53:35 AM > Subject: Re: [Qemu-devel] [PATCH V8 4/4] tests: Add migration

Re: [Qemu-devel] [PATCH 2/6] test-rcu-list: avoid torn accesses to n_reclaims and n_nodes_removed

2018-09-04 Thread Murilo Opsfelder Araujo
Hi, Emilio. On Mon, Sep 03, 2018 at 01:18:27PM -0400, Emilio G. Cota wrote: > Signed-off-by: Emilio G. Cota > --- > tests/test-rcu-list.c | 67 +-- > 1 file changed, 59 insertions(+), 8 deletions(-) > > diff --git a/tests/test-rcu-list.c

[Qemu-devel] [PATCH v4 11/15] jobs: remove .exit callback

2018-09-04 Thread John Snow
Now that all of the jobs use the component finalization callbacks, there's no use for the heavy-hammer .exit callback anymore. job_exit becomes a glorified type shim so that we can call job_completed from aio_bh_schedule_oneshot. Move these three functions down into job.c to eliminate a forward

[Qemu-devel] [PATCH v4 08/15] tests/blockjob: replace Blockjob with Job

2018-09-04 Thread John Snow
These tests don't actually test blockjobs anymore, they test generic Job lifetimes. Change the types accordingly. Signed-off-by: John Snow Reviewed-by: Max Reitz --- tests/test-blockjob.c | 98 ++- 1 file changed, 50 insertions(+), 48

[Qemu-devel] [PATCH v4 15/15] block/backup: qapi documentation fixup

2018-09-04 Thread John Snow
Fix documentation to match the other jobs amended for 3.1. Signed-off-by: John Snow Reviewed-by: Max Reitz --- qapi/block-core.json | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index f877e9e414..c0b3d33dbb

[Qemu-devel] [PATCH v4 10/15] tests/test-blockjob-txn: move .exit to .clean

2018-09-04 Thread John Snow
The exit callback in this test actually only performs cleanup. Signed-off-by: John Snow --- tests/test-blockjob-txn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-blockjob-txn.c b/tests/test-blockjob-txn.c index ef29f35e44..86606f92b3 100644 ---

[Qemu-devel] [PATCH v4 14/15] qapi/block-stream: expose new job properties

2018-09-04 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- blockdev.c | 9 + hmp.c| 5 +++-- qapi/block-core.json | 16 +++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/blockdev.c b/blockdev.c index 429cdf9901..0cf8febe6c 100644 ---

[Qemu-devel] [PATCH v4 12/15] qapi/block-commit: expose new job properties

2018-09-04 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- blockdev.c | 8 qapi/block-core.json | 16 +++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/blockdev.c b/blockdev.c index ec90eb1cf9..98b91e75a7 100644 --- a/blockdev.c +++ b/blockdev.c @@

[Qemu-devel] [PATCH v4 00/15] jobs: Job Exit Refactoring Pt 2

2018-09-04 Thread John Snow
This is part two of a two part series that refactors the exit logic of jobs. This series forces all jobs to use the "finalize" semantics that were introduced previously, but only exposed via the backup jobs. Patches 1-3 add plumbing for the auto-dismiss and auto-finalize flags but do not expose

[Qemu-devel] [PATCH v4 09/15] tests/test-blockjob: remove exit callback

2018-09-04 Thread John Snow
We remove the exit callback and the completed boolean along with it. We can simulate it just fine by waiting for the job to defer to the main loop, and then giving it one final kick to get the main loop portion to run. Signed-off-by: John Snow Reviewed-by: Max Reitz --- tests/test-blockjob.c |

[Qemu-devel] [PATCH v4 13/15] qapi/block-mirror: expose new job properties

2018-09-04 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- blockdev.c | 14 ++ qapi/block-core.json | 30 -- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/blockdev.c b/blockdev.c index 98b91e75a7..429cdf9901 100644 --- a/blockdev.c

[Qemu-devel] [PATCH v4 05/15] block/mirror: don't install backing chain on abort

2018-09-04 Thread John Snow
In cases where we abort the block/mirror job, there's no point in installing the new backing chain before we finish aborting. Move this to the "success" portion of mirror_exit. Signed-off-by: John Snow --- block/mirror.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH v4 06/15] block/mirror: conservative mirror_exit refactor

2018-09-04 Thread John Snow
For purposes of minimum code movement, refactor the mirror_exit callback to use the post-finalization callbacks in a trivial way. Signed-off-by: John Snow --- block/mirror.c | 34 +++--- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/block/mirror.c

[Qemu-devel] [PATCH v4 02/15] block/mirror: add block job creation flags

2018-09-04 Thread John Snow
Add support for taking and passing forward job creation flags. Signed-off-by: John Snow Reviewed-by: Max Reitz Reviewed-by: Jeff Cody --- block/mirror.c| 5 +++-- blockdev.c| 3 ++- include/block/block_int.h | 5 - 3 files changed, 9 insertions(+), 4

[Qemu-devel] [PATCH v4 04/15] block/commit: refactor commit to use job callbacks

2018-09-04 Thread John Snow
Use the component callbacks; prepare, abort, and clean. NB: prepare is only called when the job has not yet failed; and abort can be called after prepare. complete -> prepare -> abort -> clean complete -> abort -> clean Signed-off-by: John Snow Reviewed-by: Max Reitz --- block/commit.c | 90

[Qemu-devel] [PATCH v4 03/15] block/stream: add block job creation flags

2018-09-04 Thread John Snow
Add support for taking and passing forward job creation flags. Signed-off-by: John Snow Reviewed-by: Max Reitz Reviewed-by: Jeff Cody --- block/stream.c| 5 +++-- blockdev.c| 3 ++- include/block/block_int.h | 5 - 3 files changed, 9 insertions(+), 4

[Qemu-devel] [PATCH v4 07/15] block/stream: refactor stream to use job callbacks

2018-09-04 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- block/stream.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/block/stream.c b/block/stream.c index 700eb239e4..81a7ec8ece 100644 --- a/block/stream.c +++ b/block/stream.c @@ -54,16 +54,16 @@

[Qemu-devel] [PATCH v4 01/15] block/commit: add block job creation flags

2018-09-04 Thread John Snow
Add support for taking and passing forward job creation flags. Signed-off-by: John Snow Reviewed-by: Max Reitz Reviewed-by: Jeff Cody --- block/commit.c| 5 +++-- blockdev.c| 7 --- include/block/block_int.h | 5 - 3 files changed, 11 insertions(+), 6

Re: [Qemu-devel] [PATCH v3] configure: preserve various environment variables in config.status

2018-09-04 Thread Eric Blake
On 09/04/2018 07:36 AM, Daniel P. Berrangé wrote: The config.status script is auto-generated by configure upon completion. The intention is that config.status can be later invoked by the developer directly, or by make indirectly, to re-detect the same environment that configure originally used.

Re: [Qemu-devel] [PATCH v3 06/15] block/mirror: conservative mirror_exit refactor

2018-09-04 Thread John Snow
On 09/03/2018 05:32 AM, Max Reitz wrote: > On 2018-09-01 00:28, John Snow wrote: >> For purposes of minimum code movement, refactor the mirror_exit >> callback to use the post-finalization callbacks in a trivial way. >> >> Signed-off-by: John Snow >> --- >> block/mirror.c | 31

Re: [Qemu-devel] [PATCH v3 2/9] jobs: canonize Error object

2018-09-04 Thread John Snow
On 09/03/2018 10:11 AM, Markus Armbruster wrote: > Kevin Wolf writes: > >> Am 01.09.2018 um 09:54 hat Markus Armbruster geschrieben: >>> John Snow writes: >>> On 08/31/2018 02:08 AM, Markus Armbruster wrote: > Eric Blake writes: > >> On 08/29/2018 08:57 PM, John Snow wrote:

Re: [Qemu-devel] [PATCH V8 1/4] tests/migration: Convert x86 boot block compilation script into Makefile

2018-09-04 Thread Wei Huang
On 09/03/2018 06:08 AM, Andrew Jones wrote: > On Sat, Sep 01, 2018 at 01:11:12AM -0400, Wei Huang wrote: >> The x86 boot block header currently is generated with a shell script. >> To better support other CPUs (e.g. aarch64), we convert the script >> into Makefile. This allows us to 1) support

[Qemu-devel] [PATCH v6 1/2] vl.c deprecate incorrect CPUs topology

2018-09-04 Thread Igor Mammedov
-smp [cpus],sockets/cores/threads[,maxcpus] should describe topology so that total number of logical CPUs [sockets * cores * threads] would be equal to [maxcpus], however historically we didn't have such check in QEMU and it is possible to start VM with an invalid topology. Deprecate invalid

Re: [Qemu-devel] [PATCH 1/2] commit: Add top-node/base-node options

2018-09-04 Thread Kevin Wolf
Am 04.09.2018 um 17:00 hat Peter Krempa geschrieben: > On Tue, Sep 04, 2018 at 16:42:17 +0200, Alberto Garcia wrote: > > On Tue 04 Sep 2018 04:17:30 PM CEST, Peter Krempa wrote: > > >> >> libvirt-3-format is read-write and all other node names are > > >> >> readonly in the above example. > > >> >>

Re: [Qemu-devel] [PATCH 2/3] libnvdimm: nd_region flush callback support

2018-09-04 Thread kbuild test robot
Hi Pankaj, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linux-nvdimm/libnvdimm-for-next] [also build test WARNING on v4.19-rc2 next-20180831] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [Qemu-devel] [PATCH v5 2/2] vl:c: make sure that sockets are calculated correctly in '-smp X' case

2018-09-04 Thread Andrew Jones
On Tue, Sep 04, 2018 at 03:22:36PM +0200, Igor Mammedov wrote: > commit > (5cdc9b76e3 vl.c: Remove dead assignment) > removed sockets calculation when 'sockets' weren't provided on CLI > since there wasn't any users for it back then. Exiting checks > are neither reachable >} else if (sockets

Re: [Qemu-devel] [PATCH v5 1/2] vl.c deprecate incorrect CPUs topology

2018-09-04 Thread Andrew Jones
On Tue, Sep 04, 2018 at 03:22:35PM +0200, Igor Mammedov wrote: > -smp [cpus],sockets/cores/threads[,maxcpus] should describe topology > so that total number of logical CPUs [sockets * cores * threads] > would be equal to [maxcpus], however historically we didn't have > such check in QEMU and it is

Re: [Qemu-devel] [PATCH 3/3] virtio-pmem: Add virtio pmem driver

2018-09-04 Thread kbuild test robot
Hi Pankaj, Thank you for the patch! Yet something to improve: [auto build test ERROR on linux-nvdimm/libnvdimm-for-next] [also build test ERROR on v4.19-rc2 next-20180903] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

  1   2   >