From a554be1738d019e4b5d5b0b0ee9aac6b6ac302a6 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 23 Jan 2023 20:38:36 +0100 Subject: Use 16-bit realmode assembly for guests (!) --- test/kvm-eviction_guest.S | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'test/kvm-eviction_guest.S') diff --git a/test/kvm-eviction_guest.S b/test/kvm-eviction_guest.S index ce696cd..16a07a5 100644 --- a/test/kvm-eviction_guest.S +++ b/test/kvm-eviction_guest.S @@ -7,13 +7,20 @@ .global guest_without_start .global guest_without_stop +.align(16) +.code16gcc + guest_with_start: - mov (L1_LINESIZE * (TARGET_SET + L1_SETS)), %rbx + mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %bx + movb (%bx), %bl hlt - jmp guest_with_start + + mov $0x00, %ax + jmp *%ax guest_with_stop: guest_without_start: hlt - jmp guest_without_start + mov $0x00, %ax + jmp *%ax guest_without_stop: -- cgit v1.2.3-71-gd317