summaryrefslogtreecommitdiffstats
path: root/test/kvm-eviction_guest.S
blob: 16a07a51bb09c32c811c6bfc1f11e4232ac898cb (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
25
26
#include "test/kvm-eviction.h"
#include "cachepc/const.h"

.global guest_with_start
.global guest_with_stop

.global guest_without_start
.global guest_without_stop

.align(16)
.code16gcc

guest_with_start:
	mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %bx
    movb (%bx), %bl
	hlt

    mov $0x00, %ax
	jmp *%ax
guest_with_stop:

guest_without_start:
	hlt
	mov $0x00, %ax
    jmp *%ax
guest_without_stop: