From 1c4159662e44d0096539e282e0b2bfda349dd4bb Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 11 Dec 2021 20:56:19 +0100 Subject: guest64: address in buffer pc relative --- guest/guest64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guest/guest64.S') 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. -- cgit v1.2.3