[PATCH 01/11] MAINTAINERS: Add Connor Kuehl as reviewer for AMD SEV

2021-06-10 Thread Philippe Mathieu-Daudé
From: Connor Kuehl It may not be appropriate for me to take over as a maintainer at this time, but I would consider myself familiar with AMD SEV and what this code is meant to be doing as part of a VMM for launching SEV-protected guests. To that end, I would be happy to volunteer as a reviewer

[PATCH 00/11] target/i386/sev: Housekeeping helping using SEV-disabled binaries

2021-06-10 Thread Philippe Mathieu-Daudé
Hi, I wasted some time trying to figure out how OVMF was supposed to behave until realizing the binary I was using was built without SEV support... Then wrote this series to help other developers to not hit the same problem. Some SEV patches I was following have been queued on Eduardo's

Re: [RFC PATCH 0/5] ebpf: Added ebpf helper for libvirtd.

2021-06-10 Thread Jason Wang
在 2021/6/9 下午6:04, Andrew Melnychenko 写道: Libvirt usually launches qemu with strict permissions. To enable eBPF RSS steering, qemu-ebpf-rss-helper was added. A silly question: Kernel had the following permission checks in bpf syscall:    if (sysctl_unprivileged_bpf_disabled &&

Re: [PATCH v4 00/13] [RfC] fix tracing for modules

2021-06-10 Thread Gerd Hoffmann
On Wed, Jun 09, 2021 at 04:14:12PM +0100, Stefan Hajnoczi wrote: > On Tue, Jun 01, 2021 at 03:24:01PM +0200, Gerd Hoffmann wrote: > > First version that actually works. Only qxl covered for this RfC, > > other modules will follow once the basics are hashed out. > > > > v4: > > - rebase to

Re: [PATCH v2 18/18] [fixup] module_load_modinfo

2021-06-10 Thread Gerd Hoffmann
On Thu, Jun 10, 2021 at 07:57:55AM +0200, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann Oops. That should have been squashed into patch #13. take care, Gerd

Re: [PATCH v6 3/4] Jobs based on custom runners: docs and gitlab-runner setup playbook

2021-06-10 Thread Thomas Huth
On 08/06/2021 05.14, Cleber Rosa wrote: To have the jobs dispatched to custom runners, gitlab-runner must be installed, active as a service and properly configured. The variables file and playbook introduced here should help with those steps. The playbook introduced here covers the Linux

[Bug 1921948] Re: MTE tags not checked properly for unaligned accesses at EL1

2021-06-10 Thread Thomas Huth
Thanks for opening the new ticket. I'm closing this one here on Launchpad now so that we don't accidentally migrate it later automatically. ** Changed in: qemu Status: Confirmed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is

Re: [PATCH v6 4/4] Jobs based on custom runners: add job definitions for QEMU's machines

2021-06-10 Thread Thomas Huth
On 08/06/2021 05.14, Cleber Rosa wrote: The QEMU project has two machines (aarch64 and s390x) that can be used for jobs that do build and run tests. This introduces those jobs, which are a mapping of custom scripts used for the same purpose. Signed-off-by: Cleber Rosa ---

Re: [RFC PATCH 2/4] target/ppc: divided mmu_helper.c in 2 files

2021-06-10 Thread David Gibson
On Mon, Jun 07, 2021 at 03:35:06PM -0300, Lucas Mateus Martins Araujo e Castro wrote: > > On 06/06/2021 23:31, David Gibson wrote: > > On Wed, Jun 02, 2021 at 04:26:02PM -0300, Lucas Mateus Castro (alqotel) > > wrote: > > > Moved functions in mmu_helper.c that should be compiled in build to > >

[PATCH v2 18/18] [fixup] module_load_modinfo

2021-06-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- util/module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/module.c b/util/module.c index 564b8e3da760..4f98cc74ae37 100644 --- a/util/module.c +++ b/util/module.c @@ -158,7 +158,7 @@ static void module_load_modinfo(void) {

[PATCH v2 16/18] modules: use modinfo for qemu opts load

2021-06-10 Thread Gerd Hoffmann
Use module database to figure which module adds given QemuOpts group. Signed-off-by: Gerd Hoffmann --- softmmu/vl.c| 17 - stubs/module-opts.c | 4 util/module.c | 19 +++ 3 files changed, 19 insertions(+), 21 deletions(-) diff --git

[PATCH v2 12/18] modules: add module_load_path_init helper

2021-06-10 Thread Gerd Hoffmann
Factor out module search path initialization to the new module_load_path_init() helper. Also store the search path in global variables and keep it so we have to do it only once. Signed-off-by: Gerd Hoffmann --- util/module.c | 58 ++- 1 file

[PATCH v2 13/18] modules: load modinfo.json

2021-06-10 Thread Gerd Hoffmann
Load and parse the module info database. Signed-off-by: Gerd Hoffmann --- util/module.c | 54 +++ util/trace-events | 3 +++ 2 files changed, 57 insertions(+) diff --git a/util/module.c b/util/module.c index 3a2d6dde9734..b0ea8c57d438 100644 ---

[PATCH v2 15/18] modules: use modinfo for qom load

2021-06-10 Thread Gerd Hoffmann
Use module database to figure which module implements a given QOM type. Drop hard-coded object list. Signed-off-by: Gerd Hoffmann --- util/module.c | 83 +++ 1 file changed, 30 insertions(+), 53 deletions(-) diff --git a/util/module.c

[PATCH v2 08/18] modules: add ccid module annotations

2021-06-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/ccid-card-emulated.c | 1 + hw/usb/ccid-card-passthru.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c index 5c76bed77aa0..6c8c0355e099 100644 --- a/hw/usb/ccid-card-emulated.c +++

[PATCH v2 14/18] modules: use modinfo for dependencies

2021-06-10 Thread Gerd Hoffmann
Use module database for module dependencies. Drop hard-coded dependency list. Signed-off-by: Gerd Hoffmann --- util/module.c | 55 --- 1 file changed, 21 insertions(+), 34 deletions(-) diff --git a/util/module.c b/util/module.c index

[PATCH v2 10/18] modules: add s390x module annotations

2021-06-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/s390x/virtio-ccw-gpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/s390x/virtio-ccw-gpu.c b/hw/s390x/virtio-ccw-gpu.c index 75a9e4bb3908..5868a2a07093 100644 --- a/hw/s390x/virtio-ccw-gpu.c +++ b/hw/s390x/virtio-ccw-gpu.c @@ -59,6 +59,7 @@ static

[PATCH v2 04/18] modules: add virtio-gpu module annotations

2021-06-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/display/vhost-user-gpu-pci.c | 1 + hw/display/vhost-user-gpu.c | 1 + hw/display/vhost-user-vga.c | 1 + hw/display/virtio-gpu-base.c| 1 + hw/display/virtio-gpu-gl.c | 3 +++ hw/display/virtio-gpu-pci-gl.c | 3 +++

[PATCH v2 09/18] modules: add ui module annotations

2021-06-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/egl-headless.c | 4 ui/gtk.c | 4 ui/sdl2.c | 4 ui/spice-app.c| 3 +++ ui/spice-core.c | 5 + 5 files changed, 20 insertions(+) diff --git a/ui/egl-headless.c b/ui/egl-headless.c index da377a74af69..75404e0e8700

[PATCH v2 11/18] modules: add block module annotations

2021-06-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- block/iscsi-opts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/iscsi-opts.c b/block/iscsi-opts.c index afaf8837d6c1..4f2da405e645 100644 --- a/block/iscsi-opts.c +++ b/block/iscsi-opts.c @@ -68,3 +68,4 @@ static void iscsi_block_opts_init(void) }

[PATCH v2 03/18] modules: add qemu-modinfo utility

2021-06-10 Thread Gerd Hoffmann
Scan .modinfo sections of qemu modules, write module metadata to modinfo.json. Signed-off-by: Gerd Hoffmann --- qemu-modinfo.c | 270 + meson.build| 11 ++ 2 files changed, 281 insertions(+) create mode 100644 qemu-modinfo.c diff --git

[PATCH v2 07/18] modules: add usb-redir module annotations

2021-06-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/redirect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 6a75b0dc4ab2..4ec9326e0582 100644 --- a/hw/usb/redirect.c +++ b/hw/usb/redirect.c @@ -2608,6 +2608,7 @@ static const TypeInfo usbredir_dev_info = {

[PATCH v2 06/18] modules: add audio module annotations

2021-06-10 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- audio/spiceaudio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audio/spiceaudio.c b/audio/spiceaudio.c index 999bfbde47c5..a8d370fe6f31 100644 --- a/audio/spiceaudio.c +++ b/audio/spiceaudio.c @@ -317,3 +317,5 @@ static void register_audio_spice(void)

[PATCH v2 17/18] modules: check arch and block load on mismatch

2021-06-10 Thread Gerd Hoffmann
Add module_allow_arch() to set the target architecture. In case a module is limited to some arch verify arches match and ignore the module if not. Signed-off-by: Gerd Hoffmann --- include/qemu/module.h | 1 + softmmu/vl.c | 3 +++ util/module.c | 15 +++ 3 files

[PATCH v2 01/18] modules: add metadata macros, add qxl module annotations

2021-06-10 Thread Gerd Hoffmann
Stealing an idea from the linux kernel: Place module metadata in an .modinfo elf section. This patch adds macros and qxl module annotations as example. Signed-off-by: Gerd Hoffmann --- include/qemu/module.h | 22 ++ hw/display/qxl.c | 4 2 files changed, 26

<    1   2   3   4   5