Skip to contentSkip to conversation

RESEND [PATCH v2] bsd-user: Add new maintainers

PATCH In review Warner Losh 7 participants 23 messages Mar 7, 2021 – Mar 19, 2021

lore
Share & tools
lore
#0 lore raw

The FreeBSD project has a number of enhancements to bsd-user. Add myself as maintainer and Kyle Evans as a reviewer. Also add our github repo.

---
 MAINTAINERS | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +4 -1
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
 F: accel/tcg/user-exec*.c
 
 BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
 F: bsd-user/
 F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user bsd-user-rebase-3.1
 
 Linux user
 M: Laurent Vivier <[email protected]>
Signature · 1 line
2.30.0
#1 lore raw

PATCH v2 1/1 FreeBSD: Upgrade to 12.2 release

FreeBSD 12.1 has reached end of life. Use 12.2 instead so that FreeBSD's project's packages will work. Update which timezone to pick. Work around a QEMU bug that incorrectly raises an exception on a CRC32 instruction with the FPU disabled. The qemu bug is described here:
https://www.mail-archive.com/[email protected]/msg784158.html

---
 tests/vm/freebsd | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
tests/vm/freebsd +8 -4
index 09f3ee6cb8..81389d527e 100755
@@ -20,12 +20,16 @@ import socket
 import subprocess
 import basevm
 
+FREEBSD_CONFIG = {
+    'cpu'	: "max,sse4.2=off",
+}
+
 class FreeBSDVM(basevm.BaseVM):
     name = "freebsd"
     arch = "x86_64"
 
-    link = "https://download.freebsd.org/ftp/releases/ISO-IMAGES/12.1/FreeBSD-12.1-RELEASE-amd64-disc1.iso.xz"
-    csum = "7394c3f60a1e236e7bd3a05809cf43ae39a3b8e5d42d782004cf2f26b1cfcd88"
+    link = "https://download.freebsd.org/ftp/releases/ISO-IMAGES/12.2/FreeBSD-12.2-RELEASE-amd64-disc1.iso.xz"
+    csum = "a4530246cafbf1dd42a9bd3ea441ca9a78a6a0cd070278cbdf63f3a6f803ecae"
     size = "20G"
     pkgs = [
         # build tools
@@ -125,7 +129,7 @@ class FreeBSDVM(basevm.BaseVM):
         self.console_wait_send("IPv6",                  "n")
         self.console_wait_send("Resolver",              "\n")
 
-        self.console_wait_send("Time Zone Selector",    "a\n")
+        self.console_wait_send("Time Zone Selector",    "0\n")
         self.console_wait_send("Confirmation",          "y")
         self.console_wait_send("Time & Date",           "\n")
         self.console_wait_send("Time & Date",           "\n")
@@ -206,4 +210,4 @@ class FreeBSDVM(basevm.BaseVM):
         self.print_step("All done")
 
 if __name__ == "__main__":
-    sys.exit(basevm.main(FreeBSDVM))
+    sys.exit(basevm.main(FreeBSDVM, config=FREEBSD_CONFIG))
Signature · 1 line
2.30.0
#2 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

Quoted 11 lines · Warner Losh

FreeBSD 12.1 has reached end of life. Use 12.2 instead so that FreeBSD's project's packages will work. Update which timezone to pick. Work around a QEMU bug that incorrectly raises an exception on a CRC32 instruction with the FPU disabled. The qemu bug is described here:
https://www.mail-archive.com/[email protected]/msg784158.html

---
  tests/vm/freebsd | 14 +++++++++-----
  1 file changed, 9 insertions(+), 5 deletions(-)

I gave this a try, but it's currently failing in the unit tests:

Running test test-crypto-tlscredsx509

** (tests/test-crypto-tlscredsx509:9999): CRITICAL **: 12:56:35.157: Failed to sign certificate ASN1 parser: Value is not valid. ERROR test-crypto-tlscredsx509 - Bail out! FATAL-CRITICAL: Failed to sign certificate ASN1 parser: Value is not valid.
gmake: *** [Makefile.mtest:576: run-test-70] Error 1
gmake: *** Waiting for unfinished jobs....
Running test test-crypto-tlssession

** (tests/test-crypto-tlssession:10002): CRITICAL **: 12:56:35.288: Failed to sign certificate ASN1 parser: Value is not valid. ERROR test-crypto-tlssession - Bail out! FATAL-CRITICAL: Failed to sign certificate ASN1 parser: Value is not valid.

I guess it's the same problem as:

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html

... so this would require a bug fix in the libtasn of FreeBSD first? See:

https://gitlab.com/gnutls/libtasn1/-/merge_requests/71

Thomas

#3 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

Quoted 28 lines · Thomas Huth
Quoted 2 lines · Warner Losh

FreeBSD 12.1 has reached end of life. Use 12.2 instead so that FreeBSD's project's packages will work. Update which timezone to pick. Work

around a QEMU

Quoted 1 line

bug that incorrectly raises an exception on a CRC32 instruction with the

FPU

Quoted 8 lines

disabled. The qemu bug is described here:
https://www.mail-archive.com/[email protected]/msg784158.html

---
  tests/vm/freebsd | 14 +++++++++-----
  1 file changed, 9 insertions(+), 5 deletions(-)

I gave this a try, but it's currently failing in the unit tests:

Running test test-crypto-tlscredsx509

** (tests/test-crypto-tlscredsx509:9999): CRITICAL **: 12:56:35.157:
Failed
to sign certificate ASN1 parser: Value is not valid.
ERROR test-crypto-tlscredsx509 - Bail out! FATAL-CRITICAL: Failed to sign certificate ASN1 parser: Value is not valid.
gmake: *** [Makefile.mtest:576: run-test-70] Error 1
gmake: *** Waiting for unfinished jobs....
Running test test-crypto-tlssession

Quoted 5 lines

** (tests/test-crypto-tlssession:10002): CRITICAL **: 12:56:35.288: Failed to sign certificate ASN1 parser: Value is not valid.
ERROR test-crypto-tlssession - Bail out! FATAL-CRITICAL: Failed to sign certificate ASN1 parser: Value is not valid.

That's totally unrelated to my change. Was it failing before? What environment was it failing in because it all seemed to work for me...

Quoted 7 lines

I guess it's the same problem as:

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html

... so this would require a bug fix in the libtasn of FreeBSD first? See:

https://gitlab.com/gnutls/libtasn1/-/merge_requests/71

Is this on the host that built qemu, or inside the VM or where exactly?

Warner

#4 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

Quoted 30 lines · Warner Losh
Quoted 28 lines · Thomas Huth
Quoted 2 lines · Warner Losh

FreeBSD 12.1 has reached end of life. Use 12.2 instead so that FreeBSD's project's packages will work. Update which timezone to pick. Work

around a QEMU

Quoted 1 line

bug that incorrectly raises an exception on a CRC32 instruction with the

FPU

Quoted 8 lines

disabled. The qemu bug is described here:
https://www.mail-archive.com/[email protected]/msg784158.html

---
  tests/vm/freebsd | 14 +++++++++-----
  1 file changed, 9 insertions(+), 5 deletions(-)

I gave this a try, but it's currently failing in the unit tests:

Running test test-crypto-tlscredsx509

** (tests/test-crypto-tlscredsx509:9999): CRITICAL **: 12:56:35.157:
Failed
to sign certificate ASN1 parser: Value is not valid.
ERROR test-crypto-tlscredsx509 - Bail out! FATAL-CRITICAL: Failed to sign certificate ASN1 parser: Value is not valid.
gmake: *** [Makefile.mtest:576: run-test-70] Error 1
gmake: *** Waiting for unfinished jobs....
Running test test-crypto-tlssession

Quoted 8 lines
Quoted 5 lines

** (tests/test-crypto-tlssession:10002): CRITICAL **: 12:56:35.288: Failed to sign certificate ASN1 parser: Value is not valid.
ERROR test-crypto-tlssession - Bail out! FATAL-CRITICAL: Failed to sign certificate ASN1 parser: Value is not valid.

That's totally unrelated to my change. Was it failing before? What environment was it failing in because it all seemed to work for me...

Do you have gnutls package present ? These tests are only run if both gnutls and libtasn1 development packages are present.

Quoted 4 lines
Quoted 4 lines

I guess it's the same problem as:

Quoted 8 lines
Quoted 5 lines

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html

... so this would require a bug fix in the libtasn of FreeBSD first? See:

https://gitlab.com/gnutls/libtasn1/-/merge_requests/71

Is this on the host that built qemu, or inside the VM or where exactly?

IIUC, it applies to anywhere the libtasn1 is built with modern clang. IOW, the FreeBSD ports build of libtasn1 would need the patch.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#5 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

In reply to Warner Losh
Quoted 32 lines · Warner Losh

On Mon, Mar 8, 2021 at 6:30 AM Thomas Huth <[email protected] <mailto:[email protected]>> wrote:

On 07/03/2021 16.56, Warner Losh wrote:
> FreeBSD 12.1 has reached end of life. Use 12.2 instead so that FreeBSD's > project's packages will work.  Update which timezone to pick. Work
around a QEMU
> bug that incorrectly raises an exception on a CRC32 instruction with
the FPU
> disabled.  The qemu bug is described here:
> https://www.mail-archive.com/[email protected]/msg784158.html
<https://www.mail-archive.com/[email protected]/msg784158.html>
>
> Signed-off-by: Warner Losh <[email protected] <mailto:[email protected]>> >
> ---
>   tests/vm/freebsd | 14 +++++++++-----
>   1 file changed, 9 insertions(+), 5 deletions(-)

I gave this a try, but it's currently failing in the unit tests:

Running test test-crypto-tlscredsx509

** (tests/test-crypto-tlscredsx509:9999): CRITICAL **: 12:56:35.157: Failed to sign certificate ASN1 parser: Value is not valid.
ERROR test-crypto-tlscredsx509 - Bail out! FATAL-CRITICAL: Failed to sign certificate ASN1 parser: Value is not valid.
gmake: *** [Makefile.mtest:576: run-test-70] Error 1
gmake: *** Waiting for unfinished jobs....
Running test test-crypto-tlssession

Quoted 7 lines

** (tests/test-crypto-tlssession:10002): CRITICAL **: 12:56:35.288: Failed to sign certificate ASN1 parser: Value is not valid.
ERROR test-crypto-tlssession - Bail out! FATAL-CRITICAL: Failed to sign certificate ASN1 parser: Value is not valid.

That's totally unrelated to my change. Was it failing before? What environment was it failing in because it all seemed to work for me...

It's been a while since I last ran "make vm-build-freebsd", so I can't really tell whether the problem was already there before ... when I now try to run it without your patch, it fails for me, too, but rather due to FreeBSD 12.1 being out of service instead.

Quoted 11 lines
    I guess it's the same problem as:

    https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html
    <https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html>

    ... so this would require a bug fix in the libtasn of FreeBSD first? See:

    https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
    <https://gitlab.com/gnutls/libtasn1/-/merge_requests/71>

 Is this on the host that built qemu, or inside the VM or where exactly?

It's inside the VM ... I assume the libtasn there has the same bug as the one on macOS?

Thomas

#6 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

Quoted 45 lines

8 марта 2021 г., в 18:41, Thomas Huth <[email protected]> написал(а):

Quoted 16 lines · Warner Losh

On Mon, Mar 8, 2021 at 6:30 AM Thomas Huth <[email protected] <mailto:[email protected]>> wrote:

Quoted 2 lines · Warner Losh

FreeBSD 12.1 has reached end of life. Use 12.2 instead so that FreeBSD's project's packages will work. Update which timezone to pick. Work

around a QEMU

Quoted 1 line

bug that incorrectly raises an exception on a CRC32 instruction with

the FPU

Quoted 2 lines

disabled. The qemu bug is described here:
https://www.mail-archive.com/[email protected]/msg784158.html

<https://www.mail-archive.com/[email protected]/msg784158.html>

Quoted 6 lines
Signed-off-by Warner Losh <[email protected] <mailto:[email protected]>>
---
  tests/vm/freebsd | 14 +++++++++-----
  1 file changed, 9 insertions(+), 5 deletions(-)
Quoted 14 lines

I gave this a try, but it's currently failing in the unit tests:
Running test test-crypto-tlscredsx509
** (tests/test-crypto-tlscredsx509:9999): CRITICAL **: 12:56:35.157: Failed
to sign certificate ASN1 parser: Value is not valid.
ERROR test-crypto-tlscredsx509 - Bail out! FATAL-CRITICAL: Failed to sign
certificate ASN1 parser: Value is not valid.
gmake: *** [Makefile.mtest:576: run-test-70] Error 1
gmake: *** Waiting for unfinished jobs....
Running test test-crypto-tlssession
** (tests/test-crypto-tlssession:10002): CRITICAL **: 12:56:35.288: Failed
to sign certificate ASN1 parser: Value is not valid.
ERROR test-crypto-tlssession - Bail out! FATAL-CRITICAL: Failed to sign
certificate ASN1 parser: Value is not valid.
That's totally unrelated to my change. Was it failing before? What environment was it failing in because it all seemed to work for me...

It's been a while since I last ran "make vm-build-freebsd", so I can't really tell whether the problem was already there before ... when I now try to run it without your patch, it fails for me, too, but rather due to FreeBSD 12.1 being out of service instead.

Quoted 7 lines
   I guess it's the same problem as:
   https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html
   <https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html>
   ... so this would require a bug fix in the libtasn of FreeBSD first? See:
   https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
   <https://gitlab.com/gnutls/libtasn1/-/merge_requests/71>

Is this on the host that built qemu, or inside the VM or where exactly?

Quoted 2 lines

It's inside the VM ... I assume the libtasn there has the same bug as the one on macOS?

The gnutls failures on macOS and FreeBSD (with clang as main compiler) won’t happen only if libtasn1 from master is used. Otherwise libtasn1 has to be compiled with -O1/-O0.

Отправлено с iPhone

Quoted 2 lines

Thomas

#7 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

Am 08.03.21 um 16:46 schrieb Roman Bolshakov:

Quoted 1 line

gnutls failures on macOS and FreeBSD (with clang as main compiler) won’t happen only if libtasn1 from master is used. Otherwise libtasn1 has to be compiled with -O1/-O0.

Of course it is also possible to patch older versions of libtasn1 to make them work with clang -O2.

Stefan

#8 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

In reply to Roman Bolshakov
Quoted 59 lines · Roman Bolshakov
Quoted 5 lines

8 марта 2021 г., в 18:41, Thomas Huth <[email protected]> написал(а):

Quoted 1 line · Warner Losh

On Mon, Mar 8, 2021 at 6:30 AM Thomas Huth <[email protected] <mailto:

Quoted 2 lines · [email protected]>> wrote:
Quoted 2 lines · Warner Losh
Quoted 1 line

FreeBSD 12.1 has reached end of life. Use 12.2 instead so that

FreeBSD's

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

project's packages will work. Update which timezone to pick. Work

around a QEMU

Quoted 1 line

bug that incorrectly raises an exception on a CRC32 instruction

with

Quoted 8 lines
Quoted 8 lines
   the FPU
    > disabled.  The qemu bug is described here:
    > https://www.mail-archive.com/[email protected]/msg784158.html
   <https://www.mail-archive.com/[email protected]/msg784158.html>
    >
    > Signed-off-by: Warner Losh <[email protected] <mailto:[email protected]

    >
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
---
  tests/vm/freebsd | 14 +++++++++-----
  1 file changed, 9 insertions(+), 5 deletions(-)

I gave this a try, but it's currently failing in the unit tests:
Running test test-crypto-tlscredsx509
** (tests/test-crypto-tlscredsx509:9999): CRITICAL **: 12:56:35.157:

Failed

Quoted 2 lines
Quoted 2 lines

to sign certificate ASN1 parser: Value is not valid. ERROR test-crypto-tlscredsx509 - Bail out! FATAL-CRITICAL: Failed to

sign

Quoted 5 lines
Quoted 5 lines

certificate ASN1 parser: Value is not valid.
gmake: *** [Makefile.mtest:576: run-test-70] Error 1
gmake: *** Waiting for unfinished jobs....
Running test test-crypto-tlssession
** (tests/test-crypto-tlssession:10002): CRITICAL **: 12:56:35.288:

Failed

Quoted 2 lines
Quoted 2 lines

to sign certificate ASN1 parser: Value is not valid. ERROR test-crypto-tlssession - Bail out! FATAL-CRITICAL: Failed to

sign

Quoted 2 lines
Quoted 2 lines

certificate ASN1 parser: Value is not valid.
That's totally unrelated to my change. Was it failing before? What

environment was it failing in because it all seemed to work for me...

Quoted 2 lines

It's been a while since I last ran "make vm-build-freebsd", so I can't

really tell whether the problem was already there before ... when I now try to run it without your patch, it fails for me, too, but rather due to FreeBSD 12.1 being out of service instead.

Quoted 6 lines
Quoted 6 lines

I guess it's the same problem as:

   https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html
   <https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html

   ... so this would require a bug fix in the libtasn of FreeBSD first?

See:

Quoted 4 lines
Quoted 3 lines
   https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
   <https://gitlab.com/gnutls/libtasn1/-/merge_requests/71>

Is this on the host that built qemu, or inside the VM or where exactly?

Quoted 8 lines
Quoted 1 line

It's inside the VM ... I assume the libtasn there has the same bug as

the one on macOS?

Quoted 1 line

The gnutls failures on macOS and FreeBSD (with clang as main compiler) won’t happen only if libtasn1 from master is used. Otherwise libtasn1 has to be compiled with -O1/-O0.

Forgive my ignorance...

Does this come from a submodule? From something I've built and installed on my FreeBSD host? Or something that's installed into the FreeBSD guest?

Warner

Quoted 5 lines

Отправлено с iPhone

Quoted 2 lines

Thomas

#9 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

Quoted 76 lines · Warner Losh
Quoted 62 lines · Roman Bolshakov
Quoted 5 lines

8 марта 2021 г., в 18:41, Thomas Huth <[email protected]> написал(а):

Quoted 1 line · Warner Losh

On Mon, Mar 8, 2021 at 6:30 AM Thomas Huth <[email protected] <mailto:

Quoted 2 lines · [email protected]>> wrote:
Quoted 2 lines · Warner Losh
Quoted 1 line

FreeBSD 12.1 has reached end of life. Use 12.2 instead so that

FreeBSD's

Quoted 1 line
Quoted 1 line
Quoted 1 line

project's packages will work. Update which timezone to pick.

Work

Quoted 2 lines
Quoted 2 lines

around a QEMU

Quoted 1 line

bug that incorrectly raises an exception on a CRC32 instruction

with

Quoted 3 lines
Quoted 3 lines

the FPU

Quoted 2 lines

disabled. The qemu bug is described here:

https://www.mail-archive.com/[email protected]/msg784158.html

Quoted 3 lines
Quoted 3 lines
   <https://www.mail-archive.com/[email protected]/msg784158.html>
    >
    > Signed-off-by: Warner Losh <[email protected] <mailto:

[email protected]>>

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
---
  tests/vm/freebsd | 14 +++++++++-----
  1 file changed, 9 insertions(+), 5 deletions(-)

I gave this a try, but it's currently failing in the unit tests:
Running test test-crypto-tlscredsx509
** (tests/test-crypto-tlscredsx509:9999): CRITICAL **:

12:56:35.157: Failed

Quoted 2 lines
Quoted 2 lines

to sign certificate ASN1 parser: Value is not valid. ERROR test-crypto-tlscredsx509 - Bail out! FATAL-CRITICAL: Failed

to sign

Quoted 5 lines
Quoted 5 lines

certificate ASN1 parser: Value is not valid.
gmake: *** [Makefile.mtest:576: run-test-70] Error 1
gmake: *** Waiting for unfinished jobs....
Running test test-crypto-tlssession
** (tests/test-crypto-tlssession:10002): CRITICAL **: 12:56:35.288:

Failed

Quoted 2 lines
Quoted 2 lines

to sign certificate ASN1 parser: Value is not valid. ERROR test-crypto-tlssession - Bail out! FATAL-CRITICAL: Failed to

sign

Quoted 2 lines
Quoted 2 lines

certificate ASN1 parser: Value is not valid.
That's totally unrelated to my change. Was it failing before? What

environment was it failing in because it all seemed to work for me...

Quoted 2 lines

It's been a while since I last ran "make vm-build-freebsd", so I can't

really tell whether the problem was already there before ... when I now try to run it without your patch, it fails for me, too, but rather due to FreeBSD 12.1 being out of service instead.

Quoted 4 lines
Quoted 4 lines
   I guess it's the same problem as:
   https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html
   <

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html>

Quoted 1 line
Quoted 1 line

... so this would require a bug fix in the libtasn of FreeBSD

first? See:

Quoted 3 lines
Quoted 3 lines
   https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
   <https://gitlab.com/gnutls/libtasn1/-/merge_requests/71>

Is this on the host that built qemu, or inside the VM or where

exactly?

Quoted 1 line
Quoted 8 lines
Quoted 1 line

It's inside the VM ... I assume the libtasn there has the same bug as

the one on macOS?

Quoted 1 line

The gnutls failures on macOS and FreeBSD (with clang as main compiler) won’t happen only if libtasn1 from master is used. Otherwise libtasn1 has to be compiled with -O1/-O0.

Quoted 5 lines

Forgive my ignorance...

Does this come from a submodule? From something I've built and installed on my FreeBSD host? Or something that's installed into the FreeBSD guest

ah, it's inside the guest.

Warner

#10 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

Quoted 91 lines · Warner Losh

On Mon, Mar 8, 2021 at 12:51 PM Warner Losh <[email protected] <mailto:[email protected]>> wrote:

On Mon, Mar 8, 2021 at 8:46 AM Roman Bolshakov <[email protected] <mailto:[email protected]>> wrote:

> 8 марта 2021 г., в 18:41, Thomas Huth <[email protected]
<mailto:[email protected]>> написал(а):
>
> On 08/03/2021 16.26, Warner Losh wrote:
>> On Mon, Mar 8, 2021 at 6:30 AM Thomas Huth <[email protected]
<mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>> wrote:
>>    On 07/03/2021 16.56, Warner Losh wrote:
>>     > FreeBSD 12.1 has reached end of life. Use 12.2 instead so
that FreeBSD's
>>     > project's packages will work.  Update which timezone to
pick. Work
>>    around a QEMU
>>     > bug that incorrectly raises an exception on a CRC32
instruction with
>>    the FPU
>>     > disabled.  The qemu bug is described here:
>>     >
https://www.mail-archive.com/[email protected]/msg784158.html
<https://www.mail-archive.com/[email protected]/msg784158.html>
>>
<https://www.mail-archive.com/[email protected]/msg784158.html
<https://www.mail-archive.com/[email protected]/msg784158.html>>
>>     >
>>     > Signed-off-by: Warner Losh <[email protected]
<mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>>
>>     >
>>     > ---
>>     >   tests/vm/freebsd | 14 +++++++++-----
>>     >   1 file changed, 9 insertions(+), 5 deletions(-) >>    I gave this a try, but it's currently failing in the unit tests:
>>    Running test test-crypto-tlscredsx509
>>    ** (tests/test-crypto-tlscredsx509:9999): CRITICAL **:
12:56:35.157: Failed
>>    to sign certificate ASN1 parser: Value is not valid. >>    ERROR test-crypto-tlscredsx509 - Bail out! FATAL-CRITICAL:
Failed to sign
>>    certificate ASN1 parser: Value is not valid.
>>    gmake: *** [Makefile.mtest:576: run-test-70] Error 1 >>    gmake: *** Waiting for unfinished jobs....
>>    Running test test-crypto-tlssession
>>    ** (tests/test-crypto-tlssession:10002): CRITICAL **:
12:56:35.288: Failed
>>    to sign certificate ASN1 parser: Value is not valid. >>    ERROR test-crypto-tlssession - Bail out! FATAL-CRITICAL:
Failed to sign
>>    certificate ASN1 parser: Value is not valid.
>> That's totally unrelated to my change. Was it failing before?
What environment was it failing in because it all seemed to work for me...
>
> It's been a while since I last ran "make vm-build-freebsd", so I
can't really tell whether the problem was already there before ... when I now try to run it without your patch, it fails for me, too, but rather due to FreeBSD 12.1 being out of service instead.
>
>>    I guess it's the same problem as:
>>
https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html
<https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html>
>>
<https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html
<https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html>>
>>    ... so this would require a bug fix in the libtasn of FreeBSD
first? See:
>> https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
<https://gitlab.com/gnutls/libtasn1/-/merge_requests/71>
>>    <https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
<https://gitlab.com/gnutls/libtasn1/-/merge_requests/71>>
>>  Is this on the host that built qemu, or inside the VM or where
exactly?
>
> It's inside the VM ... I assume the libtasn there has the same
bug as the one on macOS?
>

The gnutls failures on macOS and FreeBSD (with clang as main compiler) won’t happen only if libtasn1 from master is used. Otherwise libtasn1 has to be compiled with -O1/-O0.

Quoted 7 lines

Forgive my ignorance...

Does this come from a submodule? From something I've built and installed on my FreeBSD host? Or something that's installed into the FreeBSD guest

ah, it's inside the guest.

Yes, IIUC it's the pre-installed libtasn1 in the guest, and the problem likely occurs just now since the clang that has been used to compile the library has been updated, too?

Anyway, can you reproduce the issue? If so, could you please file a bug ticket against libtasn1 there, so that it gets fixed? (sorry, I don't have any clue about the FreeBSD process here)

Thomas

#11 lore raw

Re: [PATCH v2] FreeBSD: Upgrade to 12.2 release

Quoted 97 lines · Thomas Huth
Quoted 96 lines · Warner Losh

On Mon, Mar 8, 2021 at 12:51 PM Warner Losh <[email protected] <mailto:[email protected]>> wrote:

    On Mon, Mar 8, 2021 at 8:46 AM Roman Bolshakov <[email protected] <mailto:[email protected]>> wrote:

         > 8 марта 2021 г., в 18:41, Thomas Huth <[email protected] <mailto:[email protected]>> написал(а):
         >
         > On 08/03/2021 16.26, Warner Losh wrote:
         >> On Mon, Mar 8, 2021 at 6:30 AM Thomas Huth <[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>> wrote:
         >>    On 07/03/2021 16.56, Warner Losh wrote:
         >>     > FreeBSD 12.1 has reached end of life. Use 12.2 instead so that FreeBSD's
         >>     > project's packages will work.  Update which timezone to pick. Work
         >>    around a QEMU
         >>     > bug that incorrectly raises an exception on a CRC32 instruction with
         >>    the FPU
         >>     > disabled.  The qemu bug is described here:
         >>     >
        https://www.mail-archive.com/[email protected]/msg784158.html
        <https://www.mail-archive.com/[email protected]/msg784158.html>
         >> <https://www.mail-archive.com/[email protected]/msg784158.html
        <https://www.mail-archive.com/[email protected]/msg784158.html>>
         >>     >
         >>     > Signed-off-by: Warner Losh <[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>> >>     >
         >>     > ---
         >>     >   tests/vm/freebsd | 14 +++++++++-----
         >>     >   1 file changed, 9 insertions(+), 5 deletions(-) >>    I gave this a try, but it's currently failing in the unit tests:
         >>    Running test test-crypto-tlscredsx509
         >>    ** (tests/test-crypto-tlscredsx509:9999): CRITICAL **:
        12:56:35.157: Failed
         >>    to sign certificate ASN1 parser: Value is not valid. >>    ERROR test-crypto-tlscredsx509 - Bail out! FATAL-CRITICAL:
        Failed to sign
         >>    certificate ASN1 parser: Value is not valid.
         >>    gmake: *** [Makefile.mtest:576: run-test-70] Error 1 >>    gmake: *** Waiting for unfinished jobs....
         >>    Running test test-crypto-tlssession
         >>    ** (tests/test-crypto-tlssession:10002): CRITICAL **:
        12:56:35.288: Failed
         >>    to sign certificate ASN1 parser: Value is not valid. >>    ERROR test-crypto-tlssession - Bail out! FATAL-CRITICAL:
        Failed to sign
         >>    certificate ASN1 parser: Value is not valid.
         >> That's totally unrelated to my change. Was it failing before? What environment was it failing in because it all seemed to work for me...
         >
         > It's been a while since I last ran "make vm-build-freebsd", so I can't really tell whether the problem was already there before ... when I now try to run it without your patch, it fails for me, too, but rather due to FreeBSD 12.1 being out of service instead. >
         >>    I guess it's the same problem as:
         >>
        https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html
        <https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html>
         >> <https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html

<https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg06750.html>>
         >>    ... so this would require a bug fix in the libtasn of FreeBSD first? See:
         >> https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
        <https://gitlab.com/gnutls/libtasn1/-/merge_requests/71>
         >>    <https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
        <https://gitlab.com/gnutls/libtasn1/-/merge_requests/71>>
         >>  Is this on the host that built qemu, or inside the VM or where exactly?
         >
         > It's inside the VM ... I assume the libtasn there has the same bug as the one on macOS?
         >

        The gnutls failures on macOS and FreeBSD (with clang as main compiler) won’t happen only if libtasn1 from master is used. Otherwise libtasn1 has to be compiled with -O1/-O0.

    Forgive my ignorance...

    Does this come from a submodule? From something I've built and installed on my FreeBSD host? Or something that's installed into the FreeBSD guest

Quoted 5 lines
Quoted 1 line

ah, it's inside the guest.

Yes, IIUC it's the pre-installed libtasn1 in the guest, and the problem likely occurs just now since the clang that has been used to compile the library has been updated, too?

Anyway, can you reproduce the issue? If so, could you please file a bug ticket against libtasn1 there, so that it gets fixed? (sorry, I don't have any clue about the FreeBSD process here)

For the time being, I suggest we add this hunk to your patch here to get the VM-build going again:

tests/vm/freebsd +3 -1
@@ -46,7 +46,9 @@ class FreeBSDVM(basevm.BaseVM):
         "gettext",
 
         # libs: crypto
-        "gnutls",
+        # TODO: Enable gnutls again once FreeBSD's libtasn1 got fixed
+        # See: https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
+        # "gnutls",
 
         # libs: images
         "jpeg-turbo",

Thomas

#12 lore raw
In reply to Warner Losh
Quoted 15 lines · Warner Losh

The FreeBSD project has a number of enhancements to bsd-user. Add myself as maintainer and Kyle Evans as a reviewer. Also add our github repo.

---
  MAINTAINERS | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644

MAINTAINERS F: thunk.c · line 2904

Quoted 10 lines
MAINTAINERS +4 -1
@@ -2896,9 +2896,12 @@ F: thunk.c
  F: accel/tcg/user-exec*.c
 
  BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
  F: bsd-user/
  F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user bsd-user-rebase-3.1

BSD is not really my home turf, but since nobody else picked this up and I plan to send a pull request for a bunch of patches anyway this week, I can also put it into my queue.

Thomas

#13 lore raw
Quoted 19 lines · Thomas Huth
Quoted 17 lines · Warner Losh

The FreeBSD project has a number of enhancements to bsd-user. Add myself as maintainer and Kyle Evans as a reviewer. Also add our github repo.

---
  MAINTAINERS | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
  F: accel/tcg/user-exec*.c
 
Quoted 12 lines

MAINTAINERS F: thunk.c · line 2904

Quoted 8 lines
MAINTAINERS +4 -1
  BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
  F: bsd-user/
  F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user bsd-user-rebase-3.1

BSD is not really my home turf, but since nobody else picked this up and I plan to send a pull request for a bunch of patches anyway this week, I can also put it into my queue.

Fine with me. (The v1 was in my to-review queue, but I'm currently running somewhat behind on processing patches.)

-- PMM

#14 lore raw

Hi Peter,

+Markus/Paolo/Laurent/Richard

Quoted 33 lines · Peter Maydell
Quoted 19 lines · Thomas Huth
Quoted 17 lines · Warner Losh

The FreeBSD project has a number of enhancements to bsd-user. Add myself as maintainer and Kyle Evans as a reviewer. Also add our github repo.

---
  MAINTAINERS | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
  F: accel/tcg/user-exec*.c
 
Quoted 12 lines

MAINTAINERS F: thunk.c · line 2904

Quoted 8 lines
MAINTAINERS +4 -1
  BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
  F: bsd-user/
  F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user bsd-user-rebase-3.1

BSD is not really my home turf, but since nobody else picked this up and I plan to send a pull request for a bunch of patches anyway this week, I can also put it into my queue.

Quoted 2 lines

Fine with me. (The v1 was in my to-review queue, but I'm currently running somewhat behind on processing patches.)

This is a patch for mainstream QEMU, I'm having hard time understanding the point of it. This is some official way to say that BSD-user is not maintained in mainstream but has to be used in the referred fork which is way different that mainstream...

I'd rather wait for more mainstream contributions from Warner and Kyle, or blow the current orphan/dead code and import bsd-user-rebase-3.1 adding the maintainer entries along, but certainly not mark this dead code as maintained.

Please convince me why I'm wrong, because I'd prefer NAck this patch...

Regards,

Phil.

#15 lore raw
Quoted 48 lines · Philippe Mathieu-Daudé

Hi Peter,

+Markus/Paolo/Laurent/Richard

Quoted 33 lines · Peter Maydell
Quoted 19 lines · Thomas Huth
Quoted 17 lines · Warner Losh

The FreeBSD project has a number of enhancements to bsd-user. Add myself as maintainer and Kyle Evans as a reviewer. Also add our github repo.

---
  MAINTAINERS | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
  F: accel/tcg/user-exec*.c
 
Quoted 12 lines

MAINTAINERS F: thunk.c · line 2904

Quoted 8 lines
MAINTAINERS +4 -1
  BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
  F: bsd-user/
  F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user bsd-user-rebase-3.1

BSD is not really my home turf, but since nobody else picked this up and I plan to send a pull request for a bunch of patches anyway this week, I can also put it into my queue.

Quoted 2 lines

Fine with me. (The v1 was in my to-review queue, but I'm currently running somewhat behind on processing patches.)

This is a patch for mainstream QEMU, I'm having hard time understanding the point of it. This is some official way to say that BSD-user is not maintained in mainstream but has to be used in the referred fork which is way different that mainstream...

Quoted 4 lines

I'd rather wait for more mainstream contributions from Warner and Kyle, or blow the current orphan/dead code and import bsd-user-rebase-3.1 adding the maintainer entries along, but certainly not mark this dead code as maintained.

I guess it depends what the intention is here. If the idea is that now Warner and Kyle will look at patches that come in to the existing bsd-user/ code in mainline, then that counts as maintained. If they don't want to do that, then maybe we should wait until we actually have something in mainline that they want to maintain.

I think I agree with you about not referring to the out-of-tree 3.1-based fork; that's not relevant to upstream.

thanks
-- PMM

#16 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 47 lines · Philippe Mathieu-Daudé

Hi Peter,

+Markus/Paolo/Laurent/Richard

Quoted 33 lines · Peter Maydell
Quoted 19 lines · Thomas Huth
Quoted 17 lines · Warner Losh

The FreeBSD project has a number of enhancements to bsd-user. Add myself as maintainer and Kyle Evans as a reviewer. Also add our github repo.

---
   MAINTAINERS | 5 ++++-
   1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
   F: accel/tcg/user-exec*.c
 
Quoted 12 lines

MAINTAINERS F: thunk.c · line 2904

Quoted 8 lines
MAINTAINERS +4 -1
   BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
   F: bsd-user/
   F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user bsd-user-rebase-3.1

BSD is not really my home turf, but since nobody else picked this up and I plan to send a pull request for a bunch of patches anyway this week, I can also put it into my queue.

Quoted 2 lines

Fine with me. (The v1 was in my to-review queue, but I'm currently running somewhat behind on processing patches.)

This is a patch for mainstream QEMU, I'm having hard time understanding the point of it. This is some official way to say that BSD-user is not maintained in mainstream but has to be used in the referred fork which is way different that mainstream...

Quoted 7 lines

I'd rather wait for more mainstream contributions from Warner and Kyle, or blow the current orphan/dead code and import bsd-user-rebase-3.1 adding the maintainer entries along, but certainly not mark this dead code as maintained.

Please convince me why I'm wrong, because I'd prefer NAck this patch...

The idea has been discussed here:

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg01399.html

So this is not about declaring that bsd-user is maintained in a different repository, but about giving Warner et al. a chance to finally upstream their work.

Thomas

#17 lore raw
Quoted 5 lines · Thomas Huth

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg01399.html

So this is not about declaring that bsd-user is maintained in a different repository, but about giving Warner et al. a chance to finally upstream their work.

Thanks; I'd forgotten (or had not read that email carefully enough the first time around to realize) that the current plan for bsd-user is improve-in-place rather than delete-and-restart. (I'm supportive of whatever Warner and Kyle think is the best approach, in any case.)

thanks
-- PMM

#18 lore raw
In reply to Thomas Huth
Quoted 56 lines · Thomas Huth
Quoted 47 lines · Philippe Mathieu-Daudé

Hi Peter,

+Markus/Paolo/Laurent/Richard

Quoted 33 lines · Peter Maydell
Quoted 19 lines · Thomas Huth
Quoted 17 lines · Warner Losh

The FreeBSD project has a number of enhancements to bsd-user. Add myself as maintainer and Kyle Evans as a reviewer. Also add our github repo.

---
   MAINTAINERS | 5 ++++-
   1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
   F: accel/tcg/user-exec*.c
 
Quoted 12 lines

MAINTAINERS F: thunk.c · line 2904

Quoted 8 lines
MAINTAINERS +4 -1
   BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
   F: bsd-user/
   F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user bsd-user-rebase-3.1

BSD is not really my home turf, but since nobody else picked this up and I plan to send a pull request for a bunch of patches anyway this week, I can also put it into my queue.

Quoted 2 lines

Fine with me. (The v1 was in my to-review queue, but I'm currently running somewhat behind on processing patches.)

This is a patch for mainstream QEMU, I'm having hard time understanding the point of it. This is some official way to say that BSD-user is not maintained in mainstream but has to be used in the referred fork which is way different that mainstream...

Quoted 7 lines

I'd rather wait for more mainstream contributions from Warner and Kyle, or blow the current orphan/dead code and import bsd-user-rebase-3.1 adding the maintainer entries along, but certainly not mark this dead code as maintained.

Please convince me why I'm wrong, because I'd prefer NAck this patch...

Quoted 7 lines

The idea has been discussed here:

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg01399.html

So this is not about declaring that bsd-user is maintained in a different repository, but about giving Warner et al. a chance to finally upstream their work.

Yep, I think this change in MAINTAINERS file is primarily about signalling intent for future.

Marking the subsystem as maintained isn't saying the current code is great, just that there is someone committed to improving it hereafter.

If we want to warn people that the current impl isn't great, that's goes back to the topic of having a way to classify QEMU features into quality levels Tier 1/2/3.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#19 lore raw
Quoted 65 lines · Daniel P. Berrangé
Quoted 56 lines · Thomas Huth
Quoted 47 lines · Philippe Mathieu-Daudé

Hi Peter,

+Markus/Paolo/Laurent/Richard

Quoted 33 lines · Peter Maydell
Quoted 19 lines · Thomas Huth
Quoted 17 lines · Warner Losh

The FreeBSD project has a number of enhancements to bsd-user. Add myself as maintainer and Kyle Evans as a reviewer. Also add our github repo.

---
   MAINTAINERS | 5 ++++-
   1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
   F: accel/tcg/user-exec*.c
 
Quoted 12 lines

MAINTAINERS F: thunk.c · line 2904

Quoted 8 lines
MAINTAINERS +4 -1
   BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
   F: bsd-user/
   F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user bsd-user-rebase-3.1

BSD is not really my home turf, but since nobody else picked this up and I plan to send a pull request for a bunch of patches anyway this week, I can also put it into my queue.

Quoted 2 lines

Fine with me. (The v1 was in my to-review queue, but I'm currently running somewhat behind on processing patches.)

This is a patch for mainstream QEMU, I'm having hard time understanding the point of it. This is some official way to say that BSD-user is not maintained in mainstream but has to be used in the referred fork which is way different that mainstream...

Quoted 7 lines

I'd rather wait for more mainstream contributions from Warner and Kyle, or blow the current orphan/dead code and import bsd-user-rebase-3.1 adding the maintainer entries along, but certainly not mark this dead code as maintained.

Please convince me why I'm wrong, because I'd prefer NAck this patch...

Quoted 7 lines

The idea has been discussed here:

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg01399.html

So this is not about declaring that bsd-user is maintained in a different repository, but about giving Warner et al. a chance to finally upstream their work.

Quoted 5 lines

Yep, I think this change in MAINTAINERS file is primarily about signalling intent for future.

Marking the subsystem as maintained isn't saying the current code is great, just that there is someone committed to improving it hereafter.

OK, thank Thomas / Daniel for explaining and referring to the "BSD-user plans" (which I didn't notice earlier).

Warner, what about mentioning your plans here in this patch?

Resumed ideally, else a simple link to the thread.

Quoted 3 lines

If we want to warn people that the current impl isn't great, that's goes back to the topic of having a way to classify QEMU features into quality levels Tier 1/2/3.

That indeed sounds good w.r.t. contributors / users expectations.

I suppose 1=hw_accel/security, 2=tested, 3=rest?

Not a single clue how to do that although.

#20 lore raw
Quoted 67 lines · Philippe Mathieu-Daudé
Quoted 11 lines · Daniel P. Berrangé
Quoted 10 lines · Thomas Huth
Quoted 9 lines · Philippe Mathieu-Daudé

Hi Peter,

+Markus/Paolo/Laurent/Richard

Quoted 4 lines · Peter Maydell
Quoted 3 lines · Thomas Huth
Quoted 1 line · Warner Losh

The FreeBSD project has a number of enhancements to bsd-user. Add

myself

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

as maintainer and Kyle Evans as a reviewer. Also add our github

repo.

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
---
   MAINTAINERS | 5 ++++-
   1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
   F: accel/tcg/user-exec*.c
 
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

MAINTAINERS F: thunk.c · line 2904

Quoted 8 lines
MAINTAINERS +4 -1
   BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
   F: bsd-user/
   F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user

bsd-user-rebase-3.1

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

BSD is not really my home turf, but since nobody else picked this up

and I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

plan to send a pull request for a bunch of patches anyway this week,

I can

Quoted 23 lines
Quoted 23 lines
Quoted 11 lines
Quoted 4 lines
Quoted 1 line

also put it into my queue.

Fine with me. (The v1 was in my to-review queue, but I'm currently running somewhat behind on processing patches.)

This is a patch for mainstream QEMU, I'm having hard time understanding the point of it. This is some official way to say that BSD-user is not maintained in mainstream but has to be used in the referred fork which is way different that mainstream...

Quoted 7 lines

I'd rather wait for more mainstream contributions from Warner and Kyle, or blow the current orphan/dead code and import bsd-user-rebase-3.1 adding the maintainer entries along, but certainly not mark this dead code as maintained.

Please convince me why I'm wrong, because I'd prefer NAck this patch...

The idea has been discussed here:

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg01399.html

Quoted 9 lines
Quoted 1 line
Quoted 1 line

So this is not about declaring that bsd-user is maintained in a

different

Quoted 4 lines
Quoted 2 lines

repository, but about giving Warner et al. a chance to finally upstream their work.

Yep, I think this change in MAINTAINERS file is primarily about

signalling

Quoted 1 line

intent for future

Yes. Just so. We have the older fork that we're trying to port forward. If
people have changes as we do that, it sure would be nice to have them go through us rather than create more conflict with the main tree. I don't need to have a new set of conflicts with main because someone thought that it would be a good idea to move the space before or after the '(' or after in a bunch of files. It's just extra work if I have to do it as part of the merging. Better that goes into the top of our queue so it's managed and easy and a click on github than another half hour I have to spend sorting that out when I'd rather be sorting out the substantial change that go on upstream in other areas that legitimately do make things much better.

We talked about all this in the above thread, I thought, and I thought it was all settled, so I was rather surprised to wake up to this thread this morning.

Quoted 9 lines
Quoted 1 line

Marking the subsystem as maintained isn't saying the current code is

great,

Quoted 1 line

just that there is someone committed to improving it hereafter.

OK, thank Thomas / Daniel for explaining and referring to the "BSD-user plans" (which I didn't notice earlier).

Warner, what about mentioning your plans here in this patch?

Where is there room in the MAINTAINERS file for that? How would you like me to do that?

Quoted 2 lines

Resumed ideally, else a simple link to the thread.

I'm not sure what you are asking here.

Quoted 10 lines
Quoted 3 lines

If we want to warn people that the current impl isn't great, that's goes back to the topic of having a way to classify QEMU features into quality levels Tier 1/2/3.

That indeed sounds good w.r.t. contributors / users expectations.

I suppose 1=hw_accel/security, 2=tested, 3=rest?

Not a single clue how to do that although.

Yup. Why invent something new just to make it harder for me to get things into the tree? There's already the tiered maintainer stuff, and I'm trying to get our stuff that turn the current bsd-user that's crap into something that's quite solid.

The plans are to get our changes upstream so there's no daylight between what we do and what's upstream, except for the newest system calls that are being implemented just after they enter FreeBSD. We have a bunch of changes that make bsd-user able to build tens of thousands of packages more or less natively (the setup is a hybrid environment where the compilers are cross compilers, but everything built is native and run in emulation).

I tried getting one big omnibus patch together, but qemu's head is moving too fast, so those plans failed to ever reach the tip of the tree. In discussions referenced in this thread, people suggested I submit changes to the MAINTAINER stuff as a signal moving forward. I've submitted other patches as well to get things going (those are already in). I plan on submitting more, but wanted to get the simple stuff ironed out first. QEMU's workflow is utterly alien to me, to be honest, but I wanted to be a good citizen and learn on the basics before submitting things that were harder to do and/or explain.

Anyway, I'm trying to learn the local customs here. I'm unsure what the next step here is. Can someone explicitly tell me that? I thought all these preliminaries were already sorted out.

Warner

#21 lore raw
Quoted 91 lines · Warner Losh
Quoted 67 lines · Philippe Mathieu-Daudé
Quoted 11 lines · Daniel P. Berrangé
Quoted 10 lines · Thomas Huth
Quoted 9 lines · Philippe Mathieu-Daudé

Hi Peter,

+Markus/Paolo/Laurent/Richard

Quoted 4 lines · Peter Maydell
Quoted 3 lines · Thomas Huth
Quoted 1 line · Warner Losh

The FreeBSD project has a number of enhancements to bsd-user. Add

myself

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

as maintainer and Kyle Evans as a reviewer. Also add our github

repo.

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
---
   MAINTAINERS | 5 ++++-
   1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
   F: accel/tcg/user-exec*.c
 
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

MAINTAINERS F: thunk.c · line 2904

Quoted 8 lines
MAINTAINERS +4 -1
   BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
   F: bsd-user/
   F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user

bsd-user-rebase-3.1

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

BSD is not really my home turf, but since nobody else picked this up

and I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

plan to send a pull request for a bunch of patches anyway this week,

I can

Quoted 23 lines
Quoted 23 lines
Quoted 11 lines
Quoted 4 lines
Quoted 1 line

also put it into my queue.

Fine with me. (The v1 was in my to-review queue, but I'm currently running somewhat behind on processing patches.)

This is a patch for mainstream QEMU, I'm having hard time understanding the point of it. This is some official way to say that BSD-user is not maintained in mainstream but has to be used in the referred fork which is way different that mainstream...

Quoted 7 lines

I'd rather wait for more mainstream contributions from Warner and Kyle, or blow the current orphan/dead code and import bsd-user-rebase-3.1 adding the maintainer entries along, but certainly not mark this dead code as maintained.

Please convince me why I'm wrong, because I'd prefer NAck this patch...

The idea has been discussed here:

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg01399.html

Quoted 9 lines
Quoted 1 line
Quoted 1 line

So this is not about declaring that bsd-user is maintained in a

different

Quoted 4 lines
Quoted 2 lines

repository, but about giving Warner et al. a chance to finally upstream their work.

Yep, I think this change in MAINTAINERS file is primarily about

signalling

Quoted 1 line

intent for future

Yes. Just so. We have the older fork that we're trying to port forward. If
people have changes as we do that, it sure would be nice to have them go through us rather than create more conflict with the main tree. I don't need to have a new set of conflicts with main because someone thought that it would be a good idea to move the space before or after the '(' or after in a bunch of files. It's just extra work if I have to do it as part of the merging. Better that goes into the top of our queue so it's managed and easy and a click on github than another half hour I have to spend sorting that out when I'd rather be sorting out the substantial change that go on upstream in other areas that legitimately do make things much better.

Quoted 3 lines

We talked about all this in the above thread, I thought, and I thought it was all settled, so I was rather surprised to wake up to this thread this morning.

From my POV, nothing has changed - I think the MAINTAINERS change is reasonable.

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

Marking the subsystem as maintained isn't saying the current code is

great,

Quoted 1 line

just that there is someone committed to improving it hereafter.

Quoted 8 lines
Quoted 5 lines

OK, thank Thomas / Daniel for explaining and referring to the "BSD-user plans" (which I didn't notice earlier).

Warner, what about mentioning your plans here in this patch?

Where is there room in the MAINTAINERS file for that? How would you like me to do that?

I think he was just referring to mentioning the intention in the commit message. The MAINTAINERS file isn't a suitable place for describing plans.

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines

If we want to warn people that the current impl isn't great, that's goes back to the topic of having a way to classify QEMU features into quality levels Tier 1/2/3.

That indeed sounds good w.r.t. contributors / users expectations.

I suppose 1=hw_accel/security, 2=tested, 3=rest?

Quoted 7 lines
Quoted 2 lines

Not a single clue how to do that although.

Yup. Why invent something new just to make it harder for me to get things into the tree? There's already the tiered maintainer stuff, and I'm trying to get our stuff that turn the current bsd-user that's crap into something that's quite solid.

...snip...

You don't have to worry about this - it is tangential to your patch here - a problem facing QEMU as a whole, not BSD specific, and there's no immediate answer here either.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#22 lore raw
Quoted 120 lines · Daniel P. Berrangé
Quoted 13 lines · Warner Losh

On Mon, Mar 8, 2021 at 6:14 AM Philippe Mathieu-Daudé <[email protected]

Quoted 9 lines · wrote:
Quoted 8 lines · Daniel P. Berrangé
Quoted 7 lines · Thomas Huth
Quoted 6 lines · Philippe Mathieu-Daudé

Hi Peter,

+Markus/Paolo/Laurent/Richard

Quoted 1 line · Peter Maydell

On Mon, 8 Mar 2021 at 10:09, Thomas Huth <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines · Warner Losh
Quoted 1 line

The FreeBSD project has a number of enhancements to bsd-user.

Add

Quoted 28 lines
Quoted 28 lines

myself

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

as maintainer and Kyle Evans as a reviewer. Also add our github

repo.

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
---
   MAINTAINERS | 5 ++++-
   1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +0 -0
index 26c9454823..ec0e935038 100644
@@ -2896,9 +2896,12 @@ F: thunk.c
   F: accel/tcg/user-exec*.c
 
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

MAINTAINERS F: thunk.c · line 2904

Quoted 8 lines
MAINTAINERS +4 -1
   BSD user
-S: Orphan
+M: Warner Losh <[email protected]>
+R: Kyle Evans <[email protected]>
+S: Maintained
   F: bsd-user/
   F: default-configs/targets/*-bsd-user.mak
+T: git https://github.com/qemu-bsd-user/qemu-bsd-user

bsd-user-rebase-3.1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

BSD is not really my home turf, but since nobody else picked

this up

Quoted 2 lines
Quoted 2 lines

and I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

plan to send a pull request for a bunch of patches anyway this

week,

Quoted 20 lines
Quoted 20 lines

I can

Quoted 19 lines
Quoted 19 lines
Quoted 18 lines
Quoted 4 lines
Quoted 1 line

also put it into my queue.

Fine with me. (The v1 was in my to-review queue, but I'm currently running somewhat behind on processing patches.)

This is a patch for mainstream QEMU, I'm having hard time understanding the point of it. This is some official way to say that BSD-user is not maintained in mainstream but has to be used in the referred fork which is way different that mainstream...

I'd rather wait for more mainstream contributions from Warner and Kyle, or blow the current orphan/dead code and import bsd-user-rebase-3.1 adding the maintainer entries along, but certainly not mark this dead code as maintained.

Please convince me why I'm wrong, because I'd prefer NAck this patch...

Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

The idea has been discussed here:

https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg01399.html

So this is not about declaring that bsd-user is maintained in a

different

Quoted 1 line
Quoted 1 line

repository, but about giving Warner et al. a chance to finally

upstream

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

their work.

Yep, I think this change in MAINTAINERS file is primarily about

signalling

Quoted 1 line

intent for future

Yes. Just so. We have the older fork that we're trying to port forward.

If

Quoted 3 lines

people have changes as we do that, it sure would be nice to have them go through us rather than create more conflict with the main tree. I don't need to have a new set of conflicts with main because someone thought

that

Quoted 1 line

it would be a good idea to move the space before or after the '(' or

after

Quoted 1 line

in a bunch of files. It's just extra work if I have to do it as part of

the

Quoted 8 lines

merging. Better that goes into the top of our queue so it's managed and easy and a click on github than another half hour I have to spend sorting that out when I'd rather be sorting out the substantial change that go on upstream in other areas that legitimately do make things much better.

We talked about all this in the above thread, I thought, and I thought it was all settled, so I was rather surprised to wake up to this thread this morning.

From my POV, nothing has changed - I think the MAINTAINERS change is reasonable.

Quoted 10 lines
Quoted 9 lines
Quoted 1 line

Marking the subsystem as maintained isn't saying the current code is

great,

Quoted 1 line

just that there is someone committed to improving it hereafter.

OK, thank Thomas / Daniel for explaining and referring to the "BSD-user plans" (which I didn't notice earlier).

Warner, what about mentioning your plans here in this patch?

Quoted 8 lines
Quoted 1 line

Where is there room in the MAINTAINERS file for that? How would you like

me

Quoted 1 line

to do that?

I think he was just referring to mentioning the intention in the commit message. The MAINTAINERS file isn't a suitable place for describing plans.

Ah, that makes sense... I can do that and resend.

Quoted 18 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

If we want to warn people that the current impl isn't great, that's

goes

Quoted 1 line
Quoted 1 line
Quoted 1 line

back to the topic of having a way to classify QEMU features into

quality

Quoted 11 lines
Quoted 8 lines
Quoted 1 line

levels Tier 1/2/3.

That indeed sounds good w.r.t. contributors / users expectations.

I suppose 1=hw_accel/security, 2=tested, 3=rest?

Not a single clue how to do that although.

Yup. Why invent something new just to make it harder for me to get things into the tree? There's already the tiered maintainer stuff, and I'm

trying

Quoted 1 line

to get our stuff that turn the current bsd-user that's crap into

something

Quoted 9 lines
Quoted 1 line

that's quite solid.

...snip...

You don't have to worry about this - it is tangential to your patch here - a problem facing QEMU as a whole, not BSD specific, and there's no immediate answer here either.

Gotcha. I wasn't sure if there was something else I needed to do here or not.

Warner