acrn-hypervisor/hypervisor/arch/x86/guest
Jian Jun Chen cee45a80d9 hv: add default handlers for PIO/MMIO access
Add the default handlers for PIO and MMIO access which returns all
FFs on read and discards write. These default handlers are registered
when SOS VM or pre-launched VM is created.

v3 -> v4:
- use single layer if in hv_emulate_pio
- change the implementation of pio_default_read

v2 -> v3:
- use runtime vm type instead of CONFIG_PARTITION_MODE
- revise the pio/mmio emulation functions
- revise the pio/mmio default read functions according to MISRA C
- revise the commit message

v1 -> v2:
- add default handlers members in struct acrn_vm and add interfaces
  to register default handlers for PIO and MMIO.

Tracked-On: #2860
Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-04-01 11:16:37 +08:00
..
assign.c hv: Remove multiple definitions for dmar translation structures 2019-03-08 15:23:20 +08:00
ept.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
guest_memory.c HV: Modularize boot folder 2019-03-14 09:05:53 +08:00
instr_emul.c hv:move instr_emul_ctxt instance to struct vcpu 2019-03-13 14:04:20 +08:00
io_emul.c hv: add default handlers for PIO/MMIO access 2019-04-01 11:16:37 +08:00
pm.c HV: Set vm state as with VM_POWERING_OFF when RTVM poweroff by itself 2019-03-29 16:17:44 +08:00
trusty.c hv: trusty: refine control registers switching method 2019-03-15 10:08:25 +08:00
ucode.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vcpu.c HV: Using INIT to kick vCPUs off when RTVM poweroff by itself 2019-03-29 16:17:44 +08:00
vcpuid.c hv: disable mpx capability for guest 2019-03-20 13:07:31 +08:00
virq.c hv: vlapic: add combined constraint for APICv 2019-03-12 20:37:06 +08:00
virtual_cr.c hv: vlapic: remove TPR set/get API 2019-03-25 13:31:51 -07:00
vlapic_priv.h hv: self-IPI APIC register in x2APIC mode of guest vLAPIC 2018-11-02 13:48:43 +08:00
vlapic.c hv: vlapic: remove TPR set/get API 2019-03-25 13:31:51 -07:00
vm.c hv: add default handlers for PIO/MMIO access 2019-04-01 11:16:37 +08:00
vmcall.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vmcs.c hv: vlapic: add combined constraint for APICv 2019-03-12 20:37:06 +08:00
vmexit.c HV: Using INIT to kick vCPUs off when RTVM poweroff by itself 2019-03-29 16:17:44 +08:00
vmsr.c Revert "hv: vmsr: add IA32_MISC_ENABLE to msr store area" 2019-03-26 13:59:21 +08:00
vmtrr.c hv: vmtrr: hide mtrr if hide_mtrr is true 2019-03-16 17:14:12 +08:00
vmx_asm.S hv: refine guest.h 2019-02-03 13:00:42 +08:00