aboutsummaryrefslogtreecommitdiffhomepage
path: root/guest/guest64.S
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2021-12-10 23:47:04 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2021-12-10 23:47:04 +0100
commit1be06acc235878253977ae75467db591763f31bf (patch)
tree25b80c85f69ab515939cc059c7bec3eb04771a38 /guest/guest64.S
parent25b430f13a828f6e83c309e6bff9b5d2f0d85b0d (diff)
downloadmini-kvm-rs-1be06acc235878253977ae75467db591763f31bf.tar.gz
mini-kvm-rs-1be06acc235878253977ae75467db591763f31bf.zip
example:long_mode: Assert phys memory against bytes written from guest to virt address.
Diffstat (limited to 'guest/guest64.S')
-rw-r--r--guest/guest64.S6
1 files changed, 6 insertions, 0 deletions
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