acrn-hypervisor/hypervisor/arch/x86
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
..
boot function name change in init.c 2018-12-19 09:07:14 +08:00
configs HV: Introduce a new API is_rt_vm 2019-03-29 16:17:44 +08:00
guest hv: add default handlers for PIO/MMIO access 2019-04-01 11:16:37 +08:00
seed hv: replace MEM_2K with a new macro MAX_BOOTARGS_SIZE for bootargs size 2019-03-21 13:08:15 +08:00
cat.c HV: CAT: support config CAT from acrn_vm_config 2019-02-28 11:22:29 +08:00
cpu_caps.c hv: vlapic: minor fix about detect_apicv_cap 2019-03-12 20:37:06 +08:00
cpu_state_tbl.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
cpu.c hv: merge SBL and UEFI related stuff under bsp 2019-03-13 10:26:55 +08:00
e820.c hv: cleanup some hva/hpa conversion code 2019-03-15 09:03:14 +08:00
gdt.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
idt.S move idt.S and idt.h out of boot component 2018-12-12 09:07:43 +08:00
init.c hv: refactor seed management 2019-03-14 10:38:17 +08:00
ioapic.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
irq.c hv: merge SBL and UEFI related stuff under bsp 2019-03-13 10:26:55 +08:00
Kconfig hv: vmtrr: hide mtrr if hide_mtrr is true 2019-03-16 17:14:12 +08:00
lapic.c HV: Introduce one new API send_single_init 2019-03-29 16:17:44 +08:00
mmu.c hv: cleanup some hva/hpa conversion code 2019-03-15 09:03:14 +08:00
notify.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
page.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
pagetable.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
pm.c hv:move instr_emul_ctxt instance to struct vcpu 2019-03-13 14:04:20 +08:00
retpoline-thunk.S
sched.S replace arch_switch_to with pure asm code instead of inline asm 2019-01-25 11:39:47 +08:00
security.c hv: coding style: refine cpu related function to one exit 2018-12-21 13:34:01 +08:00
static_checks.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
timer.c hv:move 'udelay' to timer.c 2019-03-22 08:38:13 +08:00
trampoline.c hv: merge SBL and UEFI related stuff under bsp 2019-03-13 10:26:55 +08:00
vmx.c hv:move instr_emul_ctxt instance to struct vcpu 2019-03-13 14:04:20 +08:00
vtd.c hv: Use domain/device specific invalidation for DMAR translation caches 2019-03-20 09:13:07 +08:00
wakeup.S HV: modularization to refine pm related code. 2018-12-19 13:02:09 +08:00