acrn-hypervisor/hypervisor/include/arch/x86/guest
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
..
assign.h hv: Remove separate interrupt routine for pre-launched VMs 2019-04-04 17:51:36 +08:00
ept.h hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
guest_memory.h HV: Modularize boot folder 2019-03-14 09:05:53 +08:00
guest_pm.h HV: Register S5 pio handler for dm-launched RTVM 2019-03-29 16:17:44 +08:00
instr_emul.h hv:move instr_emul_ctxt instance to struct vcpu 2019-03-13 14:04:20 +08:00
trusty.h hv: seed: refine header file 2019-03-15 14:09:56 +08:00
ucode.h HV:treewide:rename vcpu data structure 2018-11-05 15:35:49 +08:00
vcpu.h hv: enable vMCE from guest CPUID 2019-04-18 09:00:42 +08:00
vcpuid.h hv:cleanup header file for vm.c & vm.h 2019-02-03 13:50:42 +08:00
virtual_cr.h hv:move some files to guest folder 2019-01-30 20:43:04 +08:00
vlapic.h hv: vlapic: add TPR below threshold implement 2019-04-19 11:11:54 +08:00
vm.h HV: validate target vm in hypercall 2019-04-22 19:57:03 +08:00
vmcs.h hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vmexit.h hv: refine guest.h 2019-02-03 13:00:42 +08:00
vmtrr.h modularization: clean up namings in vMTRR module 2018-12-14 09:43:06 +08:00
vmx_io.h hv: rename io_emul.c to vmx_io.c 2019-04-12 10:09:26 +08:00