summaryrefslogtreecommitdiffstats
path: root/test/kvm-eviction_guest.S
blob: 7f6140dcb527f18ec9e4ab0c784b7109c2b9d65f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "kvm-eviction.h"
#include "cachepc/const.h"

#define TARGET_SET 15

.global start_guest_with
.global stop_guest_with

.global start_guest_without
.global stop_guest_without

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: