All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@gnu.org>
To: Stefan Berger <stefanb@linux.ibm.com>
Cc: Damien Zammit <damien@zamaudio.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	bug-hurd@gnu.org, qemu-devel@nongnu.org, qemu-block@nongnu.org,
	manolodemedici@gmail.com, peter.maydell@linaro.org,
	kwolf@redhat.com, berrange@redhat.com, eblake@redhat.com,
	bugaevc@gmail.com
Subject: Re: [PATCH v3 3/4 qemu] Exclude TPM ioctls definitions for the GNU/Hurd
Date: Tue, 10 Feb 2026 19:19:28 +0100	[thread overview]
Message-ID: <aYt2sI528aXvojvi@end> (raw)
In-Reply-To: <fae6eb21-6ed4-41fb-ad6f-4ef44b2e7f44@linux.ibm.com>

Hello,

Stefan Berger, le mar. 10 févr. 2026 12:58:24 -0500, a ecrit:
> On 2/7/26 11:03 PM, Damien Zammit wrote:
> > On 2/4/26 2:21 AM, Stefan Berger wrote:
> > > enum {
> > >        PTM_GET_CAPABILITY     = _IOR('P', 0, ptm_cap),
> > >        PTM_INIT               = _IOWR('P', 1, ptm_init),
> > >        PTM_SHUTDOWN           = _IOR('P', 2, ptm_res),
> > 
> > No, this wont work because the _IOT__IOTBASE_* symbols are missing for
> > the tpm structs on GNU platform:
> 
> > 
> > In file included from /usr/include/x86_64-gnu/sys/ioctl.h:26,
> >                    from ../backends/tpm/tpm_ioctl.h:17,
> >                    from ../backends/tpm/tpm_emulator.c:39:
> > ../backends/tpm/tpm_ioctl.h:290:30: error: ‘_IOT__IOTBASE_ptm_cap’
> > undeclared here (not in a function)
> >     290 |     PTM_GET_CAPABILITY     = _IOR('P', 0, ptm_cap),
> >         |                              ^~~~
> 
> I have it compile because I added this here (above):
> 
> #ifdef __gnu_hurd__
> #include <mach/x86_64/ioccom.h>
> #endif

This mach-ish ioccom.h is not the way ioctls are defined in the Hurd. I
have actually even dropped it from gnumach, since we don't actually use
this way of defining ioctls any more. _IOT macros for ptm_capt/init/res
really need to be defined for _IOR/WR to be usable.

Samuel


  reply	other threads:[~2026-02-10 18:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-30  3:20 [PATCH v3 0/4 qemu] GNU/Hurd support Damien Zammit
2026-01-30  3:20 ` [PATCH v3 1/4 qemu] Include new arbitrary limits if not already defined Damien Zammit
2026-01-30  3:20 ` [PATCH v3 2/4 qemu] Add GNU/Hurd host_os=gnu Damien Zammit
2026-01-30  3:20 ` [PATCH v3 3/4 qemu] Exclude TPM ioctls definitions for the GNU/Hurd Damien Zammit
2026-01-30  8:27   ` Paolo Bonzini
2026-02-03 15:21     ` Stefan Berger
2026-02-08  4:03       ` Damien Zammit
2026-02-10 17:58         ` Stefan Berger
2026-02-10 18:19           ` Samuel Thibault [this message]
2026-01-30  3:20 ` [PATCH v3 4/4 qemu] Avoid static definition of copy_file_range on GNU/Hurd Damien Zammit
2026-01-30  8:30   ` Paolo Bonzini
2026-01-30  8:32   ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aYt2sI528aXvojvi@end \
    --to=samuel.thibault@gnu.org \
    --cc=berrange@redhat.com \
    --cc=bug-hurd@gnu.org \
    --cc=bugaevc@gmail.com \
    --cc=damien@zamaudio.com \
    --cc=eblake@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=manolodemedici@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanb@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.