diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-01-17 16:30:33 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-01-17 16:30:33 +0100 |
| commit | f2ea010b8180b4160d85c92e312971d0cd8a34d4 (patch) | |
| tree | 64e2598df2a0860187b1516e196ce7124de459a9 /test/kvm-eviction_guest.S | |
| parent | 89785aa3c8d5d4007f856b14543a9b8aef31d661 (diff) | |
| download | cachepc-f2ea010b8180b4160d85c92e312971d0cd8a34d4.tar.gz cachepc-f2ea010b8180b4160d85c92e312971d0cd8a34d4.zip | |
Fixup kvm-eviction and refactor kvm-step
Diffstat (limited to 'test/kvm-eviction_guest.S')
| -rw-r--r-- | test/kvm-eviction_guest.S | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/test/kvm-eviction_guest.S b/test/kvm-eviction_guest.S index 7f6140d..eb04d2a 100644 --- a/test/kvm-eviction_guest.S +++ b/test/kvm-eviction_guest.S @@ -1,24 +1,19 @@ -#include "kvm-eviction.h" +#include "test/kvm-eviction.h" #include "cachepc/const.h" -#define TARGET_SET 15 +.global guest_with_start +.global guest_with_stop -.global start_guest_with -.global stop_guest_with +.global guest_without_start +.global guest_without_stop -.global start_guest_without -.global stop_guest_without +guest_with_start: + movq (L1_LINESIZE * (TARGET_SET + L1_SETS)), %rbx + hlt + jmp guest_with_start +guest_with_stop: -start_guest_with: - mov $(L1_LINESIZE * TARGET_SET), %rbx - mov (%rbx), %bl - mov $KVM_HC_CPC_VMMCALL_EXIT, %rax - vmmcall - jmp start_guest_with -stop_guest_with: - -start_guest_without: - mov $KVM_HC_CPC_VMMCALL_EXIT, %rax - vmmcall - jmp start_guest_without -stop_guest_without: +guest_without_start: + hlt + jmp guest_without_start +guest_without_stop: |
