All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2 v3] Configure script for Haiku
@ 2021-07-04 16:42 Richard Zak
  2021-07-04 17:10 ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Zak @ 2021-07-04 16:42 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Thomas Huth

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

Use system capstone, for which a port is maintained by Haiku. Disable TPM
which isn't supported.

Signed-off-by: Richard Zak <richard.j.zak@gmail.com>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index e799d908a3..c928071f69 100755
--- a/configure
+++ b/configure
@@ -358,6 +358,7 @@ oss_lib=""
 bsd="no"
 linux="no"
 solaris="no"
+haiku="no"
 profiler="no"
 cocoa="auto"
 softmmu="yes"
@@ -769,6 +770,8 @@ SunOS)
 ;;
 Haiku)
   haiku="yes"
+  tpm="no"
+  capstone="system"
   QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE $QEMU_CFLAGS"
 ;;
 Linux)
-- 
2.25.1

-- 
Regards,

Richard J. Zak
Professional Genius
PGP Key: https://keybase.io/rjzak/key.asc

[-- Attachment #2: Type: text/html, Size: 1319 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2 v3] Configure script for Haiku
  2021-07-04 16:42 [PATCH 1/2 v3] Configure script for Haiku Richard Zak
@ 2021-07-04 17:10 ` Peter Maydell
  2021-07-04 18:29   ` Richard Zak
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2021-07-04 17:10 UTC (permalink / raw)
  To: Richard Zak; +Cc: Thomas Huth, QEMU Developers

On Sun, 4 Jul 2021 at 17:44, Richard Zak <richard.j.zak@gmail.com> wrote:
>
> Use system capstone, for which a port is maintained by Haiku. Disable TPM which isn't supported.
>
> Signed-off-by: Richard Zak <richard.j.zak@gmail.com>
> ---
>  configure | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/configure b/configure
> index e799d908a3..c928071f69 100755
> --- a/configure
> +++ b/configure
> @@ -358,6 +358,7 @@ oss_lib=""
>  bsd="no"
>  linux="no"
>  solaris="no"
> +haiku="no"
>  profiler="no"
>  cocoa="auto"
>  softmmu="yes"
> @@ -769,6 +770,8 @@ SunOS)
>  ;;
>  Haiku)
>    haiku="yes"
> +  tpm="no"

If the autodetect for tpm doesn't get this right, we should fix
the autodetect.

As a general principle we prefer to avoid "do this specific thing
for this specific host OS" whenever we can, in favour of "test
whether we have whatever feature/function/library is required".

thanks
-- PMM


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2 v3] Configure script for Haiku
  2021-07-04 17:10 ` Peter Maydell
@ 2021-07-04 18:29   ` Richard Zak
  2021-07-05 19:21     ` Richard Zak
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Zak @ 2021-07-04 18:29 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Thomas Huth, QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

În dum., 4 iul. 2021 la 13:11, Peter Maydell <peter.maydell@linaro.org> a
scris:

> On Sun, 4 Jul 2021 at 17:44, Richard Zak <richard.j.zak@gmail.com> wrote:
> >
> > Use system capstone, for which a port is maintained by Haiku. Disable
> TPM which isn't supported.
> >
> > Signed-off-by: Richard Zak <richard.j.zak@gmail.com>
> > ---
> >  configure | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/configure b/configure
> > index e799d908a3..c928071f69 100755
> > --- a/configure
> > +++ b/configure
> > @@ -358,6 +358,7 @@ oss_lib=""
> >  bsd="no"
> >  linux="no"
> >  solaris="no"
> > +haiku="no"
> >  profiler="no"
> >  cocoa="auto"
> >  softmmu="yes"
> > @@ -769,6 +770,8 @@ SunOS)
> >  ;;
> >  Haiku)
> >    haiku="yes"
> > +  tpm="no"
>
> If the autodetect for tpm doesn't get this right, we should fix
> the autodetect.
>
> As a general principle we prefer to avoid "do this specific thing
> for this specific host OS" whenever we can, in favour of "test
> whether we have whatever feature/function/library is required".
>
> thanks
> -- PMM
>

Totally makes sense, and I'll be mindful of that. In this case, the
configure script is enabling TPM support on Haiku, but I don't think it
breaks anything, but I haven't tested it yet.

-- 
Regards,

Richard J. Zak
Professional Genius
PGP Key: https://keybase.io/rjzak/key.asc

[-- Attachment #2: Type: text/html, Size: 2392 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2 v3] Configure script for Haiku
  2021-07-04 18:29   ` Richard Zak
@ 2021-07-05 19:21     ` Richard Zak
  2021-07-06  6:35       ` Thomas Huth
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Zak @ 2021-07-05 19:21 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Thomas Huth, QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 2133 bytes --]

The configure script doesn't test for presence of TPM device or support. It
activates TPM support if not explicitly disabled, and disables TPM support
if explicitly enabled on Windows. With TPM support compiled in, it causes
an assertion failure on launch of qemu at util/async.c:669
qemu_set_current_aio_context() !my_aiocontext. I haven't yet figured out
why though, but disabling TPM might be best, and there's precedent for it
as it's disabled if compiling for Windows.

În dum., 4 iul. 2021 la 14:29, Richard Zak <richard.j.zak@gmail.com> a
scris:

>
> În dum., 4 iul. 2021 la 13:11, Peter Maydell <peter.maydell@linaro.org> a
> scris:
>
>> On Sun, 4 Jul 2021 at 17:44, Richard Zak <richard.j.zak@gmail.com> wrote:
>> >
>> > Use system capstone, for which a port is maintained by Haiku. Disable
>> TPM which isn't supported.
>> >
>> > Signed-off-by: Richard Zak <richard.j.zak@gmail.com>
>> > ---
>> >  configure | 3 +++
>> >  1 file changed, 3 insertions(+)
>> >
>> > diff --git a/configure b/configure
>> > index e799d908a3..c928071f69 100755
>> > --- a/configure
>> > +++ b/configure
>> > @@ -358,6 +358,7 @@ oss_lib=""
>> >  bsd="no"
>> >  linux="no"
>> >  solaris="no"
>> > +haiku="no"
>> >  profiler="no"
>> >  cocoa="auto"
>> >  softmmu="yes"
>> > @@ -769,6 +770,8 @@ SunOS)
>> >  ;;
>> >  Haiku)
>> >    haiku="yes"
>> > +  tpm="no"
>>
>> If the autodetect for tpm doesn't get this right, we should fix
>> the autodetect.
>>
>> As a general principle we prefer to avoid "do this specific thing
>> for this specific host OS" whenever we can, in favour of "test
>> whether we have whatever feature/function/library is required".
>>
>> thanks
>> -- PMM
>>
>
> Totally makes sense, and I'll be mindful of that. In this case, the
> configure script is enabling TPM support on Haiku, but I don't think it
> breaks anything, but I haven't tested it yet.
>
> --
> Regards,
>
> Richard J. Zak
> Professional Genius
> PGP Key: https://keybase.io/rjzak/key.asc
>


-- 
Regards,

Richard J. Zak
Professional Genius
PGP Key: https://keybase.io/rjzak/key.asc

[-- Attachment #2: Type: text/html, Size: 3579 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2 v3] Configure script for Haiku
  2021-07-05 19:21     ` Richard Zak
@ 2021-07-06  6:35       ` Thomas Huth
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2021-07-06  6:35 UTC (permalink / raw)
  To: Richard Zak, Peter Maydell; +Cc: QEMU Developers

On 05/07/2021 21.21, Richard Zak wrote:
> The configure script doesn't test for presence of TPM device or support. It 
> activates TPM support if not explicitly disabled, and disables TPM support 
> if explicitly enabled on Windows. With TPM support compiled in, it causes an 
> assertion failure on launch of qemu at util/async.c:669 
> qemu_set_current_aio_context() !my_aiocontext. I haven't yet figured out why 
> though, but disabling TPM might be best, and there's precedent for it as 
> it's disabled if compiling for Windows.

Ok, then please add this information (about the assertion failure) to the 
patch description. And please handle the tpm disablement for Haiku in the 
same spot as the disablement for Windows, so that people still get a sane 
error message in case they try to configure with --enable-tpm on Haiku.

  Thanks,
   Thomas


> În dum., 4 iul. 2021 la 14:29, Richard Zak <richard.j.zak@gmail.com 
> <mailto:richard.j.zak@gmail.com>> a scris:
> 
> 
>     În dum., 4 iul. 2021 la 13:11, Peter Maydell <peter.maydell@linaro.org
>     <mailto:peter.maydell@linaro.org>> a scris:
> 
>         On Sun, 4 Jul 2021 at 17:44, Richard Zak <richard.j.zak@gmail.com
>         <mailto:richard.j.zak@gmail.com>> wrote:
>          >
>          > Use system capstone, for which a port is maintained by Haiku.
>         Disable TPM which isn't supported.
>          >
>          > Signed-off-by: Richard Zak <richard.j.zak@gmail.com
>         <mailto:richard.j.zak@gmail.com>>
>          > ---
>          >  configure | 3 +++
>          >  1 file changed, 3 insertions(+)
>          >
>          > diff --git a/configure b/configure
>          > index e799d908a3..c928071f69 100755
>          > --- a/configure
>          > +++ b/configure
>          > @@ -358,6 +358,7 @@ oss_lib=""
>          >  bsd="no"
>          >  linux="no"
>          >  solaris="no"
>          > +haiku="no"
>          >  profiler="no"
>          >  cocoa="auto"
>          >  softmmu="yes"
>          > @@ -769,6 +770,8 @@ SunOS)
>          >  ;;
>          >  Haiku)
>          >    haiku="yes"
>          > +  tpm="no"
> 
>         If the autodetect for tpm doesn't get this right, we should fix
>         the autodetect.
> 
>         As a general principle we prefer to avoid "do this specific thing
>         for this specific host OS" whenever we can, in favour of "test
>         whether we have whatever feature/function/library is required".
> 
>         thanks
>         -- PMM
> 
> 
>     Totally makes sense, and I'll be mindful of that. In this case, the
>     configure script is enabling TPM support on Haiku, but I don't think it
>     breaks anything, but I haven't tested it yet.
> 
>     -- 
>     Regards,
> 
>     Richard J. Zak
>     Professional Genius
>     PGP Key: https://keybase.io/rjzak/key.asc <https://keybase.io/rjzak/key.asc>
> 
> 
> 
> -- 
> Regards,
> 
> Richard J. Zak
> Professional Genius
> PGP Key: https://keybase.io/rjzak/key.asc <https://keybase.io/rjzak/key.asc>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-06  6:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-04 16:42 [PATCH 1/2 v3] Configure script for Haiku Richard Zak
2021-07-04 17:10 ` Peter Maydell
2021-07-04 18:29   ` Richard Zak
2021-07-05 19:21     ` Richard Zak
2021-07-06  6:35       ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.