From nobody Tue May 7 08:07:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1541686157003382.9531454553809; Thu, 8 Nov 2018 06:09:17 -0800 (PST) Received: from localhost ([::1]:56989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKkzh-0001BS-TP for importer@patchew.org; Thu, 08 Nov 2018 09:09:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKiE5-0000yz-Lk for qemu-devel@nongnu.org; Thu, 08 Nov 2018 06:11:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKiE0-0007Ea-Nn for qemu-devel@nongnu.org; Thu, 08 Nov 2018 06:11:53 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:42006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKiDy-0007Ci-Mx for qemu-devel@nongnu.org; Thu, 08 Nov 2018 06:11:48 -0500 Received: by mail-wr1-x444.google.com with SMTP id y15-v6so20778993wru.9 for ; Thu, 08 Nov 2018 03:11:45 -0800 (PST) Received: from localhost.localdomain (119.red-88-25-27.staticip.rima-tde.net. [88.25.27.119]) by smtp.gmail.com with ESMTPSA id l186-v6sm7693010wma.13.2018.11.08.03.11.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 03:11:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kryptoslogic.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+QWlVXENvuD+u77DpQLZf88XD1JFrtjT/+nI0FOzcws=; b=p0q+VioODk6IB465iK/T4f6/c5l4Un+cRO+wX7ZGgy1uVaJaRxcJWKmy5BFzxLAYiB g+66tkRDTUjgVL6LCEQcSNsRWKJeKilmijAuCmRvtbKU5uH6TmGYqXRC7TTAlYy3Ftd9 y2qBlsH1WiNNjTO0rgsNOAxoYF+5BXhh8ZLNrunsnDoN5BnQbmm8tQshFtbW5uDh0cxh xQVboFRNHK+rOANcVnp/K5IdvyiP3NIf23He7UileXTqYYKuPKaZDbk7Ns9gYRFyGj+c jjR/YxiaZr0/RxLMGN+fZzcBCa4qNVp4RfIbvk35pcwZI3pqQpzeOPux5j5zkTlFow93 cfgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+QWlVXENvuD+u77DpQLZf88XD1JFrtjT/+nI0FOzcws=; b=mitY67W5GnhDg2RiYGVw9cprp9dGMRsra3PClcfUr6RMo2i0ZbYRQiGYxsWqRVe0sm OaPIzT4dK4hqHhENiM5mSrlfCcHGDCKujof1ASlg7fwAFJntaIqMNka+CuOmJT9TmDsr S1qEpMus/KBMXdWRoij16mdko57VROiKMSUxL28MYa73IXsqtxUGkBR+cAgABEzUh+Bk ESrEIeQ1exuPaKeEpzuHuY+uCN39hQf9ofFsmySdglT4fOV2h062hsYt3AST264a35z+ Sj8DtZ3RRGVWZOwolUy1kEKP4Pzj/vHgX5jy6ZL+QtumS6wn6fijc8dvH31TQRnSUhoo kc5Q== X-Gm-Message-State: AGRZ1gJG0/G6NJcO1Zb7umJbCafn0vgJmLlZY0TBf/yP4uLDSP+VE6HP xQs916s3SZC59fzNfgDv5KNRPwN/C9vZCQ== X-Google-Smtp-Source: AJdET5fhPE7hkpIyx6fOqX0sJhUEBqxJ5Hps+t2xGmGlP6iYiMr/UFJPly51yP826openpcYkNke2g== X-Received: by 2002:adf:ce8b:: with SMTP id r11-v6mr3615601wrn.194.1541675503709; Thu, 08 Nov 2018 03:11:43 -0800 (PST) From: Alexandro Sanchez Bach To: qemu-devel@nongnu.org Date: Thu, 8 Nov 2018 03:11:24 -0800 Message-Id: <20181108111124.5851-1-asanchez@kryptoslogic.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 X-Mailman-Approved-At: Thu, 08 Nov 2018 09:07:47 -0500 Subject: [Qemu-devel] [PATCH] hax: Support for Linux hosts X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandro Sanchez Bach , yu.ning@intel.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Alexandro Sanchez Bach --- target/i386/Makefile.objs | 5 ++++- target/i386/hax-i386.h | 10 +++++++++- target/i386/{hax-darwin.c =3D> hax-posix.c} | 0 target/i386/{hax-darwin.h =3D> hax-posix.h} | 0 4 files changed, 13 insertions(+), 2 deletions(-) rename target/i386/{hax-darwin.c =3D> hax-posix.c} (100%) rename target/i386/{hax-darwin.h =3D> hax-posix.h} (100%) diff --git a/target/i386/Makefile.objs b/target/i386/Makefile.objs index 04678f5503..be36d31d23 100644 --- a/target/i386/Makefile.objs +++ b/target/i386/Makefile.objs @@ -12,8 +12,11 @@ obj-$(call lnot,$(CONFIG_SEV)) +=3D sev-stub.o ifdef CONFIG_WIN32 obj-$(CONFIG_HAX) +=3D hax-all.o hax-mem.o hax-windows.o endif +ifdef CONFIG_LINUX +obj-$(CONFIG_HAX) +=3D hax-all.o hax-mem.o hax-posix.o +endif ifdef CONFIG_DARWIN -obj-$(CONFIG_HAX) +=3D hax-all.o hax-mem.o hax-darwin.o +obj-$(CONFIG_HAX) +=3D hax-all.o hax-mem.o hax-posix.o obj-$(CONFIG_HVF) +=3D hvf/ endif obj-$(CONFIG_WHPX) +=3D whpx-all.o diff --git a/target/i386/hax-i386.h b/target/i386/hax-i386.h index 6abc156f88..f87a64c9df 100644 --- a/target/i386/hax-i386.h +++ b/target/i386/hax-i386.h @@ -20,6 +20,10 @@ typedef int hax_fd; #endif =20 +#ifdef CONFIG_LINUX +typedef int hax_fd; +#endif + #ifdef CONFIG_WIN32 typedef HANDLE hax_fd; #endif @@ -83,7 +87,11 @@ void hax_memory_init(void); =20 =20 #ifdef CONFIG_DARWIN -#include "target/i386/hax-darwin.h" +#include "target/i386/hax-posix.h" +#endif + +#ifdef CONFIG_LINUX +#include "target/i386/hax-posix.h" #endif =20 #ifdef CONFIG_WIN32 diff --git a/target/i386/hax-darwin.c b/target/i386/hax-posix.c similarity index 100% rename from target/i386/hax-darwin.c rename to target/i386/hax-posix.c diff --git a/target/i386/hax-darwin.h b/target/i386/hax-posix.h similarity index 100% rename from target/i386/hax-darwin.h rename to target/i386/hax-posix.h --=20 2.19.1