From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 48171941643 for ; Wed, 23 Oct 2024 11:11:06 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=TqkrIhZoLzTuLBohxNLIa4MYIIOAiNsVjeM2bttRUVs=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240830; t=1729681865; v=1; x=1729941064; b=drOYRqNuj2TzD3YUED+US7ExJjOX28rgCh7IYeUu2dho/Smm2Tq5H2xzxO2Zw/FHs1XCJDez NRAeaEBP+kYj+Ii7ll7tCQTzMJMoZoWjmNUZaqxHM8JkhXQPvIMUWEQlmWcyY4+UnZ22ZSK4+ld ncM8sMcko9dpJ9MOIr4CxWpsJy2JxD3l70Es941farfFR7GM1XQmn73BKsH9xdAjCKDC2yFYumB aB1Gn1uCWZ9NItS2ikOtwewB0DI0U64ArW6lMylQHox+rNPQNlRfLBGuB6nl25fspCDT3OmJ00v S0pLNBPvIySZGYAqGnJR6p09Db/QmrfCsvLWZeZWBJikg== X-Received: by 127.0.0.2 with SMTP id mnMJYY7687511xwb5JOHYnrW; Wed, 23 Oct 2024 04:11:04 -0700 X-Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) by mx.groups.io with SMTP id smtpd.web10.6210.1729681863828038038 for ; Wed, 23 Oct 2024 04:11:04 -0700 X-Received: by mail-vk1-f180.google.com with SMTP id 71dfb90a1353d-50fcc0cdcefso288224e0c.0 for ; Wed, 23 Oct 2024 04:11:03 -0700 (PDT) X-Gm-Message-State: r7HXTHGzUsERqi4Gr0HeCItAx7686176AA= X-Google-Smtp-Source: AGHT+IFuMV9N9hr0HIQ5zJbRNor2CKmZdIq9CgyU/uVGHC+vgjZcXrBL9iyI6/GT225RvnIL8UPhhD5B9FAJHFfY7M0= X-Received: by 2002:a05:6122:2223:b0:50d:35d9:ad5a with SMTP id 71dfb90a1353d-50fd020eaa1mr2848206e0c.5.1729681862674; Wed, 23 Oct 2024 04:11:02 -0700 (PDT) MIME-Version: 1.0 References: <20240831223232.59981-1-rebecca@bsdio.com> <1b111e7f-7153-474b-8656-53ce289abb2a@os.amperecomputing.com> <4a3d8c36-7c60-4310-9929-2255edcc15dd@loongson.cn> <5da6e748-a2da-44dc-9710-82be5d1599a3@bsdio.com> In-Reply-To: <5da6e748-a2da-44dc-9710-82be5d1599a3@bsdio.com> From: "Pedro Falcato" Date: Wed, 23 Oct 2024 12:10:51 +0100 Message-ID: Subject: Re: [edk2-devel] [PATCH] Emulator/X86EmulatorDxe: Replace with MultiArchUefiPkg build To: Rebecca Cran Cc: devel@edk2.groups.io, rebecca@os.amperecomputing.com, Chao Li , andrei.warkentin@intel.com, Ard Biesheuvel , "quic_llindhol@quicinc.com" , "Kinney, Michael D" Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Wed, 23 Oct 2024 04:11:04 -0700 Resent-From: pedro.falcato@gmail.com Reply-To: devel@edk2.groups.io,pedro.falcato@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=drOYRqNu; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io On Wed, Oct 23, 2024 at 3:20=E2=80=AFAM Rebecca Cran wr= ote: > > On 10/22/24 5:44 PM, Pedro Falcato wrote: > > > You can build whatever GPL-violating contraption as long as you don't > > distribute it. If you do, you need to comply with the terms of the > > license. > > FWIW, GNU seems to think merely including this module would be a GPL > > violation (https://www.gnu.org/licenses/gpl-faq.html#MereAggregation, > > see the mention of running together in a shared address space), and > > thus all your firmware would potentially need to be distributed under > > the GPL's terms. > > > > Ard's old version seems to only be LGPL and thus you'd only need to > > comply with the LGPL's terms for that specific module (there's no > > "virality"). > > > If loading into the same address space is the issue, wouldn't GRUB being > loaded infect the firmware too? I suspect the issue is that it's very hard to consider GRUB and the firmware a "single program", particularly if you don't distribute GRUB with the firmware. > > My point was that UEFI firmware could be considered a filesystem, with > the EmulatorDxe.efi simply being on the same filesystem as the other > drivers. That's opposed to being linked into the same binary, which is > clearly a GPL violation. To me (definitely not a lawyer), what we do in EFI with protocols is very, very similar with dynamic linking (what's dynamic linking if not calling into a table of well-defined function pointers (elf PLT)?). For me the case is strengthened even more if you consider that all of these modules and protocols are not only in bed with each other, but also in the same frequently-not-replaceable firmware volume, and together form "the firmware". Even worse: >MultiArchUefiPkg won't work with just any UEFI implementations, but only w= ith implementations that provide the EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL i= nterface, which is the magic that enables loading foreign ISA binaries so it uses private EDK2 interfaces (not just standard EFI protocols), thus sounds kind of intimately linked with EDK2... But this is ofc my two cents... The GPL is murky and has plenty of grey areas in these situations. --=20 Pedro -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120662): https://edk2.groups.io/g/devel/message/120662 Mute This Topic: https://groups.io/mt/108202804/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-