Skip to content

Commit 860b93f

Browse files
committed
hax: Support for Linux hosts
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 <[email protected]>
1 parent e22f675 commit 860b93f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

target/i386/Makefile.objs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ obj-$(call lnot,$(CONFIG_SEV)) += sev-stub.o
1212
ifdef CONFIG_WIN32
1313
obj-$(CONFIG_HAX) += hax-all.o hax-mem.o hax-windows.o
1414
endif
15+
ifdef CONFIG_POSIX
16+
obj-$(CONFIG_HAX) += hax-all.o hax-mem.o hax-posix.o
17+
endif
1518
ifdef CONFIG_DARWIN
16-
obj-$(CONFIG_HAX) += hax-all.o hax-mem.o hax-darwin.o
1719
obj-$(CONFIG_HVF) += hvf/
1820
endif
1921
obj-$(CONFIG_WHPX) += whpx-all.o

target/i386/hax-i386.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "cpu.h"
1717
#include "sysemu/hax.h"
1818

19-
#ifdef CONFIG_DARWIN
19+
#ifdef CONFIG_POSIX
2020
typedef int hax_fd;
2121
#endif
2222

@@ -82,8 +82,8 @@ hax_fd hax_mod_open(void);
8282
void hax_memory_init(void);
8383

8484

85-
#ifdef CONFIG_DARWIN
86-
#include "target/i386/hax-darwin.h"
85+
#ifdef CONFIG_POSIX
86+
#include "target/i386/hax-posix.h"
8787
#endif
8888

8989
#ifdef CONFIG_WIN32
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)