diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-01-23 22:24:55 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-01-23 22:24:55 +0100 |
| commit | 1fe8249bbc782d28185e0e893504e8ac3a1fcaec (patch) | |
| tree | 15790721d2806918327d62e9c4448fc68ef34cd2 /Makefile | |
| parent | 0dc0595ee1d84bc77cb431b2417223f3b4a5bd57 (diff) | |
| download | cachepc-1fe8249bbc782d28185e0e893504e8ac3a1fcaec.tar.gz cachepc-1fe8249bbc782d28185e0e893504e8ac3a1fcaec.zip | |
Move kvm to guest process and add ipc for synchronization
Diffstat (limited to 'Makefile')
| -rwxr-xr-x | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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 |
