From 1be06acc235878253977ae75467db591763f31bf Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Fri, 10 Dec 2021 23:47:04 +0100 Subject: example:long_mode: Assert phys memory against bytes written from guest to virt address. --- guest/guest64.S | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'guest') diff --git a/guest/guest64.S b/guest/guest64.S index 6629273..a07df0c 100644 --- a/guest/guest64.S +++ b/guest/guest64.S @@ -12,6 +12,12 @@ lea di, [in_dest] // Destination address. insb // Read byte from input port dx to ds:di. + // Write to allocated virtual addresses. + mov byte ptr ds:[0x2000], 0xaa + mov byte ptr ds:[0x2001], 0xbb + mov byte ptr ds:[0x2002], 0xcc + mov byte ptr ds:[0x2003], 0xdd + // Trigger `KVM_EXIT_HLT`. hlt -- cgit v1.2.3