acrn-hypervisor/hypervisor/include
Victor Sun 9673f3dad4 HV: validate target vm in hypercall
- The target vm in most of hypercalls should be a NORMAL_VM, in some
exceptions it might be a SOS_VM, we should validate them.

- Please be aware that some hypercall might have limitation on specific
target vm like RT or SAFETY VMs, this leaves "TODO" in future;

- Unify the coding style:

	int32_t hcall_foo(vm, target_vm_id, ...)
	{
		int32_t ret = -1;
		...

		if ((is_valid_vm(target_vm) && is_normal_vm(target_vm)) {
			ret = ....
		}

		return ret;
	}

Tracked-On: #2978

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-04-22 19:57:03 +08:00
..
arch/x86 HV: validate target vm in hypercall 2019-04-22 19:57:03 +08:00
common hv: add new hypercall to fetch platform configurations 2019-04-15 22:14:13 +08:00
debug hv: reset per cpu sbuf pointers during vcpu reset 2019-04-19 16:20:34 +08:00
dm hv:change register_mmio_emulation_handler to void 2019-04-19 09:02:15 +08:00
hw hv: move pci.h to include/hw 2019-04-12 10:09:26 +08:00
lib hv:move 'udelay' to timer.c 2019-03-22 08:38:13 +08:00
public hv: add new hypercall to fetch platform configurations 2019-04-15 22:14:13 +08:00
hv_debug.h HV: Added Initial support for SEP/SOCWATCH profiling 2018-10-26 13:39:07 +08:00
hypervisor.h hv:move 2 APIs from hypervisor.h to guest_memory.c 2019-02-21 10:38:30 +08:00