X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm_io.c;h=a4208f476786db72322a3c399ff5bccd300b70b2;hb=eb87f60800c8634e37d1f8e71cd8f88605f2a46e;hp=47068178e2fb3e816c4b82c665d9a8f681efe74d;hpb=ace8f0532fa5650c6642a3a7174f3aa19b09095a;p=palacios.git diff --git a/palacios/src/palacios/svm_io.c b/palacios/src/palacios/svm_io.c index 4706817..a4208f4 100644 --- a/palacios/src/palacios/svm_io.c +++ b/palacios/src/palacios/svm_io.c @@ -57,7 +57,7 @@ int handle_svm_io_ins(struct guest_info * info) { vmm_io_hook_t * hook = get_io_hook(&(info->io_map), io_info->port); uint_t read_size = 0; - addr_t base_addr = guest_state->es.base ; + addr_t dst_addr = 0; uint_t rep_num = 1; ullong_t mask = 0; @@ -110,7 +110,7 @@ int handle_svm_io_ins(struct guest_info * info) { while (rep_num > 0) { addr_t host_addr; - dst_addr = get_addr_linear(info, info->vm_regs.rdi & mask, base_addr); + dst_addr = get_addr_linear(info, info->vm_regs.rdi & mask, &(info->segments.es)); if (guest_va_to_host_va(info, dst_addr, &host_addr) == -1) { // either page fault or gpf... @@ -185,7 +185,7 @@ int handle_svm_io_outs(struct guest_info * info) { vmm_io_hook_t * hook = get_io_hook(&(info->io_map), io_info->port); uint_t write_size = 0; - addr_t base_addr = guest_state->ds.base; + addr_t dst_addr = 0; uint_t rep_num = 1; ullong_t mask = 0; @@ -237,7 +237,7 @@ int handle_svm_io_outs(struct guest_info * info) { while (rep_num > 0) { addr_t host_addr; - dst_addr = get_addr_linear(info, (info->vm_regs.rsi & mask), base_addr); + dst_addr = get_addr_linear(info, (info->vm_regs.rsi & mask), &(info->segments.ds)); if (guest_va_to_host_va(info, dst_addr, &host_addr) == -1) { // either page fault or gpf...