From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18454EE49A4 for ; Sun, 20 Aug 2023 04:09:21 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXZkS-0003su-TV; Sun, 20 Aug 2023 00:09:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXZkQ-0003s9-13 for qemu-devel@nongnu.org; Sun, 20 Aug 2023 00:09:06 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXZkM-0005Co-7B for qemu-devel@nongnu.org; Sun, 20 Aug 2023 00:09:04 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4ff9121fd29so3215970e87.3 for ; Sat, 19 Aug 2023 21:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20221208.gappssmtp.com; s=20221208; t=1692504540; x=1693109340; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=p8M0HmCvxQeYQFpBLoe2kVFE1V1vKH7gkDXVWOfrLZw=; b=g/vexghz9/LgCBrW+qVigFvdtBe5hkVgVyUpMdCnPgCbDWdGORS4zxqt/A35lAhIUY fEJ0Sgmv7OMDngvPWgXC/tOU+2Bmo7EhN3mSTVR+m0+UO+IwNQMzCLnKKUbQF74JZp66 SGul7eU2+wXg86iI32ZQPjKWkvOjawzfWrRrotTK7exOs8k036YmhJnNaoiVKnCa/gnS l8+1up3v9fin8+PpEcbJD5mETfrvT0j6oxdLO1tzXoXkASNoSzERcF+tNyXF9Evxk0x5 bXm1I0Tq+Nw/GzxxhBdTa4C5iHH+k3lHLk7fYSgmDoUWlbHJxAU7vn3P/VXHzFB9dagc UJWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692504540; x=1693109340; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=p8M0HmCvxQeYQFpBLoe2kVFE1V1vKH7gkDXVWOfrLZw=; b=V6lwwU1tLm1tHSMAf+pIQ2K7KHNbnLut/5NZZzP1UlxJ85HAR6mj2RuLAZZjnB5VSP IIPJY66OVuT0beZZEKwPzj5wCJX3rjbZoo1WfGEL+Q1rKq5Q8qO9hqyN78uzmWSsHTtg BFuQngpw3dqUFkrbezHYN3dM0nZVTVgzjGSecmrib6ZLpoUPMVSgz0XEnHJzwUH9U2Sy 28xgol9kg6bJONNBcuk9RQc2MfqZcnHWSfKXuldxYikFBDaJFJB/8tZpYlLYDRz0eAdt bhT2pU2pr5iPkLx5+TBmD5wm06mBUrr80jL/ye8dCDPhMhk8p2Nq7QrqSL6GxO5VzzCr HeCQ== X-Gm-Message-State: AOJu0Yya6TpQWo1KaZMRSNhtvVtzRyr+xIzZYZ/0EHZzZPjnvYIqaRAv TOiOuYEsyrgetyl+b3qUgfT61inWGmcN39/VuyBSmg== X-Google-Smtp-Source: AGHT+IFutDzFaEy+a96wYmzxJatgx9pqPbcQ/orWwmY6gZzzXZu2nJJAPm7dvsSzZ14lwJMHQ1yKEhJtIzmrQt/6FJE= X-Received: by 2002:a05:6512:6d1:b0:4f8:7734:8dd2 with SMTP id u17-20020a05651206d100b004f877348dd2mr2457532lff.53.1692504540249; Sat, 19 Aug 2023 21:09:00 -0700 (PDT) MIME-Version: 1.0 References: <20230819094806.14965-1-kariem.taha2.7@gmail.com> <20230819094806.14965-4-kariem.taha2.7@gmail.com> In-Reply-To: <20230819094806.14965-4-kariem.taha2.7@gmail.com> From: Warner Losh Date: Sat, 19 Aug 2023 22:08:53 -0600 Message-ID: Subject: Re: [PATCH 03/22] Declarations for ipc_perm and shmid_ds conversion functions To: Karim Taha Cc: qemu-devel@nongnu.org, Stacey Son Content-Type: multipart/alternative; boundary="000000000000e71c32060352eb5b" Received-SPF: none client-ip=2a00:1450:4864:20::12f; envelope-from=wlosh@bsdimp.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org --000000000000e71c32060352eb5b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Aug 19, 2023 at 3:48=E2=80=AFAM Karim Taha wrote: > From: Stacey Son > > Signed-off-by: Stacey Son > Signed-off-by: Karim Taha > --- > bsd-user/qemu-bsd.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 bsd-user/qemu-bsd.h > Reviewed-by: Warner Losh > diff --git a/bsd-user/qemu-bsd.h b/bsd-user/qemu-bsd.h > new file mode 100644 > index 0000000000..f98942ea91 > --- /dev/null > +++ b/bsd-user/qemu-bsd.h > @@ -0,0 +1,45 @@ > +/* > + * BSD conversion extern declarations > + * > + * Copyright (c) 2013 Stacey D. Son > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, see . > + */ > + > +#ifndef QEMU_BSD_H > +#define QEMU_BSD_H > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +/* bsd-mem.c */ > +abi_long target_to_host_ipc_perm(struct ipc_perm *host_ip, > + abi_ulong target_addr); > +abi_long host_to_target_ipc_perm(abi_ulong target_addr, > + struct ipc_perm *host_ip); > +abi_long target_to_host_shmid_ds(struct shmid_ds *host_sd, > + abi_ulong target_addr); > +abi_long host_to_target_shmid_ds(abi_ulong target_addr, > + struct shmid_ds *host_sd); > + > +#endif /* QEMU_BSD_H */ > -- > 2.40.0 > > --000000000000e71c32060352eb5b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Aug 19, 2023 at 3:48=E2=80=AF= AM Karim Taha <kariem.taha2.= 7@gmail.com> wrote:
From: Stacey Son <sson@FreeBSD.org>

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com>
---
=C2=A0bsd-user/qemu-bsd.h | 45 ++++++++++++++++++++++++++++++++++++++++++++= +
=C2=A01 file changed, 45 insertions(+)
=C2=A0create mode 100644 bsd-user/qemu-bsd.h

Reviewed-by: Warner Losh <imp@bs= dimp.com>
=C2=A0
diff --git a/bsd-user/qemu-bsd.h b/bsd-user/qemu-bsd.h
new file mode 100644
index 0000000000..f98942ea91
--- /dev/null
+++ b/bsd-user/qemu-bsd.h
@@ -0,0 +1,45 @@
+/*
+ *=C2=A0 BSD conversion extern declarations
+ *
+ *=C2=A0 Copyright (c) 2013 Stacey D. Son
+ *
+ *=C2=A0 This program is free software; you can redistribute it and/or mod= ify
+ *=C2=A0 it under the terms of the GNU General Public License as published= by
+ *=C2=A0 the Free Software Foundation; either version 2 of the License, or=
+ *=C2=A0 (at your option) any later version.
+ *
+ *=C2=A0 This program is distributed in the hope that it will be useful, + *=C2=A0 but WITHOUT ANY WARRANTY; without even the implied warranty of + *=C2=A0 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=C2=A0 See th= e
+ *=C2=A0 GNU General Public License for more details.
+ *
+ *=C2=A0 You should have received a copy of the GNU General Public License=
+ *=C2=A0 along with this program; if not, see <http://www.gnu.org/li= censes/>.
+ */
+
+#ifndef QEMU_BSD_H
+#define QEMU_BSD_H
+
+#include <sys/types.h>
+#include <sys/ipc.h>
+#include <sys/msg.h>
+#include <sys/resource.h>
+#include <sys/sem.h>
+#include <sys/shm.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+#include <sys/uuid.h>
+#include <sys/wait.h>
+#include <netinet/in.h>
+
+/* bsd-mem.c */
+abi_long target_to_host_ipc_perm(struct ipc_perm *host_ip,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 abi_ulong target_addr);
+abi_long host_to_target_ipc_perm(abi_ulong target_addr,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ipc_perm *host_ip);
+abi_long target_to_host_shmid_ds(struct shmid_ds *host_sd,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 abi_ulong target_addr);
+abi_long host_to_target_shmid_ds(abi_ulong target_addr,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 struct shmid_ds *host_sd);
+
+#endif /* QEMU_BSD_H */
--
2.40.0

--000000000000e71c32060352eb5b--