[PATCH 1/2] tests/migration: add sysprof-capture-4 as dependency for stress binary

2022-08-08 Thread Murilo Opsfelder Araujo
kefile:162: run-ninja] Error 1 Add sysprof-capture-4 as dependency for stress binary. Tested on: - CentOS Stream 9 ppc64le - Fedora 36 x86_64 Signed-off-by: Murilo Opsfelder Araujo --- tests/migration/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/migratio

[PATCH 0/2] tests/migration: add support for ppc64le in guestperf.py

2022-08-08 Thread Murilo Opsfelder Araujo
The first patch adds sysprof-capture-4 dependency when building stress binary in order to fix a build error. The second patch adds support for ppc64le in guestperf.py. Murilo Opsfelder Araujo (2): tests/migration: add sysprof-capture-4 as dependency for stress binary tests/migration: add

[PATCH 2/2] tests/migration: add support for ppc64le for guestperf.py

2022-08-08 Thread Murilo Opsfelder Araujo
Add support for ppc64le for guestperf.py. On ppc, console is usually hvc0 and serial device for pseries machine is spapr-vty. Signed-off-by: Murilo Opsfelder Araujo --- tests/migration/guestperf/engine.py | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff

[PATCH v2] target/ppc/kvm: Skip current and parent directories in kvmppc_find_cpu_dt

2022-07-12 Thread Murilo Opsfelder Araujo
Some systems have /proc/device-tree/cpus/../clock-frequency. However, this is not the expected path for a CPU device tree directory. Signed-off-by: Murilo Opsfelder Araujo Signed-off-by: Fabiano Rosas --- v2: - Skip current and parent directories. v1: https://lore.kernel.org/qemu-devel

[PATCH] target/ppc/kvm: Skip ".." directory in kvmppc_find_cpu_dt

2022-07-11 Thread Murilo Opsfelder Araujo
Some systems have /proc/device-tree/cpus/../clock-frequency. However, this is not the expected path for a CPU device tree directory. Signed-off-by: Murilo Opsfelder Araujo Signed-off-by: Fabiano Rosas --- target/ppc/kvm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/ppc

[PATCH v2] target/ppc: Return default CPU for max CPU

2022-06-28 Thread Murilo Opsfelder Araujo
om/qemu-project/qemu/-/issues/1038 Cc: Cédric Le Goater Cc: Daniel Henrique Barboza Cc: Daniel P. Berrangé Cc: Greg Kurz Cc: Matheus K. Ferst Cc: Thomas Huth Signed-off-by: Murilo Opsfelder Araujo Signed-off-by: Fabiano Rosas --- v2: - Return the default CPU of the machine instead of h

[PATCH] target/ppc/cpu-models: Update max alias to power10

2022-05-31 Thread Murilo Opsfelder Araujo
ned-off-by: Murilo Opsfelder Araujo --- target/ppc/cpu-models.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c index 976be5e0d1..c15fcb43a1 100644 --- a/target/ppc/cpu-models.c +++ b/target/ppc/cpu-models.c @@ -87

[PATCH v3] mos6522: fix linking error when CONFIG_MOS6522 is not set

2022-05-10 Thread Murilo Opsfelder Araujo
131e5 (mos6522: add "info via" HMP command for debugging) Signed-off-by: Murilo Opsfelder Araujo Cc: Mark Cave-Ayland Cc: Fabiano Rosas Cc: Thomas Huth --- v3: - Removed TARGET_M68K and TARGET_PPC checks, as per Thomas Huth suggestion. v2: - https://lore.kernel.org/qemu-devel/20220506

[PATCH v2] mos6522: fix linking error when CONFIG_MOS6522 is not set

2022-05-05 Thread Murilo Opsfelder Araujo
131e5 (mos6522: add "info via" HMP command for debugging) Signed-off-by: Murilo Opsfelder Araujo Cc: Mark Cave-Ayland Cc: Fabiano Rosas --- v2: - Included devices configuration in monitor/misc.c v1: - https://lore.kernel.org/qemu-devel/20220429233146.29662-1-muri...@linux.ibm.com/ hmp-c

[PATCH] vhost-user: Use correct macro name TARGET_PPC64

2022-05-03 Thread Murilo Opsfelder Araujo
The correct name of the macro is TARGET_PPC64. Fixes: 27598393a232 ("Lift max memory slots limit imposed by vhost-user") Reported-by: Fabiano Rosas Signed-off-by: Murilo Opsfelder Araujo Cc: Raphael Norwitz Cc: Peter Turschmid --- hw/virtio/vhost-user.c | 2 +- 1 file changed, 1

[PATCH] mos6522: fix linking error when CONFIG_MOS6522 is not set

2022-04-29 Thread Murilo Opsfelder Araujo
S6522 check for hmp_info_via in hmp-commands-info.hx to fix such linking error. Fixes: 409e9f7131e5 (mos6522: add "info via" HMP command for debugging) Signed-off-by: Murilo Opsfelder Araujo Cc: Mark Cave-Ayland Cc: Fabiano Rosas --- hmp-commands-info.hx | 2 ++ 1 file changed, 2 inse

[PATCH v2] block-qdict: Fix -Werror=maybe-uninitialized build failure

2022-03-11 Thread Murilo Opsfelder Araujo
-block-qdict test passed). Signed-off-by: Murilo Opsfelder Araujo Cc: Kevin Wolf Cc: Hanna Reitz Cc: Markus Armbruster --- v1: https://lists.nongnu.org/archive/html/qemu-devel/2022-03/msg03224.html qobject/block-qdict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH] block-qdict: Fix -Werror=maybe-uninitialized build failure

2022-03-10 Thread Murilo Opsfelder Araujo
Opsfelder Araujo Cc: Kevin Wolf Cc: Hanna Reitz Cc: Markus Armbruster --- qobject/block-qdict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qobject/block-qdict.c b/qobject/block-qdict.c index 1487cc5dd8..b26524429c 100644 --- a/qobject/block-qdict.c +++ b/qobject/block-qdict.c

Re: [Qemu-devel] [Qemu-ppc] [PATCH v4] spapr-rtas: add ibm, get-vpd RTAS interface

2019-03-05 Thread Murilo Opsfelder Araujo
Hi, Maxiwell. On Thu, Feb 28, 2019 at 05:04:37PM -0300, Maxiwell S. Garcia wrote: > This adds a handler for ibm,get-vpd RTAS calls, allowing pseries guest > to collect host information. It is disabled by default to avoid unwanted > information leakage. To enable it, use: > > ‘-M pseries,host-seria

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2] spapr-rtas: add ibm, get-vpd RTAS interface

2019-02-27 Thread Murilo Opsfelder Araujo
Hi, David. On Wed, Feb 27, 2019 at 10:19:20AM +1100, David Gibson wrote: > On Tue, Feb 26, 2019 at 04:11:40PM -0300, Murilo Opsfelder Araujo wrote: > > On Tue, Feb 26, 2019 at 02:08:30PM -0300, Murilo Opsfelder Araujo wrote: > > > Hi, Maxiwell. > > > > > > On T

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2] spapr-rtas: add ibm, get-vpd RTAS interface

2019-02-26 Thread Murilo Opsfelder Araujo
On Tue, Feb 26, 2019 at 02:08:30PM -0300, Murilo Opsfelder Araujo wrote: > Hi, Maxiwell. > > On Tue, Feb 26, 2019 at 11:21:26AM -0300, Maxiwell S. Garcia wrote: > > On Tue, Feb 26, 2019 at 02:21:03PM +1100, David Gibson wrote: > > > On Mon, Feb 25, 2019 at 08:20:09PM -0300,

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2] spapr-rtas: add ibm, get-vpd RTAS interface

2019-02-26 Thread Murilo Opsfelder Araujo
Hi, Maxiwell. On Tue, Feb 26, 2019 at 11:21:26AM -0300, Maxiwell S. Garcia wrote: > On Tue, Feb 26, 2019 at 02:21:03PM +1100, David Gibson wrote: > > On Mon, Feb 25, 2019 at 08:20:09PM -0300, Murilo Opsfelder Araujo wrote: > > > Hi, Maxiwell. > > > > > > On M

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2] spapr-rtas: add ibm, get-vpd RTAS interface

2019-02-25 Thread Murilo Opsfelder Araujo
Hi, Maxiwell. On Mon, Feb 25, 2019 at 01:23:25PM -0300, Maxiwell S. Garcia wrote: > This adds a handler for ibm,get-vpd RTAS calls, allowing pseries > guest to collect host information. It is disabled by default to > avoid unwanted information leakage. To enable it, use: > ‘-M pseries,vpd-export=o

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/3] ppc/pnv: increase kernel size limit to 256MiB

2019-02-25 Thread Murilo Opsfelder Araujo
On Mon, Feb 25, 2019 at 07:58:06PM +0100, Cédric Le Goater wrote: > On 2/25/19 6:01 PM, Murilo Opsfelder Araujo wrote: > > First patch increases kernel size limit to 256MiB to fit images generated > > with > > CONFIG_DEBUG_INFO. > > > > Second patch just fix

[Qemu-devel] [PATCH v2 2/3] ppc/pnv: add INITRD_MAX_SIZE constant

2019-02-25 Thread Murilo Opsfelder Araujo
The current 0x1000 value is actually 256MiB, not 128MB as the comment suggests. Move it to a constant and fix the comment (no change in the size value). Signed-off-by: Murilo Opsfelder Araujo --- hw/ppc/pnv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/ppc/pnv.c

[Qemu-devel] [PATCH v2 0/3] ppc/pnv: increase kernel size limit to 256MiB

2019-02-25 Thread Murilo Opsfelder Araujo
stion. Murilo Opsfelder Araujo (3): ppc/pnv: increase kernel size limit to 256MiB ppc/pnv: add INITRD_MAX_SIZE constant ppc/pnv: use IEC binary prefixes to represent sizes hw/ppc/pnv.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.20.1

[Qemu-devel] [PATCH v2 1/3] ppc/pnv: increase kernel size limit to 256MiB

2019-02-25 Thread Murilo Opsfelder Araujo
Building kernel with CONFIG_DEBUG_INFO_REDUCED can generate a ~90MB image and building with CONFIG_DEBUG_INFO can generate a ~225M one, both exceeds the current limit of 32MiB. Increasing kernel size limit to 256MiB should fit for now. Signed-off-by: Murilo Opsfelder Araujo --- hw/ppc/pnv.c

[Qemu-devel] [PATCH v2 3/3] ppc/pnv: use IEC binary prefixes to represent sizes

2019-02-25 Thread Murilo Opsfelder Araujo
Using IEC binary prefixes from qemu/units.h provides a more human-friendly value to size constants. Suggested-by: Eric Blake Signed-off-by: Murilo Opsfelder Araujo --- hw/ppc/pnv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index

[Qemu-devel] [PATCH 2/2] ppc/pnv: add INITRD_MAX_SIZE constant

2019-02-25 Thread Murilo Opsfelder Araujo
The current 0x1000 value is actually 256MiB, not 128MB as the comment suggests. Move it to a constant and fix the comment (no change in the size value). Signed-off-by: Murilo Opsfelder Araujo --- hw/ppc/pnv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/ppc/pnv.c

[Qemu-devel] [PATCH 1/2] ppc/pnv: increase kernel size limit to 256MiB

2019-02-25 Thread Murilo Opsfelder Araujo
Building kernel with CONFIG_DEBUG_INFO_REDUCED can generate a ~90MB image and building with CONFIG_DEBUG_INFO can generate a ~225M one, both exceeds the current limit of 32MiB. Increasing kernel size limit to 256MiB should fit for now. Signed-off-by: Murilo Opsfelder Araujo --- hw/ppc/pnv.c

[Qemu-devel] [PATCH 0/2] ppc/pnv: increase kernel size limit to 256MiB

2019-02-25 Thread Murilo Opsfelder Araujo
First patch increases kernel size limit to 256MiB to fit images generated with CONFIG_DEBUG_INFO. Second patch just fixes a misleading comment regarding initrd size limit. Murilo Opsfelder Araujo (2): ppc/pnv: increase kernel size limit to 256MiB ppc/pnv: add INITRD_MAX_SIZE constant hw

[Qemu-devel] [PATCH] docs/devel/testing: Add -a option to usermod command on docker setup

2019-02-07 Thread Murilo Opsfelder Araujo
Cc: qemu-triv...@nongnu.org Signed-off-by: Murilo Opsfelder Araujo --- docs/devel/testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 18e2c0868a..135743a2bf 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.

Re: [Qemu-devel] [PATCH 0/2] mmap-alloc: fix hugetlbfs misaligned length in ppc64

2019-02-04 Thread Murilo Opsfelder Araujo
On Mon, Feb 04, 2019 at 11:08:05AM +1100, David Gibson wrote: > On Wed, Jan 30, 2019 at 09:36:03PM -0200, Murilo Opsfelder Araujo wrote: > > The first patch unfolds parts of qemu_ram_mmap() to make it clearer. > > No changes in the function behaviour. > > > > The second

[Qemu-devel] [PATCH 2/2] mmap-alloc: fix hugetlbfs misaligned length in ppc64

2019-01-30 Thread Murilo Opsfelder Araujo
memory device is hot-unplugged. This patch fixes the situation in qemu_ram_mmap() and qemu_ram_munmap() by considering the underlying page size on ppc64. After this patch, memory hot-unplug releases huge pages back to the pool. Fixes: 7197fb4058bcb68986bae2bb2c04d6370f3e7218 Signed-off-by: Murilo

[Qemu-devel] [PATCH 1/2] mmap-alloc: unfold qemu_ram_mmap()

2019-01-30 Thread Murilo Opsfelder Araujo
tr1 -> ptr : pointer to the mapped memory returned to caller Signed-off-by: Murilo Opsfelder Araujo --- util/mmap-alloc.c | 53 ++- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/util/mmap-alloc.c b/util/mmap-alloc.c index fd32

[Qemu-devel] [PATCH 0/2] mmap-alloc: fix hugetlbfs misaligned length in ppc64

2019-01-30 Thread Murilo Opsfelder Araujo
The first patch unfolds parts of qemu_ram_mmap() to make it clearer. No changes in the function behaviour. The second one fixes the alignment of the length given to munmap(). I am pretty sure there is room for improvement, so I would love to hear your feedback. Thank you! Murilo Opsfelder

Re: [Qemu-devel] [Qemu-ppc] [PATCH RFC 04/10] virtio-pmem: Prototype

2019-01-16 Thread Murilo Opsfelder Araujo
Hi, David. On Wed, Jan 16, 2019 at 12:35:17PM +0100, David Hildenbrand wrote: > From: Pankaj Gupta > > This is the current protoype of virtio-pmem. Support will require > machine changes for the architectures that will support it, so it will > not yet be compiled. > > TODO: > - Use separate struc

Re: [Qemu-devel] [Qemu-ppc] [PATCH RFC 03/10] qdev: Provide qdev_get_bus_hotplug_handler()

2019-01-16 Thread Murilo Opsfelder Araujo
Hi, David. On Wed, Jan 16, 2019 at 12:35:16PM +0100, David Hildenbrand wrote: > Let's use a wrapper instead of looking it up manually. This function can > than be reused when we explicitly want to have the bus hotplug handler > (e.g. when the bus hotplug handler was overwritten by the machine > ho

Re: [Qemu-devel] [Qemu-ppc] [PATCH 01/15] ppc/spapr: Receive and store device tree blob from SLOF

2018-12-21 Thread Murilo Opsfelder Araujo
On Fri, Dec 21, 2018 at 01:34:48AM +0100, Greg Kurz wrote: > From: Alexey Kardashevskiy > > SLOF receives a device tree and updates it with various properties > before switching to the guest kernel and QEMU is not aware of any changes > made by SLOF. Since there is no real RTAS (QEMU implements it

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

2018-10-30 Thread Murilo Opsfelder Araujo
Hi, Gerd. On Tue, Oct 30, 2018 at 12:13:45PM +0100, Gerd Hoffmann wrote: > Indicates support state for somerhing (device, backend, subsystem, ...) > in qemu. Modeled roughly after the "S:" states we have in MAINTANERS. > > Signed-off-by: Gerd Hoffmann > --- > include/qemu/support-state.h | 17

Re: [Qemu-devel] [PATCH] Acceptance tests: host arch to target arch name mapping

2018-10-17 Thread Murilo Opsfelder Araujo
On Wed, Oct 17, 2018 at 04:09:51PM -0300, Eduardo Habkost wrote: > On Wed, Oct 17, 2018 at 07:40:51PM +0100, Peter Maydell wrote: > > On 17 October 2018 at 18:38, Cleber Rosa wrote: > > > > > > > > > On 10/17/18 12:29 PM, Eduardo Habkost wrote: > > >> On Wed, Oct 17, 2018 at 01:34:41PM +0100, Pete

Re: [Qemu-devel] [PATCH] Acceptance tests: host arch to target arch name mapping

2018-10-17 Thread Murilo Opsfelder Araujo
On Wed, Oct 17, 2018 at 07:40:51PM +0100, Peter Maydell wrote: > On 17 October 2018 at 18:38, Cleber Rosa wrote: > > > > > > On 10/17/18 12:29 PM, Eduardo Habkost wrote: > >> On Wed, Oct 17, 2018 at 01:34:41PM +0100, Peter Maydell wrote: > >>> So, why does the test code need to care? It's not clea

Re: [Qemu-devel] [PATCH 2/7] Acceptance Tests: introduce arch parameter and attribute

2018-10-04 Thread Murilo Opsfelder Araujo
Hi, Cleber. On Thu, Oct 04, 2018 at 11:14:24AM -0400, Cleber Rosa wrote: > On a number of different scenarios, such as when choosing a QEMU > binary to be used on tests (or a image to use to boot a test VM), it's > useful to define the architecture that should be used. > > This introduces both a t

Re: [Qemu-devel] [PATCH v3] qemu-img.c: add help for each command

2018-09-25 Thread Murilo Opsfelder Araujo
-by: John Arbuckle Segfault is gone with this patch. Acked-by: Murilo Opsfelder Araujo > --- > v3 changes: > Fixed a bug that caused qemu-img to crash when running a command without > options. > > v2 changes: > Removed block of string comparison code for each command. > Added

Re: [Qemu-devel] Ping [PATCH v2] qemu-img.c: add help for each command

2018-09-23 Thread Murilo Opsfelder Araujo
Hi, John. On Sat, Sep 22, 2018 at 01:16:06PM -0400, Programmingkid wrote: > Patchworks url: https://patchwork.ozlabs.org/patch/970255/ > > Add the ability for the user to display help for a certain command. > Example: qemu-img create --help > > What is printed is all the options available to this

Re: [Qemu-devel] [PATCH v2 02/12] util: add atomic64

2018-09-18 Thread Murilo Opsfelder Araujo
On Tue, Sep 11, 2018 at 04:43:04PM -0400, Emilio G. Cota wrote: > On Tue, Sep 11, 2018 at 05:43:38 -0700, Richard Henderson wrote: > > On 09/10/2018 04:27 PM, Emilio G. Cota wrote: > > > +#define GEN_READ(name, type)\ > > > +type name(const type *ptr) \ > >

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

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 b/tests/test-rcu-l

Re: [Qemu-devel] [PATCH v1 1/2] block/snapshot.c: eliminate use of ID input in snapshot operations

2018-08-23 Thread Murilo Opsfelder Araujo
Hi, Daniel. On Tue, Aug 21, 2018 at 06:00:23PM -0300, Daniel Henrique Barboza wrote: > At this moment, QEMU attempts to create/load/delete snapshots > by using either an ID (id_str) or a name. The problem is that the code > isn't consistent of whether the entered argument is an ID or a name, > cau

Re: [Qemu-devel] [PATCH v1 1/2] block/snapshot.c: eliminate use of ID input in snapshot operations

2018-08-22 Thread Murilo Opsfelder Araujo
Hi, Daniel. On Tue, Aug 21, 2018 at 06:00:23PM -0300, Daniel Henrique Barboza wrote: > At this moment, QEMU attempts to create/load/delete snapshots > by using either an ID (id_str) or a name. The problem is that the code > isn't consistent of whether the entered argument is an ID or a name, > cau

Re: [Qemu-devel] [RFC PATCH v1 0/2] HMP/snapshot changes - do not use ID anymore

2018-08-22 Thread Murilo Opsfelder Araujo
Hi, Daniel. On Tue, Aug 21, 2018 at 06:00:22PM -0300, Daniel Henrique Barboza wrote: > I am marking the patch series as "RFC" because it was supposed to be > a discussion but, when I was investigating, it turned out to be > easier to send the patches right away. > > It is not uncommon to see bugs

Re: [Qemu-devel] [PATCH 02/17] mirror: Make wait_for_any_operation() coroutine_fn

2018-08-13 Thread Murilo Opsfelder Araujo
Hi, Max. On Mon, Aug 13, 2018 at 04:19:51AM +0200, Max Reitz wrote: > mirror_wait_for_any_operation() calls qemu_co_queue_wait(), which is a > coroutine_fn (technically it is a macro which resolves to a > coroutine_fn). Therefore, this function needs to be a coroutine_fn as > well. > > This patch

[Qemu-devel] [PATH] Fix build on CentOS 7

2018-08-10 Thread Murilo Opsfelder Araujo
by: Murilo Opsfelder Araujo --- configure | 24 +++- scsi/qemu-pr-helper.c | 4 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 2a7796ea80..bc6000c24a 100755 --- a/configure +++ b/configure @@ -3558,6 +35

Re: [Qemu-devel] [PATCH v2 0/6] QGA: systemd hibernate/suspend/hybrid-sleep

2018-06-21 Thread Murilo Opsfelder Araujo
On Thu, Jun 21, 2018 at 07:21:47AM -0300, Daniel Henrique Barboza wrote: > changes in v2 from Marc-Andre Lureau review: > - use error_free() accordingly > - use g_spawn_sync() instead of fork() in run_process_child() > - previous version link: > https://lists.gnu.org/archive/html/qemu-devel/2018-06

Re: [Qemu-devel] [RFC 1/1] Add BPF support to qemu

2018-06-19 Thread Murilo Opsfelder Araujo
On Tue, Jun 19, 2018 at 04:22:00PM +0300, Sameeh Jubran wrote: > From: Sameeh Jubran > > This commit introduces wrappers around BPF syscalls to qemu. The Berkeley > Packet Filter (BPF) can be really usefull for packet filtering, tracing and > monitoring with very minimal overhead. > > Signed-off

Re: [Qemu-devel] [PATCH v3 03/46] configure: add support for --cross-cc-FOO

2018-05-16 Thread Murilo Opsfelder Araujo
On Wed, May 16, 2018 at 04:18:56PM +0100, Alex Bennée wrote: > > Murilo Opsfelder Araujo writes: > > > On 04/24/2018 12:23 PM, Alex Bennée wrote: > >> This allows us to specify cross compilers for our guests. This is > >> useful for building test images/

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 16/17] s390x: initialize memory region for memory devices

2018-05-15 Thread Murilo Opsfelder Araujo
On Tue, May 15, 2018 at 09:57:43AM +0200, David Hildenbrand wrote: > On 15.05.2018 07:58, Markus Armbruster wrote: > > Murilo Opsfelder Araujo writes: > > > >> On Sat, May 12, 2018 at 09:53:54AM +0200, David Hildenbrand wrote: > >>> On 11.05.2018 20:43, Eduar

[Qemu-devel] [PATCH] HACKING: document preference for g_new instead of g_malloc

2018-05-15 Thread Murilo Opsfelder Araujo
David Hildenbrand Cc: Eduardo Habkost Cc: Markus Armbruster Cc: Paolo Bonzini Signed-off-by: Murilo Opsfelder Araujo --- HACKING | 9 + 1 file changed, 9 insertions(+) diff --git a/HACKING b/HACKING index 4125c97d8d..0fc3e0fc04 100644 --- a/HACKING +++ b/HACKING @@ -118,6 +118,15 @@ Please

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 02/18] memory-device: introduce separate config option

2018-05-14 Thread Murilo Opsfelder Araujo
On Mon, May 14, 2018 at 12:00:07PM +0200, David Hildenbrand wrote: > Some architectures might support memory devices, while they don't > support DIMM/NVDIMM. So let's > - Rename CONFIG_MEM_HOTPLUG to CONFIG_MEM_DEVICE > - Intriduce CONFIG_DIMM and use it similarly to CONFIG NVDIMM Since you're res

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 03/18] qdev: let machine hotplug handler to override bus hotplug handler

2018-05-14 Thread Murilo Opsfelder Araujo
On Mon, May 14, 2018 at 12:00:08PM +0200, David Hildenbrand wrote: > From: Igor Mammedov > > it will allow to return another hotplug handler than the default > one for a specific bus based device type. Which is needed to handle > non trivial plug/unplug sequences that need the access to resources

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 16/17] s390x: initialize memory region for memory devices

2018-05-14 Thread Murilo Opsfelder Araujo
On Sat, May 12, 2018 at 09:53:54AM +0200, David Hildenbrand wrote: > On 11.05.2018 20:43, Eduardo Habkost wrote: > > On Fri, May 11, 2018 at 03:34:05PM -0300, Murilo Opsfelder Araujo wrote: > >> On Fri, May 11, 2018 at 03:19:52PM +0200, David Hildenbrand wrote: > >&g

Re: [Qemu-devel] [PATCH v2 16/17] s390x: initialize memory region for memory devices

2018-05-11 Thread Murilo Opsfelder Araujo
On Fri, May 11, 2018 at 03:19:52PM +0200, David Hildenbrand wrote: > While s390x has no real interface for communicating devices mapped into > the physical address space of the guest, paravirtualized devices can > easily expose the applicable address range themselves. > > So let's use the differen

Re: [Qemu-devel] [PATCH 1/9 V5] memory, exec: switch file ram allocation functions to 'flags' parameters

2018-05-10 Thread Murilo Opsfelder Araujo
On Thu, May 10, 2018 at 10:08:50AM +0800, junyan...@gmx.com wrote: > From: Junyan He > > As more flag parameters besides the existing 'share' are going to be > added to following functions > memory_region_init_ram_from_file > qemu_ram_alloc_from_fd > qemu_ram_alloc_from_file > let's switch

Re: [Qemu-devel] [RFC for-2.13 3/7] target/ppc: Add ppc_hash64_filter_pagesizes()

2018-05-03 Thread Murilo Opsfelder Araujo
On Thu, Apr 19, 2018 at 04:29:13PM +1000, David Gibson wrote: > The paravirtualized PAPR platform sometimes needs to restrict the guest to > using only some of the page sizes actually supported by the host's MMU. > At the moment this is handled in KVM specific code, but for consistency we > want to

Re: [Qemu-devel] [RFC for-2.13 1/7] spapr: Maximum (HPT) pagesize property

2018-05-02 Thread Murilo Opsfelder Araujo
On Thu, Apr 19, 2018 at 04:29:11PM +1000, David Gibson wrote: > The way the POWER Hash Page Table (HPT) MMU is virtualized by KVM HV means > that every page that the guest puts in the pagetables must be truly > physically contiguous, not just GPA-contiguous. In effect this means that > an HPT gues

Re: [Qemu-devel] [PATCH v3 03/46] configure: add support for --cross-cc-FOO

2018-04-25 Thread Murilo Opsfelder Araujo
On 04/24/2018 12:23 PM, Alex Bennée wrote: > This allows us to specify cross compilers for our guests. This is > useful for building test images/programs. Currently we re-run the > compile test for each target. I couldn't think of a way to cache the > value for a given arch without getting messier

Re: [Qemu-devel] [RFC] configure script mistakenly detects static libraries

2018-04-23 Thread Murilo Opsfelder Araujo
On 04/23/2018 01:16 PM, Peter Maydell wrote: > On 23 April 2018 at 17:10, Murilo Opsfelder Araujo > wrote: >> Hi, everyone! >> >> I'm facing an issue on how configure script detects static libraries and >> would like to hear from community to find a common

[Qemu-devel] [RFC] configure script mistakenly detects static libraries

2018-04-23 Thread Murilo Opsfelder Araujo
Hi, everyone! I'm facing an issue on how configure script detects static libraries and would like to hear from community to find a common ground on how to possibly fix it. Throughout configure, we use pkg-config command to verify if a library is installed so qemu can be linked to it. This works f

Re: [Qemu-devel] [PATCH] block/ssh: fix possible segmentation fault when .desc is not null-terminated

2018-02-15 Thread Murilo Opsfelder Araujo
On 01/05/2018 02:57 PM, Eric Blake wrote: > On 01/05/2018 08:44 AM, Murilo Opsfelder Araujo wrote: >> This patch prevents a possible segmentation fault when .desc members are >> checked >> against NULL. >> >> The ssh_runtime_opts was added by commit >> 8

Re: [Qemu-devel] [PATCH v3 1/1] dump.c: allow fd_write_vmcore to return errno on failure

2018-02-12 Thread Murilo Opsfelder Araujo
On 02/12/2018 03:31 PM, Eric Blake wrote: > On 02/12/2018 08:46 AM, Murilo Opsfelder Araujo wrote: >> On 02/12/2018 12:25 PM, Daniel Henrique Barboza wrote: >>> From: Yasmin Beatriz >>> >>> fd_write_vmcore can fail to execute for a lot of reasons that can be

Re: [Qemu-devel] [PATCH v3 1/1] dump.c: allow fd_write_vmcore to return errno on failure

2018-02-12 Thread Murilo Opsfelder Araujo
On 02/12/2018 12:25 PM, Daniel Henrique Barboza wrote: > From: Yasmin Beatriz > > fd_write_vmcore can fail to execute for a lot of reasons that can be > retrieved by errno, but it only returns -1. This makes difficult for > the caller to know what happened and only a generic error message is > pr

Re: [Qemu-devel] [PATCH] dump: Show custom message for ENOSPC

2018-02-09 Thread Murilo Opsfelder Araujo
Hi, Yasmin. Congratulations on your first patch! On 02/09/2018 05:31 PM, Yasmin Beatriz wrote: > This patch intends to make a more specific message for when > the system has not enough space to save guest memory. > > Reported-by: yilzh...@redhat.com > Cc: Jose Ricardo Ziviani > Signed-off-by: Y

[Qemu-devel] [PATCH] block/ssh: fix possible segmentation fault when .desc is not null-terminated

2018-01-05 Thread Murilo Opsfelder Araujo
/html/qemu-devel/2018-01/msg00883.html. Fixes: 8a6a80896d6af03b8ee0c17cdf37219eca2588a7 ("block/ssh: Use QemuOpts for runtime options") Cc: Max Reitz Cc: Eric Blake Signed-off-by: Murilo Opsfelder Araujo --- block/ssh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/ssh.c

[Qemu-devel] [PATCH 1/1] block/nbd: fix segmentation fault when .desc is not null-terminated

2018-01-05 Thread Murilo Opsfelder Araujo
L check becomes safe because it will not evaluate to true when .desc list reached its end. Reported-by: R. Nageswara Sastry Buglink: https://bugs.launchpad.net/qemu/+bug/1727259 Signed-off-by: Murilo Opsfelder Araujo --- block/nbd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/nbd.

[Qemu-devel] [PATCH 0/1] qemu/nbd: fix segmentation fault when .desc is not null-terminated

2018-01-05 Thread Murilo Opsfelder Araujo
s/qemu-iotests/scratch/t.qcow2 -l sn1 & sleep 5 # this will cause qemu-io to segfault ./qemu-io --cache writeback -f qcow2 -f raw --cache=writeback -r -c "read -P 0xa 0x1000 0x1000" nbd:unix:${PWD}/tests/qemu-iotests/scratch/test_qemu_nbd_socket # kill qemu-nbd kill $(pid