From 1fe8249bbc782d28185e0e893504e8ac3a1fcaec Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 23 Jan 2023 22:24:55 +0100 Subject: Move kvm to guest process and add ipc for synchronization --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7994732..76da9c0 100755 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ JOBS ?= $(CORES) PWD := $(shell pwd) BINS = test/eviction test/kvm-eviction -BINS += test/kvm-step #test/kvm-execstep +BINS += test/kvm-step test/kvm-pagestep # BINS += test/qemu-eviction_guest test/qemu-eviction_host # BINS += test/qemu-aes_guest test/qemu-aes_host BINS += util/debug util/reset @@ -15,6 +15,8 @@ CFLAGS = -I . -I linux/usr/include CFLAGS += -g -Wunused-variable -Wunknown-pragmas -Wunused-function CFLAGS += -fsanitize=address +LDLIBS = -lpthread + CACHEPC_UAPI = cachepc/uapi.h cachepc/const.h all: build $(BINS) @@ -56,14 +58,18 @@ prep: util/%: util/%.c $(CACHEPC_UAPI) test/eviction: test/eviction.c test/util.c $(CACHEPC_UAPI) - $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(CFLAGS) + $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(CFLAGS) $(LDLIBS) test/kvm-eviction: test/kvm-eviction.c test/kvm-eviction_guest.S test/util.c \ test/util.h test/kvm.c test/kvm.h test/kvm-eviction.h $(CACHEPC_UAPI) - $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(CFLAGS) + $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(CFLAGS) $(LDLIBS) test/kvm-step: test/kvm-step.c test/kvm-step_guest.S \ test/util.c test/util.h test/kvm.c test/kvm.h $(CACHEPC_UAPI) - $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(CFLAGS) + $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(CFLAGS) $(LDLIBS) + +test/kvm-pagestep: test/kvm-pagestep.c test/kvm-pagestep_guest.S \ + test/util.c test/util.h test/kvm.c test/kvm.h $(CACHEPC_UAPI) + $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(CFLAGS) $(LDLIBS) .PHONY: all clean host build load prep -- cgit v1.2.3-71-gd317