From fb8f08fd5718900d1a709f8a57d61e59cdfecf61 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 6 Feb 2023 15:15:58 -0600 Subject: Add aes crypto stepping initial test --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9590b92..f5f9fb1 100755 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ BINS += test/kvm-targetstep test/kvm-targetstep_guest BINS += test/kvm-pagestep test/kvm-pagestep_guest BINS += test/qemu-pagestep BINS += test/qemu-targetstep test/qemu-targetstep_guest -# BINS += test/qemu-aes_guest test/qemu-aes +BINS += test/qemu-aes_guest test/qemu-aes +#BINS += test/qemu-poc BINS += util/loglevel util/reset util/mainpfn CFLAGS = -I . -I linux/usr/include @@ -51,7 +52,7 @@ linux: # build host kernel for depmod build: $(LINUX)/arch/x86/kvm/cachepc $(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD) M=arch/x86/kvm modules - #$(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD) M=crypto modules + $(MAKE) -C $(LINUX) -j $(JOBS) -l $(LOAD) M=crypto modules load: sudo rmmod kvm_amd || true @@ -94,7 +95,10 @@ test/kvm-eviction: test/kvm-eviction.c test/kvm-eviction.h $(TEST_SRCS) test/qemu-%: test/qemu-%.c $(TEST_SRCS) $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(HOST_CFLAGS) $(LDLIBS) +test/qemu-aes_guest: test/qemu-aes_guest.c test/libkcapi/.libs/libkcapi.a + $(CC) -o $@ $^ $(GUEST_CFLAGS) -I test/libkcapi/lib + test/qemu-%_guest: test/qemu-%_guest.c - $(CC) -o $@ $(filter %.c,$^) $(filter %.S,$^) $(GUEST_CFLAGS) $(LDLIBS) + $(CC) -o $@ $^ $(GUEST_CFLAGS) .PHONY: all clean linux build load prep -- cgit v1.2.3-71-gd317