rename 'req_buf' field in 'struct vm_sw_info'

- rename it to 'io_shared_page' to keep consistent
   with ACRN HDL foils.

 - update related code that reference this data structure.

Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
Yonghua Huang
2018-05-07 19:19:02 +08:00
committed by Jack Ren
parent bf0d79b69d
commit 121d14a616
5 changed files with 17 additions and 16 deletions

View File

@@ -353,7 +353,7 @@ int dm_emulate_mmio_post(struct vcpu *vcpu)
int cur = vcpu->vcpu_id;
struct vhm_request_buffer *req_buf;
req_buf = (struct vhm_request_buffer *)(vcpu->vm->sw.req_buf);
req_buf = (struct vhm_request_buffer *)(vcpu->vm->sw.io_shared_page);
vcpu->req.reqs.mmio_request.value =
req_buf->req_queue[cur].reqs.mmio_request.value;

View File

@@ -169,7 +169,7 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)
/* Populate return VM handle */
*rtn_vm = vm;
vm->sw.req_buf = NULL;
vm->sw.io_shared_page = NULL;
status = set_vcpuid_entries(vm);
if (status)

View File

@@ -44,7 +44,7 @@ int dm_emulate_pio_post(struct vcpu *vcpu)
0xFFFFFFFFul >> (32 - 8 * vcpu->req.reqs.pio_request.size);
uint64_t *rax;
req_buf = (struct vhm_request_buffer *)(vcpu->vm->sw.req_buf);
req_buf = (struct vhm_request_buffer *)(vcpu->vm->sw.io_shared_page);
rax = &vcpu->arch_vcpu.contexts[cur_context].guest_cpu_regs.regs.rax;
vcpu->req.reqs.pio_request.value =