Re: [PATCH] nvmm: Fix support for stable version

2021-11-02 Thread Kamil Rytarowski
Reviewed-by: Kamil Rytarowski Paolo, could you please merge it? On 13.10.2021 15:54, nia wrote: > NVMM user version 1 is the version being shipped with netbsd-9, > which is the most recent stable branch of NetBSD. This makes it > possible to use the NVMM accelerator on the most rece

Re: [PATCH v6 12/40] accel/nvmm: Implement AccelOpsClass::has_work()

2021-09-27 Thread Kamil Rytarowski
On 24.09.2021 11:38, Philippe Mathieu-Daudé wrote: > Since there is no specific NVMM handling for cpu_has_work() in > cpu_thread_is_idle(), implement NVMM has_work() handler as a > simple 'return false' code. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Kamil Rytarowski

Re: [PATCH v2 7/8] qemu/bswap: Use compiler __builtin_bswap() on NetBSD

2020-09-29 Thread Kamil Rytarowski
On 29.09.2020 10:58, Peter Maydell wrote: > On Mon, 28 Sep 2020 at 23:02, Kamil Rytarowski wrote: >> >> Personally, I prefer using the system headers. but if you want to use >> the GCC builtins, please go for it. > > I'd agree if the system header

Re: [PATCH v2 7/8] qemu/bswap: Use compiler __builtin_bswap() on NetBSD

2020-09-28 Thread Kamil Rytarowski
On 28.09.2020 15:19, Philippe Mathieu-Daudé wrote: > Since commit efc6c070aca ("configure: Add a test for the minimum > compiler version") the minimum compiler version required for GCC > is 4.8, which supports __builtin_bswap(). > Remove the NetBSD specific ifdef'ry. > > This reverts commit

Re: [PATCH v5 1/4] Add the NVMM vcpu API

2020-09-04 Thread Kamil Rytarowski
Ping? On 11.08.2020 15:01, Kamil Rytarowski wrote: > From: Maxime Villard > > Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and > introduces the nvmm.h sysemu API for managing the vcpu scheduling and > management. > > Signed-off-by: Maxime Villard &

Re: [PATCH v5 1/4] Add the NVMM vcpu API

2020-08-17 Thread Kamil Rytarowski
Ping? On 11.08.2020 16:10, Kamil Rytarowski wrote: > From: Maxime Villard > > Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and > introduces the nvmm.h sysemu API for managing the vcpu scheduling and > management. > > Signed-off-by: Maxime Villard &

[PATCH v5 4/4] Add the NVMM acceleration enlightenments

2020-08-11 Thread Kamil Rytarowski
From: Maxime Villard Implements the NVMM accelerator cpu enlightenments to actually use the nvmm-all accelerator on NetBSD platforms. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé Tested-by: Jared McNeill

[PATCH v5 1/4] Add the NVMM vcpu API

2020-08-11 Thread Kamil Rytarowski
From: Maxime Villard Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and introduces the nvmm.h sysemu API for managing the vcpu scheduling and management. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu

[PATCH v5 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-08-11 Thread Kamil Rytarowski
From: Maxime Villard Introduces the configure support for the new NetBSD Virtual Machine Monitor that allows for hypervisor acceleration from usermode components on the NetBSD platform. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed

[PATCH v5 3/4] Introduce the NVMM impl

2020-08-11 Thread Kamil Rytarowski
-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Tested-by: Jared McNeill --- target/i386/Makefile.objs |1 + target/i386/nvmm-all.c| 1226 + 2 files changed, 1227 insertions(+) create mode 100644 target/i386/nvmm-all.c diff --git a/target/i386

[PATCH v5 3/4] Introduce the NVMM impl

2020-08-11 Thread Kamil Rytarowski
-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Tested-by: Jared McNeill --- target/i386/Makefile.objs |1 + target/i386/nvmm-all.c| 1226 + 2 files changed, 1227 insertions(+) create mode 100644 target/i386/nvmm-all.c diff --git a/target/i386

[PATCH v5 4/4] Add the NVMM acceleration enlightenments

2020-08-11 Thread Kamil Rytarowski
From: Maxime Villard Implements the NVMM accelerator cpu enlightenments to actually use the nvmm-all accelerator on NetBSD platforms. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé Tested-by: Jared McNeill

[PATCH v5 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-08-11 Thread Kamil Rytarowski
From: Maxime Villard Introduces the configure support for the new NetBSD Virtual Machine Monitor that allows for hypervisor acceleration from usermode components on the NetBSD platform. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed

[PATCH v5 1/4] Add the NVMM vcpu API

2020-08-11 Thread Kamil Rytarowski
From: Maxime Villard Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and introduces the nvmm.h sysemu API for managing the vcpu scheduling and management. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu

[PATCH v5 4/4] Add the NVMM acceleration enlightenments

2020-08-11 Thread Kamil Rytarowski
From: Maxime Villard Implements the NVMM accelerator cpu enlightenments to actually use the nvmm-all accelerator on NetBSD platforms. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé Tested-by: Jared McNeill

[PATCH v5 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-08-11 Thread Kamil Rytarowski
From: Maxime Villard Introduces the configure support for the new NetBSD Virtual Machine Monitor that allows for hypervisor acceleration from usermode components on the NetBSD platform. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed

[PATCH v5 3/4] Introduce the NVMM impl

2020-08-11 Thread Kamil Rytarowski
-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Tested-by: Jared McNeill --- target/i386/Makefile.objs |1 + target/i386/nvmm-all.c| 1226 + 2 files changed, 1227 insertions(+) create mode 100644 target/i386/nvmm-all.c diff --git a/target/i386

[PATCH v5 1/4] Add the NVMM vcpu API

2020-08-11 Thread Kamil Rytarowski
From: Maxime Villard Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and introduces the nvmm.h sysemu API for managing the vcpu scheduling and management. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu

Re: [PATCH v4 3/4] Introduce the NVMM impl

2020-07-21 Thread Kamil Rytarowski
On 10.03.2020 07:45, Maxime Villard wrote: > Le 02/03/2020 à 20:35, Paolo Bonzini a écrit : >> >> >> Il lun 2 mar 2020, 20:28 Maxime Villard > > ha scritto: >> >> >> >> +        nvmm_vcpu_pre_run(cpu); >> >> + >> >> +        if (atomic_read(>exit_request)) { >>

Re: [PATCH 1/1] util/oslib: Returns real thread identifier on FreeBSD and NetBSD

2020-05-26 Thread Kamil Rytarowski
Reviewed-by: Kamil Rytarowski On 26.05.2020 09:29, David CARLIER wrote: > From 792fbcd9114f43bd80fd1ef5b25cd9935a536f9f Mon Sep 17 00:00:00 2001 > From: David Carlier > Date: Tue, 26 May 2020 08:25:26 +0100 > Subject: [PATCH] util/oslib: Returns the real thread identifie

Re: [PATCH v4 3/4] Introduce the NVMM impl

2020-03-11 Thread Kamil Rytarowski
On 11.03.2020 22:21, Maxime Villard wrote: > Le 11/03/2020 à 21:42, Paolo Bonzini a écrit : >> On 11/03/20 21:14, Maxime Villard wrote: The problem is that qcpu->stop is checked _before_ entering the hypervisor and not after, so there is a small race window. >>> Ok. I don't understand

Re: [PATCH v4 3/4] Introduce the NVMM impl

2020-03-10 Thread Kamil Rytarowski
On 10.03.2020 07:45, Maxime Villard wrote: > Le 02/03/2020 à 20:35, Paolo Bonzini a écrit : >> >> >> Il lun 2 mar 2020, 20:28 Maxime Villard > > ha scritto: >> >> >> >> +        nvmm_vcpu_pre_run(cpu); >> >> + >> >> +        if (atomic_read(>exit_request)) { >>

Re: [PATCH v2 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-03-02 Thread Kamil Rytarowski
On 02.03.2020 20:40, Paolo Bonzini wrote: > > > Il lun 2 mar 2020, 20:14 Maxime Villard <mailto:m...@m00nbsd.net>> ha scritto: > > Le 02/03/2020 à 19:05, Kamil Rytarowski a écrit : > > On 02.03.2020 18:12, Paolo Bonzini wrote: > >> On

Re: [PATCH v2 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-03-02 Thread Kamil Rytarowski
On 02.03.2020 18:11, Paolo Bonzini wrote: > On 03/02/20 12:41, Philippe Mathieu-Daudé wrote: >> >> Maybe you can add something like: >> >> if test "$targetos" = "NetBSD"; then >>     nvmm="check" >> fi > > You could do just nvmm="" and, below, > > if test "$nvmm" != "no" && test "$targetos" =

Re: [PATCH v2 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-03-02 Thread Kamil Rytarowski
On 02.03.2020 18:12, Paolo Bonzini wrote: > On 03/02/20 12:56, Kamil Rytarowski wrote: >> On 03.02.2020 12:41, Philippe Mathieu-Daudé wrote: >>>> @@ -1768,6 +1785,7 @@ disabled with --disable-FEATURE, default is >>>> enabled if available: >>>>

Re: [PATCH v4 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-03-02 Thread Kamil Rytarowski
; I'm already mentioned as the NetBSD maintainer and NVMM is NetBSD-only (at least today). > > On Mon, Mar 02, 2020 at 06:02:18PM +0100, Kamil Rytarowski wrote: >> Ping? >> >> On 24.02.2020 16:17, Kamil Rytarowski wrote: >>> Ping? >>> >>> On 17.02.2

Re: [PATCH v4 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-03-02 Thread Kamil Rytarowski
Ping? On 24.02.2020 16:17, Kamil Rytarowski wrote: > Ping? > > On 17.02.2020 10:07, Kamil Rytarowski wrote: >> Ping? >> >> On 06.02.2020 22:32, Kamil Rytarowski wrote: >>> Hello QEMU Community! >>> >>> Over the past year the NetBSD

Re: [PATCH v4 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-02-24 Thread Kamil Rytarowski
Ping? On 17.02.2020 10:07, Kamil Rytarowski wrote: > Ping? > > On 06.02.2020 22:32, Kamil Rytarowski wrote: >> Hello QEMU Community! >> >> Over the past year the NetBSD team has been working hard on a new user-mode >> API >> for our hypervisor that will be

Re: [PATCH v4 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-02-17 Thread Kamil Rytarowski
Ping? On 06.02.2020 22:32, Kamil Rytarowski wrote: > Hello QEMU Community! > > Over the past year the NetBSD team has been working hard on a new user-mode > API > for our hypervisor that will be released as part of the upcoming NetBSD 9.0. > This new API adds user-mode capa

Re: [PATCH] tests/acceptance/ppc_prep_40p: Do not run NetBSD test by default

2020-02-11 Thread Kamil Rytarowski
Please use cdn.netbsd.org always. On 11.02.2020 14:19, Philippe Mathieu-Daudé wrote: > The ftp.netbsd.org server is slow and downloading the NetBSD ISO > takes too long. Do not include this test in the default suite. > > Similarly to commit 471c97a69b: > > Currently the Avocado framework does

[PATCH v4 3/4 FIXUP] Introduce the NVMM impl

2020-02-06 Thread Kamil Rytarowski
-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Tested-by: Jared McNeill --- target/i386/Makefile.objs |1 + target/i386/nvmm-all.c| 1226 + 2 files changed, 1227 insertions(+) create mode 100644 target/i386/nvmm-all.c diff --git a/target/i386

[PATCH v4 3/4] Introduce the NVMM impl

2020-02-06 Thread Kamil Rytarowski
-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Tested-by: Jared McNeill --- target/i386/Makefile.objs |1 + target/i386/nvmm-all.c| 1226 + 2 files changed, 1227 insertions(+) create mode 100644 target/i386/nvmm-all.c diff --git a/target/i386

[PATCH v4 4/4] Add the NVMM acceleration enlightenments

2020-02-06 Thread Kamil Rytarowski
From: Maxime Villard Implements the NVMM accelerator cpu enlightenments to actually use the nvmm-all accelerator on NetBSD platforms. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé Tested-by: Jared McNeill

[PATCH v4 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-02-06 Thread Kamil Rytarowski
From: Maxime Villard Introduces the configure support for the new NetBSD Virtual Machine Monitor that allows for hypervisor acceleration from usermode components on the NetBSD platform. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed

[PATCH v4 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-02-06 Thread Kamil Rytarowski
Hello QEMU Community! Over the past year the NetBSD team has been working hard on a new user-mode API for our hypervisor that will be released as part of the upcoming NetBSD 9.0. This new API adds user-mode capabilities to create and manage virtual machines, configure memory mappings for guest

[PATCH v4 1/4] Add the NVMM vcpu API

2020-02-06 Thread Kamil Rytarowski
From: Maxime Villard Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and introduces the nvmm.h sysemu API for managing the vcpu scheduling and management. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu

Re: [PATCH v2 4/4] Add the NVMM acceleration enlightenments

2020-02-06 Thread Kamil Rytarowski
On 06.02.2020 17:07, Philippe Mathieu-Daudé wrote: > On 2/6/20 4:38 PM, Kamil Rytarowski wrote: >> On 06.02.2020 15:13, Markus Armbruster wrote: >>> Kamil Rytarowski writes: >>> >>>> On 06.02.2020 14:09, Philippe Mathieu-Daudé wrote: >>>>

Re: [PATCH v2 4/4] Add the NVMM acceleration enlightenments

2020-02-06 Thread Kamil Rytarowski
On 06.02.2020 15:13, Markus Armbruster wrote: > Kamil Rytarowski writes: > >> On 06.02.2020 14:09, Philippe Mathieu-Daudé wrote: >>> On Thu, Feb 6, 2020 at 2:06 PM Markus Armbruster wrote: >>>> Kamil Rytarowski writes: >>>> >>&g

Re: [PATCH v2 4/4] Add the NVMM acceleration enlightenments

2020-02-06 Thread Kamil Rytarowski
On 06.02.2020 14:09, Philippe Mathieu-Daudé wrote: > On Thu, Feb 6, 2020 at 2:06 PM Markus Armbruster wrote: >> Kamil Rytarowski writes: >> >>> On 03.02.2020 12:54, Philippe Mathieu-Daudé wrote: >>>>> @@ -2029,6 +2072,19 @@ static void qemu_whpx_s

Re: [PATCH v3 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-02-06 Thread Kamil Rytarowski
Am I supposed to do something with this or is this an issue in a script? On 06.02.2020 14:13, no-re...@patchew.org wrote: > Patchew URL: https://patchew.org/QEMU/20200206115731.13552-1-...@gmx.com/ > > > > Hi, > > This series seems to have some coding style problems. See output below for > more

[PATCH v3 3/4] Introduce the NVMM impl

2020-02-06 Thread Kamil Rytarowski
-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez --- target/i386/Makefile.objs |1 + target/i386/nvmm-all.c| 1221 + 2 files changed, 1222 insertions(+) create mode 100644 target/i386/nvmm-all.c diff --git a/target/i386/Makefile.objs b/target/i386

[PATCH v3 4/4] Add the NVMM acceleration enlightenments

2020-02-06 Thread Kamil Rytarowski
From: Maxime Villard Implements the NVMM accelerator cpu enlightenments to actually use the nvmm-all accelerator on NetBSD platforms. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu-Daudé --- cpus.c

[PATCH v3 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-02-06 Thread Kamil Rytarowski
From: Maxime Villard Introduces the configure support for the new NetBSD Virtual Machine Monitor that allows for hypervisor acceleration from usermode components on the NetBSD platform. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed

[PATCH v3 1/4] Add the NVMM vcpu API

2020-02-06 Thread Kamil Rytarowski
From: Maxime Villard Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and introduces the nvmm.h sysemu API for managing the vcpu scheduling and management. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez Reviewed-by: Philippe Mathieu

[PATCH v3 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-02-06 Thread Kamil Rytarowski
Hello QEMU Community! Over the past year the NetBSD team has been working hard on a new user-mode API for our hypervisor that will be released as part of the upcoming NetBSD 9.0. This new API adds user-mode capabilities to create and manage virtual machines, configure memory mappings for guest

Re: [PATCH v2 4/4] Add the NVMM acceleration enlightenments

2020-02-06 Thread Kamil Rytarowski
On 03.02.2020 12:54, Philippe Mathieu-Daudé wrote: >> @@ -2029,6 +2072,19 @@ static void qemu_whpx_start_vcpu(CPUState *cpu) >>   #endif >>   } >> >> +static void qemu_nvmm_start_vcpu(CPUState *cpu) >> +{ >> +    char thread_name[VCPU_THREAD_NAME_SIZE]; >> + >> +    cpu->thread =

Re: [PATCH v2 3/4] Introduce the NVMM impl

2020-02-05 Thread Kamil Rytarowski
On 03.02.2020 12:51, Philippe Mathieu-Daudé wrote: > Except the XXX comments, LGTM but I'm not a X86 guy. > > These comments were old and I will drop them and resubmit.

Re: [PATCH v2 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-02-03 Thread Kamil Rytarowski
On 03.02.2020 12:41, Philippe Mathieu-Daudé wrote: >> @@ -1768,6 +1785,7 @@ disabled with --disable-FEATURE, default is >> enabled if available: >>     hax HAX acceleration support >>     hvf Hypervisor.framework acceleration support >>     whpx    Windows

Re: [PATCH v2 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-02-03 Thread Kamil Rytarowski
uot; http://netbsd.org/ On 28.01.2020 15:09, Kamil Rytarowski wrote: > Hello QEMU Community! > > Over the past year the NetBSD team has been working hard on a new user-mode > API > for our hypervisor that will be released as part of the upcoming NetBSD 9.0. > This new API adds user

[PATCH v2 3/4] Introduce the NVMM impl

2020-01-28 Thread Kamil Rytarowski
-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez --- target/i386/Makefile.objs |1 + target/i386/nvmm-all.c| 1222 + 2 files changed, 1223 insertions(+) create mode 100644 target/i386/nvmm-all.c diff --git a/target/i386/Makefile.objs b/target/i386

[PATCH v2 1/4] Add the NVMM vcpu API

2020-01-28 Thread Kamil Rytarowski
From: Maxime Villard Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and introduces the nvmm.h sysemu API for managing the vcpu scheduling and management. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez --- accel/stubs/Makefile.objs

[PATCH v2 4/4] Add the NVMM acceleration enlightenments

2020-01-28 Thread Kamil Rytarowski
From: Maxime Villard Implements the NVMM accelerator cpu enlightenments to actually use the nvmm-all accelerator on NetBSD platforms. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez --- cpus.c| 58

[PATCH v2 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-01-28 Thread Kamil Rytarowski
From: Maxime Villard Introduces the configure support for the new NetBSD Virtual Machine Monitor that allows for hypervisor acceleration from usermode components on the NetBSD platform. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lopez --- configure

[PATCH v2 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-01-28 Thread Kamil Rytarowski
Hello QEMU Community! Over the past year the NetBSD team has been working hard on a new user-mode API for our hypervisor that will be released as part of the upcoming NetBSD 9.0. This new API adds user-mode capabilities to create and manage virtual machines, configure memory mappings for guest

Re: [PATCH 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-01-28 Thread Kamil Rytarowski
On 28.01.2020 13:08, Sergio Lopez wrote: > On Tue, Jan 28, 2020 at 12:11:51PM +0100, Kamil Rytarowski wrote: >> On 28.01.2020 10:10, Sergio Lopez wrote: >>> On Tue, Jan 07, 2020 at 01:53:57PM +0100, Kamil Rytarowski wrote: >>>> Hello QEMU Community! >>>> &

Re: [PATCH 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-01-28 Thread Kamil Rytarowski
On 28.01.2020 10:10, Sergio Lopez wrote: > On Tue, Jan 07, 2020 at 01:53:57PM +0100, Kamil Rytarowski wrote: >> Hello QEMU Community! >> >> Over the past year the NetBSD team has been working hard on a new user-mode >> API >> for our hypervisor that will be releas

[PATCH v2 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-01-28 Thread Kamil Rytarowski
From: Maxime Villard Introduces the configure support for the new NetBSD Virtual Machine Monitor that allows for hypervisor acceleration from usermode components on the NetBSD platform. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski --- configure | 36

Re: [PATCH 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-01-27 Thread Kamil Rytarowski
Ping? 2x On 15.01.2020 14:14, Kamil Rytarowski wrote: > Ping? > > On 07.01.2020 13:53, Kamil Rytarowski wrote: >> Hello QEMU Community! >> >> Over the past year the NetBSD team has been working hard on a new user-mode >> API >> for our hypervisor that w

Re: [PATCH 0/4] tests/boot_linux_console: Test booting NetBSD via U-Boot on OrangePi PC

2020-01-19 Thread Kamil Rytarowski
Thank you for improving testing of the NetBSD target. On 18.01.2020 20:16, Philippe Mathieu-Daudé wrote: > This series add a test on the OrangePi PC for: > - SD Card booting > - U-boot & UART > - NetBSD 9 > > I simply followed Niek description in docs/orangepi.rst: >

Re: [PATCH 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-01-15 Thread Kamil Rytarowski
Ping? On 07.01.2020 13:53, Kamil Rytarowski wrote: > Hello QEMU Community! > > Over the past year the NetBSD team has been working hard on a new user-mode > API > for our hypervisor that will be released as part of the upcoming NetBSD 9.0. > This new API adds user-mode capa

[PATCH 3/4] Introduce the NVMM impl

2020-01-07 Thread Kamil Rytarowski
-off-by: Kamil Rytarowski --- target/i386/Makefile.objs |1 + target/i386/nvmm-all.c| 1222 + 2 files changed, 1223 insertions(+) create mode 100644 target/i386/nvmm-all.c diff --git a/target/i386/Makefile.objs b/target/i386/Makefile.objs index 48e0c28434

[PATCH 1/4] Add the NVMM vcpu API

2020-01-07 Thread Kamil Rytarowski
From: Maxime Villard Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and introduces the nvmm.h sysemu API for managing the vcpu scheduling and management. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski --- accel/stubs/Makefile.objs | 1 + accel/stubs/nvmm

[PATCH 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-01-07 Thread Kamil Rytarowski
From: Maxime Villard Introduces the configure support for the new NetBSD Virtual Machine Monitor that allows for hypervisor acceleration from usermode components on the NetBSD platform. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski --- configure | 36

[PATCH 4/4] Add the NVMM acceleration enlightenments

2020-01-07 Thread Kamil Rytarowski
From: Maxime Villard Implements the NVMM accelerator cpu enlightenments to actually use the nvmm-all accelerator on NetBSD platforms. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski --- cpus.c| 58 +++ include/sysemu

[PATCH 0/4] Implements the NetBSD Virtual Machine Monitor accelerator

2020-01-07 Thread Kamil Rytarowski
Hello QEMU Community! Over the past year the NetBSD team has been working hard on a new user-mode API for our hypervisor that will be released as part of the upcoming NetBSD 9.0. This new API adds user-mode capabilities to create and manage virtual machines, configure memory mappings for guest

Re: [PATCH v1 0/6] testing/next (netbsd stuff)

2019-11-07 Thread Kamil Rytarowski
On 07.11.2019 18:46, Peter Maydell wrote: > On Mon, 4 Nov 2019 at 17:39, Alex Bennée wrote: >> >> Hi, >> >> As we approach hard-freeze I'm trying to temper what comes in through >> the testing/next tree. However it would be nice to get the NetBSD upto >> speed with the other NetBSDs. Although the

Re: [PATCH v6 3/4] tests/vm: use console_consume for netbsd

2019-10-31 Thread Kamil Rytarowski
Thank you for this work. I hope it will be fine now. On 31.10.2019 09:53, Gerd Hoffmann wrote: > Use new helper to read all pending console output, > not just a single char. Unblocks installer boot. > > Signed-off-by: Gerd Hoffmann > --- > tests/vm/netbsd | 2 +- > 1 file changed, 1

Re: Python 2 and test/vm/netbsd

2019-10-22 Thread Kamil Rytarowski
On 22.10.2019 15:16, Samuel Thibault wrote: > Eduardo Habkost, le ven. 18 oct. 2019 13:41:43 -0300, a ecrit: >> On Fri, Oct 18, 2019 at 06:00:19PM +0200, Samuel Thibault wrote: >>> It was implemented at the time of introduction of IPv6 in SLIRP. Perhaps >>> NetBSD has a slightly different behavior

Re: [PATCH v5 0/3] tests/vm: netbsd autoinstall, with IPv6 disabled

2019-10-21 Thread Kamil Rytarowski
On 21.10.2019 15:47, Alex Bennée wrote: > > Eduardo Habkost writes: > >> I'm numbering this series v5 because it's a new version of the >> patch sent by Gerd, at: >> >> Date: Mon, 17 Jun 2019 06:38:56 +0200 >> Message-Id: <20190617043858.8290-10-kra...@redhat.com> >> Subject: [PATCH v4

Re: [PATCH v2] Do not use %m in common code to print error messages

2019-10-18 Thread Kamil Rytarowski
On 18.10.2019 15:42, Stefano Garzarella wrote: > On Fri, Oct 18, 2019 at 03:07:16PM +0200, Thomas Huth wrote: >> The %m format specifier is an extension from glibc - and when compiling >> QEMU for NetBSD, the compiler correctly complains, e.g.: >> >>

Re: Python 2 and test/vm/netbsd

2019-10-16 Thread Kamil Rytarowski
On 16.10.2019 08:11, Thomas Huth wrote: On 16/10/2019 05.00, Eduardo Habkost wrote: On Tue, Sep 17, 2019 at 08:31:40PM -0300, Eduardo Habkost wrote: On Mon, Jul 01, 2019 at 07:25:27PM -0300, Eduardo Habkost wrote: On Mon, Jun 10, 2019 at 01:58:50PM +0100, Peter Maydell wrote: [...] The

Re: [Qemu-devel] [PATCH 1/5] tests/acceptance: Add test that runs NetBSD installer on PRep/40p

2019-07-06 Thread Kamil Rytarowski
On 05.07.2019 20:00, Philippe Mathieu-Daudé wrote: > Hi Kamil, > > On 6/27/19 11:47 PM, Kamil Rytarowski wrote: >> On 27.06.2019 13:01, Philippe Mathieu-Daudé wrote: >>> +bios_url = ('ftp://ftp.boulder.ibm.com/rs6000/firmware/' >>> +

Re: [Qemu-devel] [PATCH v4 09/11] tests/vm: netbsd autoinstall, using serial console

2019-07-05 Thread Kamil Rytarowski
On 05.07.2019 12:47, Philippe Mathieu-Daudé wrote: > On 7/5/19 12:43 PM, Kamil Rytarowski wrote: >> On 05.07.2019 12:24, Alex Bennée wrote: >>> >>> Gerd Hoffmann writes: >>> >>>> Instead of fetching the prebuilt image from patchew download th

Re: [Qemu-devel] [PATCH v4 09/11] tests/vm: netbsd autoinstall, using serial console

2019-07-05 Thread Kamil Rytarowski
en. > > Any pointers on how to debug gratefully received. > Does it use virtio? There were performance issues with virio disk device. >> >> Signed-off-by: Gerd Hoffmann >> Reviewed-by: Kamil Rytarowski >> Tested-by: Thomas Huth >> --- >> t

Re: [Qemu-devel] [PATCH 1/5] tests/acceptance: Add test that runs NetBSD installer on PRep/40p

2019-06-27 Thread Kamil Rytarowski
On 27.06.2019 13:01, Philippe Mathieu-Daudé wrote: > +bios_url = ('ftp://ftp.boulder.ibm.com/rs6000/firmware/' > +'7020-40p/P12H0456.IMG') > +bios_hash = '1775face4e6dc27f3a6ed955ef6eb331bf817f03' > +bios_path = self.fetch_asset(bios_url,

Re: [Qemu-devel] [PATCH v3 00/14] tests/vm: serial console autoinstall, misc fixes.

2019-06-12 Thread Kamil Rytarowski
On 12.06.2019 19:35, Alex Bennée wrote: > > Alex Bennée writes: > >> Gerd Hoffmann writes: >> >>> This patch series changes the way virtual machines for test builds are >>> managed. They are created locally on the developer machine now. The >>> installer is booted on the serial console and

Re: [Qemu-devel] [PATCH v2 11/13] tests/vm: netbsd autoinstall, using serial console

2019-05-15 Thread Kamil Rytarowski
> > Signed-off-by: Gerd Hoffmann Reviewed-by: Kamil Rytarowski > --- > tests/vm/netbsd | 187 +--- > 1 file changed, 177 insertions(+), 10 deletions(-) > > diff --git a/tests/vm/netbsd b/tests/vm/netbsd > index 4c6624ea5ed5..

Re: [Qemu-devel] [PATCH 00/13] tests/vm: serial console autoinstall, misc fixes.

2019-05-09 Thread Kamil Rytarowski
On 09.05.2019 15:57, Thomas Huth wrote: > On 09/05/2019 15.50, Gerd Hoffmann wrote: >> Hi, >> Do we have accelerator support for the BSDs? A "make check" for a full build takes ages, and I suspect tcg being used is part of the problem. I did my tests using

Re: [Qemu-devel] [PATCH 11/13] tests/vm: netbsd autoinstall, using serial console

2019-05-09 Thread Kamil Rytarowski
On 09.05.2019 18:39, Richard Henderson wrote: > On 5/8/19 11:47 PM, Gerd Hoffmann wrote: >> So, from looking at the patch it seems you need two mappings of the same >> page, one writable and one executable. >> >> Or, maybe it is also possible with one mapping which is writable first >> when you

Re: [Qemu-devel] [PATCH 00/13] tests/vm: serial console autoinstall, misc fixes.

2019-05-09 Thread Kamil Rytarowski
On 08.05.2019 10:56, Gerd Hoffmann wrote: > This patch series changes the way virtual machines for test builds are > managed. They are created locally on the developer machine now. The > installer is booted on the serial console and the scripts walks through > the dialogs to install and

Re: [Qemu-devel] [PATCH 11/13] tests/vm: netbsd autoinstall, using serial console

2019-05-09 Thread Kamil Rytarowski
On 09.05.2019 08:47, Gerd Hoffmann wrote: > Hi, > >> I recommend to add one extra step into generated image: >> >> echo security.pax.mprotect.enabled=0 >> /etc/sysctl.conf > > Done. > Thanks! Once there will be PaX MPROTECT support in qemu, we can and should drop it. >> Alternatively (and

Re: [Qemu-devel] [PATCH 11/13] tests/vm: netbsd autoinstall, using serial console

2019-05-08 Thread Kamil Rytarowski
On 08.05.2019 10:56, Gerd Hoffmann wrote: > Instead of fetching the prebuilt image from patchew download the install > iso and prepare the image locally. Install to disk, using the serial > console. Create qemu user, configure ssh login. Install packages > needed for qemu builds. > I

Re: [Qemu-devel] Update *BSD images with gnu-sed and bash

2019-05-08 Thread Kamil Rytarowski
On 08.05.2019 10:07, Thomas Huth wrote: > On 08/05/2019 09.06, Kamil Rytarowski wrote: >> On 06.05.2019 12:12, Thomas Huth wrote: > [...] >>> Kamil, >>> >>> could you maybe help with the NetBSD image and the tests/vm/netbsd script? >>> >&g

Re: [Qemu-devel] Update *BSD images with gnu-sed and bash

2019-05-08 Thread Kamil Rytarowski
On 06.05.2019 12:12, Thomas Huth wrote: > On 26/04/2019 18.43, Laszlo Ersek wrote: >> On 04/25/19 08:00, Thomas Huth wrote: >>> On 24/04/2019 23.29, Wainer dos Santos Moschetta wrote: Hello Thomas, On 04/24/2019 07:37 AM, Thomas Huth wrote: > We are going to enable the

Re: [Qemu-devel] [PATCHv3 1/2] ui/curses: Do not assume wchar_t contains unicode

2019-04-27 Thread Kamil Rytarowski
On 27.04.2019 19:57, Samuel Thibault wrote: > Kamil Rytarowski, le sam. 27 avril 2019 19:36:40 +0200, a ecrit: >> On 27.04.2019 18:30, Samuel Thibault wrote: >>> E.g. BSD and Solaris even use locale-specific encoding there. >>> >>> We thus have to go through

Re: [Qemu-devel] [PATCHv3 1/2] ui/curses: Do not assume wchar_t contains unicode

2019-04-27 Thread Kamil Rytarowski
On 27.04.2019 18:30, Samuel Thibault wrote: > E.g. BSD and Solaris even use locale-specific encoding there. > > We thus have to go through the native multibyte representation and use > mbtowc/wctomb to make a proper conversion. > > Signed-off-by: Samuel Thibault Both patches work for me on

Re: [Qemu-devel] [PATCH] target-i386: Enhance the stub for kvm_arch_get_supported_cpuid()

2019-02-25 Thread Kamil Rytarowski
On 25.02.2019 08:10, Paolo Bonzini wrote: > I have replied already. > Sorry, I don't have this mail in my mailbox for some reason. The issue is gone with the following patch: https://www.mail-archive.com/qemu-devel@nongnu.org/msg598417.html Tested-by: Kamil Rytarowski Please

Re: [Qemu-devel] [PATCH] target-i386: Enhance the stub for kvm_arch_get_supported_cpuid()

2019-02-24 Thread Kamil Rytarowski
Ping. On 21.02.2019 03:08, Kamil Rytarowski wrote: > On 20.02.2019 18:29, Paolo Bonzini wrote: >> On 20/02/19 12:59, Kamil Rytarowski wrote: >>> Ping, still valid. >> >> Sorry, I missed your email. >> >>> On 15.02.2019 00:38, Kamil Rytarow

Re: [Qemu-devel] [PATCH] target-i386: Enhance the stub for kvm_arch_get_supported_cpuid()

2019-02-20 Thread Kamil Rytarowski
On 20.02.2019 18:29, Paolo Bonzini wrote: > On 20/02/19 12:59, Kamil Rytarowski wrote: >> Ping, still valid. > > Sorry, I missed your email. > >> On 15.02.2019 00:38, Kamil Rytarowski wrote: >>> I consider it as fragile hack and certainly not somethi

Re: [Qemu-devel] [PATCH] target-i386: Enhance the stub for kvm_arch_get_supported_cpuid()

2019-02-20 Thread Kamil Rytarowski
Ping, still valid. On 15.02.2019 00:38, Kamil Rytarowski wrote: > On 14.02.2019 21:51, Paolo Bonzini wrote: >> On 14/02/19 20:41, Kamil Rytarowski wrote: >>> Please do replace the current kludge that is sensitive to: >>> - compiler behavior that can change with new v

Re: [Qemu-devel] [PATCH] target-i386: Enhance the stub for kvm_arch_get_supported_cpuid()

2019-02-14 Thread Kamil Rytarowski
On 14.02.2019 21:51, Paolo Bonzini wrote: > On 14/02/19 20:41, Kamil Rytarowski wrote: >> Please do replace the current kludge that is sensitive to: >> - compiler behavior that can change with new versions >> - compiler gcc/clang >> - optimization options >

Re: [Qemu-devel] [PATCH] target-i386: Enhance the stub for kvm_arch_get_supported_cpuid()

2019-02-14 Thread Kamil Rytarowski
On 14.02.2019 19:44, Paolo Bonzini wrote: > On 02/02/19 15:45, Kamil Rytarowski wrote: >> >> Clang/LLVM on NetBSD with enabled optimization cannot link >> correct qemu program because of a missing symbol of >> kvm_arch_get_supported_cpuid() in kvm-stubs.o used by execu

Re: [Qemu-devel] [PATCH] target-i386: Enhance the stub for kvm_arch_get_supported_cpuid()

2019-02-14 Thread Kamil Rytarowski
Ping? On 02.02.2019 15:45, Kamil Rytarowski wrote: > This improves the commit: > "target-i386: Fix build by providing stub kvm_arch_get_supported_cpuid()" > r. 2140cfa51d59177815f5b82e94ac48fb24909aba > > Clang/LLVM on NetBSD with enabled optimization cannot link >

[Qemu-devel] [PATCH] configure: Add HAX support in NetBSD

2019-02-07 Thread Kamil Rytarowski
The NetBSD support in Intel HAXM has beem merged upstream and is functional. Signed-off-by: Kamil Rytarowski --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index b18281c61f..89b889072d 100755 --- a/configure +++ b/configure @@ -819,6 +819,7 @@ DragonFly

Re: [Qemu-devel] [PATCH] hax: Support for Linux hosts

2019-02-02 Thread Kamil Rytarowski
On 25.11.2018 18:14, Paolo Bonzini wrote: > On 25/11/18 00:50, Kamil Rytarowski wrote: >> On 22.11.2018 08:24, Kamil Rytarowski wrote: >>> On 16.11.2018 13:52, Paolo Bonzini wrote: >>>> On 14/11/18 14:04, Alexandro Sanchez Bach wrote: >>>>> Intel HA

[Qemu-devel] [PATCH] target-i386: Enhance the stub for kvm_arch_get_supported_cpuid()

2019-02-02 Thread Kamil Rytarowski
at depends on the __OPTIMIZE__ builtin compiler flag, build option (KVM), compiler and arrangement of linking rules to a simple macro in a shared header with all the users that defines fallback dummy implementation, ignoring whether it is optimized out or not. Signed-off-by: Kamil Rytarowski --- incl

Re: [Qemu-devel] [PATCH v2 08/18] tests/bios-tables: Improve portability by searching bash in the $PATH

2019-01-29 Thread Kamil Rytarowski
On 29.01.2019 18:53, Philippe Mathieu-Daudé wrote: > Bash is not always installed as /bin/bash. In particular on OpenBSD, > the package installs it in /usr/local/bin. > Use the 'env' shebang to search bash in the $PATH. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: K

Re: [Qemu-devel] [PATCH v2 07/18] tests/multiboot: Improve portability by searching bash in the $PATH

2019-01-29 Thread Kamil Rytarowski
On 29.01.2019 18:53, Philippe Mathieu-Daudé wrote: > Bash is not always installed as /bin/bash. In particular on OpenBSD, > the package installs it in /usr/local/bin. > Use the 'env' shebang to search bash in the $PATH. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: K

Re: [Qemu-devel] [PULL v2 07/49] util: check the return value of fcntl in qemu_set_{block, nonblock}

2019-01-25 Thread Kamil Rytarowski
On 25.01.2019 19:53, Philippe Mathieu-Daudé wrote: > Hi, > > On 1/15/19 9:04 PM, Michael S. Tsirkin wrote: >> From: Li Qiang >> >> Assert that the return value is not an error. This is like commit >> 7e6478e7d4f for qemu_set_cloexec. >> >> Signed-off-by: Li Qiang >> Reviewed-by: Thomas Huth >>

Re: [Qemu-devel] [PATCH RFC 8/9] tests: Add OpenBSD image

2019-01-24 Thread Kamil Rytarowski
On 24.01.2019 16:52, Philippe Mathieu-Daudé wrote: > On 8/16/17 9:21 AM, Fam Zheng wrote: >> The image is prepared following instructions as in: >> >> https://wiki.qemu.org/Hosts/BSD >> >> Signed-off-by: Fam Zheng >> --- >> tests/vm/openbsd | 45 + >>

  1   2   3   >