diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-15 22:40:07 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-15 22:40:07 +0100 |
commit | f52d556e0e1bf2350b3b42cff198550a267ceb0b (patch) | |
tree | d2159e04b508f69466d948b7ec6bbdd1803ae041 /guest | |
parent | c94950f9dca80387aab264c7aa4044feff76625c (diff) | |
download | mini-kvm-rs-f52d556e0e1bf2350b3b42cff198550a267ceb0b.tar.gz mini-kvm-rs-f52d556e0e1bf2350b3b42cff198550a267ceb0b.zip |
example/long_mode: demonstrate mmio exits for virtually mapped but not physically backed memoryHEADmain
Diffstat (limited to 'guest')
-rw-r--r-- | guest/guest64.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guest/guest64.S b/guest/guest64.S index 533d186..1ca91a5 100644 --- a/guest/guest64.S +++ b/guest/guest64.S @@ -18,6 +18,13 @@ mov byte ptr ds:[0x2002], 0xcc mov byte ptr ds:[0x2003], 0xdd + // Write to virtually mapped by not physically mapped address, this should + // trigger a `KVM_EXIT_MMIO (w)`. + mov byte ptr ds:[0x4000], 0x12 + mov byte ptr ds:[0x4001], 0x34 + mov byte ptr ds:[0x4002], 0x56 + mov byte ptr ds:[0x4003], 0x78 + // Trigger `KVM_EXIT_HLT`. hlt |