From d63e7e7e8c8632d7c0b1a9e2d2f9532b4f4815ae Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 19 Dec 2022 00:53:51 +0100 Subject: Fix page fault handling and investigate exec stepping with minimal vm --- Makefile | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e245d79..e64e421 100755 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ LINUX ?= linux +JOBS ?= 15 PWD := $(shell pwd) -BINS = test/eviction test/access test/kvm test/sev test/sev-es test/sevstep +BINS = test/eviction test/access test/kvm test/sev test/sev-es +BINS += test/fullstep test/execstep BINS += test/aes-detect_guest test/aes-detect_host BINS += test/access-detect_guest test/access-detect_host BINS += test/readsvme util/debug util/reset @@ -18,9 +20,21 @@ clean: $(LINUX)/arch/x86/kvm/cachepc: ln -sf $(PWD)/cachepc $@ +host: + # generate host kernel and Module.symvers for depmod + cp extra/.config linux/.config + git -C $(LINUX) add . + git -C $(LINUX) stash + git -C $(LINUX) checkout 0aaa1e5 + $(MAKE) -C $(LINUX) oldconfig + $(MAKE) -C $(LINUX) prepare + $(MAKE) -C $(LINUX) -j $(JOBS) bindeb-pkg + git -C $(LINUX) checkout HEAD + git -C $(LINUX) stash pop + build: $(LINUX)/arch/x86/kvm/cachepc - $(MAKE) -C $(LINUX) -j6 M=arch/x86/kvm - $(MAKE) -C $(LINUX) -j6 M=crypto + $(MAKE) -C $(LINUX) -j $(JOBS) M=arch/x86/kvm modules + $(MAKE) -C $(LINUX) -j $(JOBS) M=crypto modules load: sudo rmmod kvm_amd || true @@ -48,4 +62,4 @@ test/%: test/%.c cachepc/uapi.h util/%: util/%.c cachepc/uapi.h clang -o $@ $< $(CFLAGS) -fsanitize=address -.PHONY: all clean build load freq update +.PHONY: all clean host build load freq update -- cgit v1.2.3-71-gd317