aboutsummaryrefslogtreecommitdiffhomepage
path: root/guest
diff options
context:
space:
mode:
Diffstat (limited to 'guest')
-rw-r--r--guest/guest64.S2
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.