diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2021-12-11 20:56:19 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2021-12-11 20:56:19 +0100 |
commit | 1c4159662e44d0096539e282e0b2bfda349dd4bb (patch) | |
tree | 42269c55843e36cab4c56aff7bb7c5a9aa9df6c6 /guest | |
parent | 643f932bcdc8d35ffd0e50d1291f4f895de76fac (diff) | |
download | mini-kvm-rs-1c4159662e44d0096539e282e0b2bfda349dd4bb.tar.gz mini-kvm-rs-1c4159662e44d0096539e282e0b2bfda349dd4bb.zip |
guest64: address in buffer pc relative
Diffstat (limited to 'guest')
-rw-r--r-- | guest/guest64.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guest/guest64.S b/guest/guest64.S index a07df0c..533d186 100644 --- a/guest/guest64.S +++ b/guest/guest64.S @@ -9,7 +9,7 @@ // Trigger `KVM_EXIT_IO:KVM_EXIT_IO_IN` by reading byte to memory from input port. mov dx, 0x1000 // Input port. - lea di, [in_dest] // Destination address. + lea di, [rip + in_dest] // Destination address. insb // Read byte from input port dx to ds:di. // Write to allocated virtual addresses. |