From nobody Fri Nov 7 00:48:59 2025 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; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1544628532333280.736373438074; Wed, 12 Dec 2018 07:28:52 -0800 (PST) Received: from localhost ([::1]:45586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6RP-00050T-4t for importer@patchew.org; Wed, 12 Dec 2018 10:28:51 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6MO-0000f7-FZ for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX6MK-0008WJ-OP for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:38 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:55383) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX6MI-0008S8-Nm for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:36 -0500 Received: by mail-wm1-x329.google.com with SMTP id y139so6132455wmc.5 for ; Wed, 12 Dec 2018 07:23:32 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id u10sm15878859wrr.33.2018.12.12.07.23.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Dec 2018 07:23:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=DsIsLtuO5RdxAw0elYxuW2hzGaDKfmqByJNpkXktgXk=; b=M11ciZHkpgnpNnZaqLzHi9AgD1Hk1jR7RJTh9k9xK8K1IMccHaXRXPSTzIRul+ebRl KVHaCvZGd1AkJ19wiAnjv5kKY4C/3m31gJwd+Sl4mUMvyQsqUgB+GcnD0aOLWY9iuZDl l5zvvHq657w9BkE2X3xAoZIVBjAB3oKQAJrD8ZkF+Or/ylvPwsnS+7Luriu8EOo8RBV+ JDq4G+1MMdXeZ90OvZIFyugWd4qjIlIFzsceQ8WQwbs/9d7pv3q4qHFOSiGgPt0hGBii ezm15AioOb6qzpqnZ20gLb3lwRMoF/BuemcY0BORwutpZ+E11OPmRiK/nKKkEXf+eHcU 6hiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=DsIsLtuO5RdxAw0elYxuW2hzGaDKfmqByJNpkXktgXk=; b=mTvWg2gErfcYsZeYx3f2O6SGRcJNB4dmkCJRQsmFONfyntxbODm8C2TuexQL3eEHkv Nmb+801rXK8bip90Y5aOHoOyy8Lic2vOZSjzLz3sZlPQFf7nTPkP0Yxf4cM7GFyxdV3A bihHJIaLKee1JFNUD3f+U3LH34Wvg8SGKSaOghUPLLXOcNwgIO6Z9Sies3NJJS+0iDb6 fXdEijryvBP+moC2qtNhP9PM17VCFDK68x60nmS95rXHD9RIqOa7aZfQB8V1F/PVecHm t+8Ts20I1DMvrlEkEAs6vEJcjMwBl4TZBC5k8YOCbwLxDzXgurlh2SkCbaZfQP4pVplU LrZg== X-Gm-Message-State: AA+aEWakrYje4guRioUhqSD+rciBSXRg3zEizYIR2tTUJTJajvZmM2JG h3usO5ZBoelTsI7xx6a6NC3K1NTL X-Google-Smtp-Source: AFSGD/Vlc+Jc8by9gsZ+P9ml4uVIUjVGZbpJcohNpZAMT0foQ1e/UKueC6RvHreN6udBkBKpFKUxKg== X-Received: by 2002:a1c:7fca:: with SMTP id a193mr6756159wmd.36.1544628211337; Wed, 12 Dec 2018 07:23:31 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 12 Dec 2018 16:22:32 +0100 Message-Id: <1544628195-37728-12-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> References: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::329 Subject: [Qemu-devel] [PULL 11/54] 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 Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Alexandro Sanchez Bach Intel HAXM supports now 32-bit and 64-bit Linux hosts. This patch includes the corresponding userland changes. Since the Darwin userland backend is POSIX-compliant, the hax-darwin.{c,h} files have been renamed to hax-posix.{c,h}. This prefix is consistent with the naming used in the rest of QEMU. Signed-off-by: Alexandro Sanchez Bach Message-Id: <20181115013331.65820-1-asanchez@kryptoslogic.com> Signed-off-by: Paolo Bonzini --- target/i386/Makefile.objs | 6 +++--- target/i386/hax-i386.h | 6 +++--- target/i386/{hax-darwin.c =3D> hax-posix.c} | 0 target/i386/{hax-darwin.h =3D> hax-posix.h} | 0 4 files changed, 6 insertions(+), 6 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 32bf966..cb9c265 100644 --- a/target/i386/Makefile.objs +++ b/target/i386/Makefile.objs @@ -12,10 +12,10 @@ obj-$(call lnot,$(CONFIG_HYPERV)) +=3D hyperv-stub.o ifeq ($(CONFIG_WIN32),y) obj-$(CONFIG_HAX) +=3D hax-all.o hax-mem.o hax-windows.o endif -ifeq ($(CONFIG_DARWIN),y) -obj-$(CONFIG_HAX) +=3D hax-all.o hax-mem.o hax-darwin.o -obj-$(CONFIG_HVF) +=3D hvf/ +ifeq ($(CONFIG_POSIX),y) +obj-$(CONFIG_HAX) +=3D hax-all.o hax-mem.o hax-posix.o endif +obj-$(CONFIG_HVF) +=3D hvf/ obj-$(CONFIG_WHPX) +=3D whpx-all.o endif obj-$(CONFIG_SEV) +=3D sev.o diff --git a/target/i386/hax-i386.h b/target/i386/hax-i386.h index 6abc156..f13fa46 100644 --- a/target/i386/hax-i386.h +++ b/target/i386/hax-i386.h @@ -16,7 +16,7 @@ #include "cpu.h" #include "sysemu/hax.h" =20 -#ifdef CONFIG_DARWIN +#ifdef CONFIG_POSIX typedef int hax_fd; #endif =20 @@ -82,8 +82,8 @@ hax_fd hax_mod_open(void); void hax_memory_init(void); =20 =20 -#ifdef CONFIG_DARWIN -#include "target/i386/hax-darwin.h" +#ifdef CONFIG_POSIX +#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 1.8.3.1