acrn-hypervisor/hypervisor/common
Zhao Yakui 3cbaf02830 HV: Use parameter directly to pass bdf for hcall_assign/deassign_ptdev
The the bdf(bus/dev/func) is used to determine which pass-through device should
be assigned/released. Now the hypervisor parses the corresponding bdf from the guest
physical address when hcall_assign_ptdev/hcall_deassign_ptdev is called.
As it is only uint16_t, it is unnecessary to use the GPA to pass the bdf parameter.
Instead the parameter can be used as the bdf directly.

In order to keep the compatibility, it still can get the bdf by using
copy_from_gpa when SOS passes the parameter based on the buffer. But this will
be depreciated.
This is based on the assumption that the GPA in SOS is greater than 0x10000
when one buffer is allocated to pass the corresponding hypercall parameter.
After the SOS uses the bdf to pass the hypercall paremeter, we can remove the code
that gets the bdf by using copy_from_gpa.

V1->V2: Add some comments for hcall_assign_ptdev/hcall_deassign_ptdev.

Tracked-on: #1751
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-11-08 14:36:46 +08:00
..
hv_main.c HV:treewide:rename vcpu_arch data structure 2018-11-05 15:35:49 +08:00
hypercall.c HV: Use parameter directly to pass bdf for hcall_assign/deassign_ptdev 2018-11-08 14:36:46 +08:00
io_request.c HV:treewide:rename vm data structure 2018-11-05 15:35:49 +08:00
ptdev.c HV:treewide:rename vm data structure 2018-11-05 15:35:49 +08:00
schedule.c HV:treewide:rename vcpu data structure 2018-11-05 15:35:49 +08:00
softirq.c hv: fix 'No brackets to then/else' 2018-10-11 16:48:11 +08:00
stack_protector.c HV:common:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
static_checks.c hv: fix a minor bug of static checks 2018-11-08 09:26:56 +08:00
trusty_hypercall.c hypercall doc: Sync the comments for each hypercall from .h to .c 2018-11-06 09:12:40 +08:00
vm_load.c hv: fix integer violations 2018-11-06 16:18:56 +08:00