From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c0b::242; helo=mail-it0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-it0-x242.google.com (mail-it0-x242.google.com [IPv6:2607:f8b0:4001:c0b::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DE8AE2112B1D3 for ; Wed, 12 Sep 2018 08:11:21 -0700 (PDT) Received: by mail-it0-x242.google.com with SMTP id p79-v6so3505423itp.3 for ; Wed, 12 Sep 2018 08:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=y4Sp3I1fpSioasqJ6WfhGhGHw7FXnkUibL1BOxDnm2g=; b=EV2QGjDm2NHaLBzaH1U6BK1j825cUtcuEYb7GH+gDjYJF1NlpS7o/5uVK1HhPODuuo lXbhGozGRoazKAy01hU09lYwQW9YZOg5fqfUlIdJV+jLEdB+gF31lDnLP6dXMYhFEC5n h+O+atvQlSCSruYhJhG89VIogGD/N6w6xbGDg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=y4Sp3I1fpSioasqJ6WfhGhGHw7FXnkUibL1BOxDnm2g=; b=eDYkL15hPKUDrriOIXaZtt2Eq/D+toCpfpJRoeMNrUafOKM2FgDSl8X6U9/cuToMC7 oli5gIPnw0+7k542z7SiNzegsHDe7mb2sGgPt682HoUVdmwaQ2bctNRVnI5XQUBiWPw+ S474br6G8+SgMMcixEz0jqRlO3oWZVWLY6vvHHDjgvx/3Kjg/kyW3iSEHd2ctINLiYDw a0akkes1zn+9BGs7qNXifFXCEPSIfNwpgcFLsHit4WCgD5QIyFZOlcHF56i32aMJqLYw 3IYPRNWeLqaT25LSr9HfYxROQKs4k++vU2QimFUfwe3cbkGElZWnUkPG9IyBHnfPn5wP rF+w== X-Gm-Message-State: APzg51DHyJydmTAg6RP0g6TLMYyFOBZGU/GB/exAG/DU5zr3OOn13trE b0f8vhyU/mRpdVihDkwJNDlKmEUgBYOLrISYQGytAw== X-Google-Smtp-Source: ANB0VdZWXFJQQW5u7BP+QfjrGsex/b2su+ZqQwkGf51J8VZ2yrz0vCI9nMWs6uOokeebMgV2SM4eBPJMIuWXpV/WlPs= X-Received: by 2002:a02:4d1b:: with SMTP id l27-v6mr2241290jab.86.1536765080893; Wed, 12 Sep 2018 08:11:20 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:2848:0:0:0:0:0 with HTTP; Wed, 12 Sep 2018 08:11:20 -0700 (PDT) In-Reply-To: References: <20180912132151.4258-1-ard.biesheuvel@linaro.org> <4A89E2EF3DFEDB4C8BFDE51014F606A14E2F6638@SHSMSX104.ccr.corp.intel.com> From: Ard Biesheuvel Date: Wed, 12 Sep 2018 17:11:20 +0200 Message-ID: To: "Carsey, Jaben" Cc: "Gao, Liming" , "Ni, Ruiyu" , "Zimmer, Vincent" , "Dong, Eric" , "edk2-devel@lists.01.org" , "agraf@suse.de" , Andrew Fish , "Richardson, Brian" , "Kinney, Michael D" , Laszlo Ersek , "Zeng, Star" Subject: Re: [PATCH 0/4] MdeModulePkg: add support for dispatching foreign arch PE/COFF images X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2018 15:11:22 -0000 Content-Type: text/plain; charset="UTF-8" On 12 September 2018 at 17:07, Carsey, Jaben wrote: > Ard, > > What happens when more than one emulators want to co-exist? > The protocol does not support that at the moment, and it is doubtful that it would work in practice: the X86-on-AARCH64 emulator works by mapping the X86 PE/COFF code regions as non-executable, and trapping the resulting exception to invoke the emulator. Running multiple emulators side by side would require a considerable amount of synchronization, so it only makes sense to consider that if there is a compelling use case. And if there is, we could still abstract from this at the top level (i.e., this protocol)